NAV 2013 - Get user AD groups

vcarluervcarluer Member Posts: 15
edited 2013-01-22 in NAV Three Tier
Hi everyone,

I have an issue with security in NAV 2013 and AD Groups.
We have an application which use NAV security system and we need to be able to use AD Groups.
In NAV 2009 we use the NAV SQL stored functions to get AD groups for a user and then we ckecked permissions for it.

In NAV 2013 I was able to create an account with type 'Windows Group' and defined permissions to it.
I then added an account which belong to this AD group with no permission.
User account take correctly cascading permissions of its group and i am able to log in RTC with it.

But now we need to retrieve in code for a given user its AD group list in case NAV is configured this way, and there... I found no way to do this.

Does anyone have any idea to get AD group list (SID list for example) for a user (SID, User ID or user name) inside a code unit?

Thank you.

Comments

  • companycompany Member Posts: 89
    Hello,

    Try using Dotnet variables if you can find any class in the dotnet variables whichh gives this.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Or create a linked server in SQL (search the web for ADSI/LDAP). Then you can use ADO and some SELECT-statements in a codeunit to retrieve your AD details.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • vcarluervcarluer Member Posts: 15
    Thank you for your answers, so for me the conclusion is that it's no more possible to do it 'natively' with deployed objects in NAV 2013.
    We have disabled this feature for now and we may go to a custom .net add-in when needed.
Sign In or Register to comment.