ISecurityIdentifier Property: SecurityIdentifier

Property Name
SecurityIdentifier

Property Type
Variant

Description
Returns the Security Identifier (SID) of the object to which the interface is bound. The value of the SID is in byte array format. This property is useful when the SID needs to be saved or written in a binary form.
This property is read-only.

Example

Dim Sid As ISecurityIdentifier
Dim VarSid As Variant
Dim SidByte As Variant
'Get the interface for user object
Set Sid = GetObject ("NTDS://MSFT\John")
'Get Security Identifier of user John
VarSid = Sid.SecurityIdentifier
'Display each byte in Sid Array
For each SidByte in VarSid
 Debug.Print SidByte
Next

 

See Also