Adding windows user group to NAV and assign roles

najjanajja Member Posts: 67
Dear All,

May be this is one of the simplest queries.

I am trying to add a windows active directory user group (security) into Dynamics NAV and assign roles. I have around 65 users in total from which only 15 will have super user privileges and other elevated privileges. We have created a customised role called "ERPUSER" for the normal users. I have created a user group (security) in my Active Directory called "ERP_Users" and have added all normal users into this group. When I added this group alone into Tools --> Security --> 'Windows Login' in NAV, I am able to synchronize without any error. When the users tries to login, they can see the database in the DB list using windows authentication but cannot login with the error "Invalid User Name / Password". I read somewhere that I can use user groups only to assign roles to the users and need to add individual users into dynamics NAV. I added some of these users along with the user group, gave no roles to the users directly but gave the user group "ERPUSER" role. When I tried to synchronise I get the error:

** Error ***
The following SQL error or errors occured:

15151,"42000",[Microsoft][ODBC SQL Driver] Cannot find the user
'$ndo$ar$000.......', because it does not exist or you dont have permission

SQL:
GRANT SELECT, INSERT, UPDATE, DELETE on "Object" TO [$ndo$ar$000.....]
*** Error End ****

I am not sure what I am doing wrong. All I am trying to do is to avoid adding all the users into NAV and assign role and instead create an AD user group and assign roles to that. I am not sure how this is achieved, or whether this is possible.

Any help is appreciated.

(I read in one of the post about a document 'Security Synchronization in NAV.doc', but unable to find the doc anywhere in partnersource or otherwise)

Regards

Najja

Answers

  • kapil4dynamicskapil4dynamics Member Posts: 591
    they can see the database in the DB list using windows authentication but cannot login with the error "Invalid User Name / Password"

    Check the password policy for this.
    Kapil Khanna
  • ara3nara3n Member Posts: 9,256
    Please change the security model to standard.

    File->database->alter->Advanced tab->Security Model changed to standard.

    In order to do this. Open SQL SMS and set the database to single user first.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • DenSterDenSter Member Posts: 8,307
    The single user option is also available from the NAV classic client, in Database Alter, on the Options tab.
  • ara3nara3n Member Posts: 9,256
    DenSter wrote:
    The single user option is also available from the NAV classic client, in Database Alter, on the Options tab.


    The issue with that option is that if there are other people connected to the database, Navision just hangs.

    On sql it has the option to kick other users out when you set it to single users.
    So I don't recommend people using that feature, unless they know the bug.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • najjanajja Member Posts: 67
    File --> Database --> Alter --> Advanced | Security - Standard

    Works like a charm

    Thanks a ton, everyone

    Najja
  • krikikriki Member, Moderator Posts: 9,115
    [Topic moved from 'NAV 2009' forum to 'NAV/Navision' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • najjanajja Member Posts: 67
    Thanks a ton Everyone
  • ara3nara3n Member Posts: 9,256
    you are welcome.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Ian_WilsonIan_Wilson Member Posts: 25
    najja wrote:
    File --> Database --> Alter --> Advanced | Security - Standard

    Works like a charm

    What is the difference between the "Standard" and "Enhanced" security model?
  • ara3nara3n Member Posts: 9,256
    Ian Wilson wrote:
    najja wrote:
    File --> Database --> Alter --> Advanced | Security - Standard

    Works like a charm

    What is the difference between the "Standard" and "Enhanced" security model?


    A lot of headache.


    On serious note, there a couple of post on this that you can search.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Ian_WilsonIan_Wilson Member Posts: 25
    Thanks for the tip: Use site search before posting dumb questions :oops:

    I will go and read "Synchronizing Security in Navision 4.0 SP3" which is on the install CD.

    Thanks :)
Sign In or Register to comment.