Sid: ISid;
The Sid property returns identifier of the security subject, to which this element belongs.
Executing the example requires that the repository contains an object with the OBJ1 identifier.
Add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
ObjDesc: IMetabaseObjectDescriptor;
SecDesc: ISecurityDescriptor;
AcessCL: IAccessControlList;
ACE: IAccessControlEntry;
SID: String;
Begin
MB := MetabaseClass.Active;
ObjDesc := MB.ItemById("OBJ");
SecDesc := ObjDesc.SecurityDescriptor;
AcessCL := SecDesc.Acl;
ACE := AcessCL.Item(0);
SID := ACE.Sid.AsString;
End Sub UserProc;
After executing the example the SID variable contains an identifier of a security subject of the first user in the list, to which this elements belongs.
See also: