Jump to content
Toggle menu
  • 51 articles
  • 24 files
  • 4 users
  • 750 edits
Tech-Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

How to get the AD object security ID (SID)

From Tech-Wiki


Practical configuration and operational reference for How to get the AD object security ID (SID).

Procedure

How to obtain the Active Directory Security ID (SID) for an object.

First obtain the distinguished name (DN) of the object. In this example the 'dsquery' utility has been used. From the Command Prompt.

dsquery user -name "Joe Bloggs"

Example Output:

"CN=Joe Bloggs,OU=Users,DC=contoso,DC=com"


Next use the 'dsget' utility, along with the DN to obtain the SID:

dsget user "CN=Joe Bloggs,OU=Users,DC=Contoso,DC=com" -sid

Example Output:

 sid
 S-1-5-21-2560XXXX-XXXXX-XXXXX-19440
 dsget succeeded

See also