For my application purpose, I want to get the user information from Active Directory. Especially I want to get current user SID and user account domain SID. Can anyone tell me some way to get this user information?

PS: Any approach is highly preferable (e.g. by running terminal commands or getting the user information from Objective C code).


In the shell you may use the command dsmemberutil to get at least the user SID:

Example to get the SID of a user by username:

% dsmemberutil getsid -U username
  • how to get the user account domain SID?. – santhosh Aug 28 '15 at 5:45
  • @santhosh I'm already looking into this... – klanomath Aug 28 '15 at 6:48

You can also use the -G parameter to get the SID for an AD Group

dsmemberutil getsid -G <AD Group>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .