User Setup In SQL and Dynamics NAV

Navision Articles

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Solution (Verified) This post has 1 verified solution | 14 Replies | 2 Followers

Not Ranked
2 Posts
20 Points
Joined: Mar 4, 2009
Last Online:
Mar 27, 2009 15:13
Location: Colombo, Sri Lanka
Chamil posted on Mar 4, 2009 6:38
How helpful was this post/question? Please rate here:

 

Hi Forum,

This is regarding Dynamics NAV 5.1 and SQL server 2005 user creation. I followed the following method in creating user logins.

  1. Created the relevant user in SQL server 2005

Security>Logins>Created User (For example: John) >User Mapping>Selected database (user mapped to the login)>DB role membership>Public.

  1. Created the user in Dynamics NAV and synchronized the logins.
  2. Although I can login to the system, depending on the access that I have given to this user; it is still asking for the permissions in the relevant table. Though I have given the relevant permission to the relevant table; the message keeps on appearing.
  3. But when I give the db_owner; DB membership role to the user in SQL server this solves the problem.

My concern is, in an actual implementation we can’t give the db_owner as a role in SQL. Because then the user can make changes to the DB.

Since we are hoping to use the windows authentication; we are expecting to use active directory.  I just want to know how I can give access to the users by using Active Directory and by only giving the “public” role.

Also I would like to know in the database login environment how to solve this problem; as we have to test the users in the database server authentication before setting it in the active directory. Appreciate your comments and input regarding this.

Regards,

Chamil

Solution (Verified) Verified Solution

Top 25 Contributor
Male
808 Posts
5,920 Points
Joined: Jul 3, 2001
Last Online:
Feb 2, 2010 19:23
Location: Vedbæk, Denmark
MicrosoftEmployee
Solution (Verified) Dean McCrae replied on May 12, 2009 19:27
How helpful was this comment/solution? Please rate here:
Verified by Erik P. Ernst

In one of the NAV releases, the Property Store table was not included in the All role - by mistake. Can you check that this is included there and if not add it to the All role, with a direct Read permission. Then synchronize again if you are still using Enhanced security (you can do this for a single login and try it with just that login, as a test, before synchronizing all).

This posting is provided "AS IS" with no warranties, and confers no rights.

All Replies

Top 10 Contributor
Male
1,528 Posts
27,639 Points
Joined: Jun 5, 2005
Last Online:
Feb 8, 2010 23:53
Location: Lisbon, Portugal
Moderator
Solution (Not Verified) Nuno Maia replied on Mar 4, 2009 15:16
How helpful was this comment/solution? Please rate here:
Suggested by Nuno Maia

After you have given PUBLIC role to user you must also define permissions inside Dynamics NAV application.

Nuno Maia

Top 10 Contributor
Male
1,415 Posts
21,188 Points
Joined: Aug 16, 2000
Last Online:
Mar 16, 2010 19:59
Location: Vienna, Austria, Europe
Moderator
Sponsor
Thomas Brodkorb replied on Mar 4, 2009 21:26
How helpful was this comment/solution? Please rate here:

How exactly did you perform the step number 2 listed?
How did you "give access to the user?"
Only under very rare circumstances you need to change permissions of objects.

Thomas Brodkorb


Dynavics & DynamicSolutions Based on the improved budget situation is light at the end of the tunnel is now permanently switched on.

 

Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

 

Not Ranked
7 Posts
75 Points
Joined: May 7, 2009
Last Online:
Jun 4, 2009 20:20
Location: Houston, TX, USA
Jonathan Gardner replied on May 7, 2009 23:44
How helpful was this comment/solution? Please rate here:

I would like to know how to do this as well.  We have had to set users as db_owner to allow them to access the data.  Please elaborate on this.

Top 10 Contributor
Male
2,052 Posts
27,310 Points
Joined: Jan 23, 2004
Last Online:
Mar 16, 2010 16:44
Location: Howell, MI
DynamicsNAVMVP
Moderator
DenSter replied on May 8, 2009 2:04
How helpful was this comment/solution? Please rate here:

Have you assigned specific permissions in NAV to specific roles, and have you assigned roles to your new users?

Not Ranked
7 Posts
75 Points
Joined: May 7, 2009
Last Online:
Jun 4, 2009 20:20
Location: Houston, TX, USA
Jonathan Gardner replied on May 8, 2009 18:30
How helpful was this comment/solution? Please rate here:

The users are windows users.  The process we use to great them in Navision is to add the user, that creates it as a user in the db server and the the login is synced.  Should they be done the other way around.  All of the users are assigned with the All permssions.  Below is some more system information

Database: SQL 2008 Ent
Navision 5.0 SP1 - upgrade from 4.0 RC The database is in a 5.0 compatible mode but has never been upgraded to a full 5.0 database.
Windows 2003 AD

Please let me know what other information would be helpful.

Top 10 Contributor
Male
2,052 Posts
27,310 Points
Joined: Jan 23, 2004
Last Online:
Mar 16, 2010 16:44
Location: Howell, MI
DynamicsNAVMVP
Moderator
DenSter replied on May 8, 2009 19:57
How helpful was this comment/solution? Please rate here:

