Options

Get if user is in role (with use of active directory groups)

rbindinirbindini Member Posts: 27
edited 2011-10-05 in NAV Three Tier
Hello,
In nav 2009 i have this configuration:
windows active directory group are assigned to windows login and then assigned to navision role

Is it possible to check with C/AL code if a user is member of navision role ?

Thanks

Comments

  • Options
    pdjpdj Member Posts: 643
    You can't find it in any system table, but take a look in the Mobile Permission Mgt codeunit. (I think that is the name of the codeunit). It checks if a given user has permissions to a given object, and also checks roles assigned to AD groups by using the extended stored procedure in the SQL server. For the Native DB i guess you will need to make an OLE component.
    Regards
    Peter
  • Options
    jglathejglathe Member Posts: 639
    Hi,

    this is possible, but only for the user who logged into the actual session. There is a virtual table called User SID. This contains all SIDs of the groups the current user belongs to.

    With best regards

    Jens


    ---
    I am here: http://maps.google.com/maps?ll=52.552909,13.084223
  • Options
    rbindinirbindini Member Posts: 27
    Thanks to all !
Sign In or Register to comment.