UserName: String;
The UserName property determines a name of the security package user.
Sub Main;
Var
MB: IMetabase;
LoS: ILogonSession;
Mu: IMetabaseUser;
SPUD: ISecurityPackageUserData;
s: String;
Begin
MB:=MetabaseClass.Active;
LoS:=MB.LogonSession;
Mu:=Los.User;
SPUD:=Mu.PackageData;
s:=SPUD.UserName;
End Sub Main;
After executing the example, the "S" variable contains a user name of security package of the current session.
See also: