IMetabaseSecurity.CreateExporter

Syntax

CreateExporter: IMetabaseSecurityExporter;

Description

The CreateExporter method creates an object to export settings of security policy and access permissions.

Comments

The user who has the privilege "Change security label and a list of access control of any object" can perform export of access permissions.

The user who has the privilege "Change user rights, give roles, change policy" can perform export of settings of security policy.

Example

    Sub UserProc;
    Var
        Exporter: IMetabaseSecurityExporter;
    Begin
        Exporter := MetabaseClass.Active.Security.CreateExporter;
        Exporter.FileName := "MetabasePolicy.csv";
        Exporter.ExportPolicy;
    End Sub UserProc;

After executing this example export of settings of security policy is performed in a specified file. If the file has already existed it will be overwritten.

See also:

IMetabaseSecurity