SET USER ALIAS
SET USER ALIAS ( alias )
Parameter | Type | Description | |
---|---|---|---|
alias | Text | → | Alternate user name for 4D user account or "" to reset |
Description
The SET USER ALIAS command defines an alternate, custom name to use in place of the current 4D user account name for the current session. The alternate name is retained in memory and applied only to the current user.
Note: This command can only be called from 4D remote or 4D single-user applications. It is not allowed on 4D Server.
In the alias parameter, pass the alternate name to be displayed instead of the current 4D user account name.
Once the command is executed, the alias is used wherever the current 4D user account was returned or displayed, in particular in the Current user, Process activity and LOCKED BY commands, or the ORDER BY FORMULA of the 4D Server administration window. In client/server environments, this command must be executed on remote applications so that each user is identified on the server, for example through the Current user command, even if all remote applications use the same 4D user account.
To remove the alias for the current 4D user, call SET USER ALIAS("").
Note: Calling the CHANGE CURRENT USER command resets the alias name for the current user.
Example
Your users are managed through a custom table and use the same 4D user account. On each client machine, you can execute:
SET USER ALIAS([myUsers]userName)