Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

Return ObjectGuid after creating a user

$
0
0

I want to get the objectguid of a user as soon as it is created. I don't want to search again in AD after creating user to get objectguid. Is it possible to get objectguid in same request when we create user or do I need to search again with user's DN?. I am using these namespaces :- 

using System.DirectoryServices.AccountManagement;
using System.DirectoryServices;
using System.DirectoryServices.Protocols;


Viewing all articles
Browse latest Browse all 31638

Trending Articles



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