Get objectGUID and objectSid for Active Directory user
19,638
Is PowerShell an option? If so you can do something along the following.
Get-ADUser USERNAME -Properties * | Select SamaccountName,ObjectSid,ObjectGUID
Related videos on Youtube
Author by
pkr
Updated on September 18, 2022Comments
-
pkr over 1 year
I can see what the objectGUID and objectSid are for a user, by going to: Active Directory Users and Computers -> The User -> Properties -> Attribute Editor, but it won't let me actually copy the values in string format! I can't even really copy the Hexadecimal value and convert it online since the hex characters are not given in order.
I've tried using ldp.exe but I can't get it to find the user.
Are there any other tricks to getting (and copying!) the objectGUID and objectSid of an Active Directory user?
-
pkr almost 9 yearsThanks, I used
Get-ADUser USERNAME
to get the information (splitting the Properties up cut off the ends of the values). -
Unfundednut almost 9 yearsYou can generally do a
| -select -expand SOMETHING
and get the item alone. -
asgs about 7 yearsThanks! is
objectGUID
different fromobjectId
that is returned in theGet-MsolUser
cmdlet? -
Unfundednut about 7 years@asgs That looks like a 365 command which I don't have access to so can't help sorry.