IAccessControlEntry.Sid

Syntax

Sid: ISid;

Description

The Sid property returns an identifier of security subject that has access permissions to an object.

Example

Executing the example requires that the repository contains an object with the Obj_1 identifier.

Sub Main;

Var

MB: IMetabase;

ObjDesc: IMetabaseObjectDescriptor;

SecDesc: ISecurityDescriptor;

AcessCL: IAccessControlList;

ACE: IAccessControlEntry;

SID: String;

Begin

MB := MetabaseClass.Active;

ObjDesc := MB.ItemById("Obj_1");

SecDesc := ObjDesc.SecurityDescriptor;

AcessCL := SecDesc.Acl;

ACE := AcessCL.Item(0);

SID := ACE.Sid.AsString;

End Sub Main;

After executing this example the SID variable contains an identifier of a security subject of the first user in a list that has access permissions to an object.

See also:

IAccessControlEntry