Clear;
The Clear method clears a list of additional security parameters of an object.
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;
Begin
MB:=MetabaseClass.Active;
ObjDesc:=MB.ItemById("Obj_1");
SecDesc:=ObjDesc.SecurityDescriptor;
SecDesc.Edit;
AcessCL:=SecDesc.Acl;
AcessCL.Clear;
SecDesc.Apply(True);
End Sub Main;
After executing this example a list of users who have access permissions on the object with sh1 identifier is cleared.
See also: