This method work is given in the Setting Up Attribute-Based Access Control Method subsection.
To enable or disable the use of attribute-based access control, use the IMetabasePolicy.AttributeBasedAccessControl checkbox.
Sub EnableABAC;
Var
Mb: IMetabase;
MbSec: IMetabaseSecurity;
Lic: Object;
Begin
Mb := MetabaseClass.Active;
// Get license to be able to work with the security manager
Lic := Mb.RequestLicense(UiLicenseFeatureType.Adm);
// Security manager
MbSec := Mb.Security;
// Use attribute-based access control method
MbSec.Policy.AttributeBasedAccessControl := True;
// Apply changes
MbSec.Apply;
// Check in license
Lic := Null;
End Sub EnableABAC;
Attribute-based access structure is returned by the IMetabasePolicy.ABACRules property. Further setup is executed using resources of the ABAC assembly. For details see the General Principles of Programming Using the ABAC Assembly subsection.
See also: