ISecurityPackageUserData.UserName

Syntax

UserName: String;

Description

The UserName property determines a name of the security package user.

Example

Sub UserProc;
Var
    MB: IMetabase;
    User: IMetabaseUser;
    SPUD: ISecurityPackageUserData;
Begin
    MB := MetabaseClass.Active;
    User := MB.LogonSession.User;
    SPUD := User.PackageData;
    Debug.WriteLine(SPUD.UserName);
End Sub UserProc;

After executing the example the development environment console displays name of the security package user in the current session.

See also:

ISecurityPackageUserData