This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20.6
SET USER ALIAS

SET USER ALIAS 


 

SET USER ALIAS ( alias ) 
Parameter Type   Description
alias  Text in Alternate user name for 4D user account or "" to reset

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, Get 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)



See also 

CHANGE CURRENT USER
Current user
SET GROUP ACCESS

 
PROPERTIES 

Product: 4D
Theme: Users and Groups
Number: 1666

This command can be run in preemptive processesNot for server

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17 R5

 
ARTICLE USAGE

4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)