ResolveSid(Sid: ISid): ISecuritySubject;
Sid - a security subject identifier.
The ResolveSid method returns parameters of security subject, which identifier is passed as the Sid parameter.
If the security subject does not exist, the method returns Null.
Executing the example requires that the repository contains an object with the Obj_1 identifier.
Sub Main;
Var
MB: IMetabase;
Sec: IMetabaseSecurity;
SecDesc: ISecurityDescriptor;
Acl: IAccessControlList;
Ace: IAccessControlEntry;
Subject: ISecuritySubject;
Begin
MB := MetabaseClass.Active;
Sec := MB.Security;
SecDesc := MB.ItemById("Obj_1").SecurityDescriptor;
Acl := SecDesc.Acl;
For Each Ace In Acl Do
Subject := Sec.ResolveSid(Ace.Sid);
If Ace.Type = AceType.AccessAllowed Then
Debug.Write("Allowing parameter. Access mask: " + Ace.AccessMask.ToString);
Debug.WriteLine("; Security subject:" + Subject.Name);
Else
Debug.Write("Disallowing parameter. Access mask: " + Ace.AccessMask.ToString);
Debug.WriteLine("; Security subject:" + Subject.Name);
End If;
End For;
End Sub Main;
After executing the example information about additional parameters of the Obj_1 object security is displayed in the development environment console. Information about the security subject, for which the specified parameter is added, is obtained by the security subject identifier.
See also: