IMetabasePolicy.EnforceApplicationRole

Syntax

EnforceApplicationRole: Boolean;

Description

The EnforceApplicationRole property determines whether it is possible to use application role in security policy.

Comments

The property is set to False by default. If the property is set to True, the security policy uses the application role. In this case, the repository database can be accessed only from Foresight Analytics Platform.

Example

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

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Policy: IMetabasePolicy;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    Policy := MS.Policy;
    
// Enable the use of application role
    Policy.EnforceApplicationRole := True;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

After executing the example the repository database can be accessed only from Foresight Analytics Platform.

See also:

IMetabasePolicy