AuditUserAgent: Boolean;
The AuditUserAgent property determine whether information about browser (User Agent) is logged when working in the web application.
Available values:
True. Information about the browser, in which the web application is opened, is displayed in the Comment column . access protocol on each login to the system.
False. Default value. Information about the browser, in which the web application is opened, is not displayed in the access protocol.
The property is identical to the Log Information about UserAgent checkbox contained in access control settings.
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;
// Get license to be able to work with the security manager
Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
MS := MB.Security;
Policy := MS.Policy;
// Enable logging of information about User Agent
Policy.AuditUserAgent := True;
// Save changes
MS.Apply;
// Check in license
Lic := Null;
End Sub UserProc;
After executing the example, each login to the system is logged in the access protocol containing information about the browser, in which the web application is opened.
See also: