Platform SDK: Active Directory, ADSI, and Directory Services

Object SID

The user's SID can be retrieved using the objectSID attribute. The objectSID is returned as a VARIANT array of the string.

sid = usr.Get("objectSID")
For i = LBound(sid) To UBound(sid)
    Debug.Print sid(i)
Next