so..

DenSter:
Have you assigned specific permissions in NAV to specific roles, and have you assigned roles to your new users?

What I mean is... you added the windows login to NAV, then you assigned roles to those users, making sure that those roles have the permissions that they are supposed to have and THEN you synchronized the users?

Just adding the windows login in NAV should be enough, the synchronization process should add them to SQL Server.

Top 10 Contributor
Male
1,102 Posts
14,400 Points
Joined: Dec 18, 2000
Last Online:
Mar 16, 2010 17:51
Location: Nürnberg/Germany
DynamicsNAVMVP
Moderator
Jörg A. Stryk replied on May 9, 2009 10:23
How helpful was this comment/solution? Please rate here:

I also think the NAV "Roles" are simply missing ...

... but you should also consider the used "NAV Security Model" - I recommend to use "Standard" (if possible) as here the "synchronization" happens MUCH faster. As with STD no user-specific "Application Roles" are generated, it could be assured that there is no issue when transforming NAV rights to SQL rights.

Last but not least, there were some buggy NAV build numbers - if I recall it right - which indeed had some problems with the security management. So you should also make sure to run a properly "patched" NAV client. See http://dynamicsuser.net/blogs/waldo/archive/2009/05/08/platform-updates-overview-3-70-b-nav2009.aspx

Regards,
Jörg

Joerg A. Stryk
STRYK System Improvement
NAV/SQL Performance Optimization


Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

Not Ranked
7 Posts
75 Points
Joined: May 7, 2009
Last Online:
Jun 4, 2009 20:20
Location: Houston, TX, USA
Jonathan Gardner replied on May 12, 2009 14:30
How helpful was this comment/solution? Please rate here:

You are correct. We add the Windows Users to NAV, assign the roles, and then sync.  The problem is that when we do we still get an error if the users are not set as db_owerns.  I am getting the exact error and will post it later today.

 

 

Not Ranked
7 Posts
75 Points
Joined: May 7, 2009
Last Online:
Jun 4, 2009 20:20
Location: Houston, TX, USA
Jonathan Gardner replied on May 12, 2009 16:29
How helpful was this comment/solution? Please rate here:

This is the error that we get if we do not add the users as db_owners.

 

Top 25 Contributor
Male
808 Posts
5,920 Points
Joined: Jul 3, 2001
Last Online:
Feb 2, 2010 19:23
Location: Vedbæk, Denmark
MicrosoftEmployee
Solution (Verified) Dean McCrae replied on May 12, 2009 19:27
How helpful was this comment/solution? Please rate here:
Verified by Erik P. Ernst

In one of the NAV releases, the Property Store table was not included in the All role - by mistake. Can you check that this is included there and if not add it to the All role, with a direct Read permission. Then synchronize again if you are still using Enhanced security (you can do this for a single login and try it with just that login, as a test, before synchronizing all).

This posting is provided "AS IS" with no warranties, and confers no rights.
Not Ranked
7 Posts
75 Points
Joined: May 7, 2009
Last Online:
Jun 4, 2009 20:20
Location: Houston, TX, USA
Jonathan Gardner replied on May 12, 2009 23:21
How helpful was this comment/solution? Please rate here:

Dean,

 

The Property Store table is not included in the All role.  I am going to make the adjustments later today and test.  I will let you know the results asap.  Thanks for the help.

Not Ranked
7 Posts
75 Points
Joined: May 7, 2009
Last Online:
Jun 4, 2009 20:20
Location: Houston, TX, USA
Jonathan Gardner replied on May 13, 2009 17:52
How helpful was this comment/solution? Please rate here:

Initial testing shows that this has solved the issue.  I am conducting more testing and will post a confirmation here.

Top 10 Contributor
Male
5,053 Posts
94,825 Points
Joined: Oct 1, 1995
Last Online:
Mar 16, 2010 19:57
Location: Copenhagen, Denmark
DynamicsNAVMVP
Moderator
SystemAdministrator
Erik P. Ernst replied on May 24, 2009 11:58
How helpful was this comment/solution? Please rate here:

Hi Jonathan,

Please, if any of the replies to your post solved your problem, then please click on the "Verify solution" next to that post. This way we can see that your post is closed and you got the help you needed. If you found another solution to your problem, then please, out of courtisy to the members who helped you here, post the solution here.

Best regards,
Erik P. Ernst

DUG’s Admin's Blog

Don't forget to "Verify Solution" the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

Not Ranked
7 Posts
75 Points
Joined: May 7, 2009
Last Online:
Jun 4, 2009 20:20
Location: Houston, TX, USA
Jonathan Gardner replied on May 26, 2009 15:39
How helpful was this comment/solution? Please rate here:

Erik,

Dean McCrae's solution worked for me.  I have to review my security for my all users settings.  I didn't pose the question so I don't know how to Verify the solution.  Please let me know how and I will gladly do it.

Jonathan

Page 1 of 1 (15 items) | Get this RSS feed | Bookmark and Share