Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Impersonate another user in X++ code

$
0
0

Hello,

I am working on an AX customisation where I need to query user information in AD. I am relying on the following class:

directorySearcher = new System.DirectoryServices.DirectorySearcher(entry);

However, due to the nature of the requirements I would like - in this particular case - for this class to operate under the user credentials of a specific user - not the current AX user.

Is there anyway to achieve this in AX? I.e. instantiate the DirectorySearcher class under the credentials and rights of a different user?


Best regards,

Grzegorz Skrzypczyk


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>