IMetabaseSecurity.ExportUsersList

Syntax

ExportUsersList(FileName: String);

Parameters

FileName. Name and location of the file, to which the object is exported.

Description

The ExportUsersList method exports users list to file.

Comments

The file saves only information displayed in the list of the security manager that is why configured column display and filtering in used must be taken into account.

To export the list as a table, specify file in the CSV format (*.csv).

Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    
// Export list of users to the file   
    MB.Security.ExportUsersList("C:\UsersList.csv");
    
// Check in license
    Lic := Null;
End Sub UserProc;

After executing the example the list of users will be exported as a table to the specified file.

See also:

IMetabaseSecurity