Showing posts with label AD. Show all posts
Showing posts with label AD. Show all posts

Monday, December 16, 2013

SID of user from active directory / AD

    AX 2012 stores user information in the UserInfo table . While creating a new user manually/sql server, we need to specify the SID of the user. The following X++ code fetches the SID of the user from AD/ registry.

    To get SID of user, without this user will not be able to login to ax, just user will be shown into user form

    xAxaptaUserManager Axmanage;

    Axdetails = Axmanage.getSIDFromName(this.UserId,this.NetworkDomain,UserAccountType::ADUser);