Previous Next

USERID function
Returns a character string representing the user ID for the specified database connection identity.
Syntax 
 
USERID [ ( logical-dbname ) ]
logical-dbname
The logical name of the database from whose connection identity you want to retrieve the user ID. The logical database name must be a character string enclosed in quotes, or a character expression. If you do not specify this argument, the compiler inserts the name of the database that is connected when the procedure is compiled. If you omit this argument and more than one database is connected, ABL raises an error.
Example 
This one-line procedure displays the current user ID for the database with the DICTDB alias:
 
DISPLAY USERID("DICTDB") LABEL "You are logged in as" WITH SIDE-LABELS.
Notes 
*
*
 
"user-name"
"@domain-name"
"user-name@domain-name"
The user ID returned by this function is always consistent with the user ID used in database identity audit trails, as well as for applying ABL table and field permissions and ABL Security Administrator rights.
*
*
*
You omit the logical-dbname argument and more than one database is currently connected
*
When specifying the logical-dbname argument, you must provide the name of the logical database, not the physical database.
*
*
ABL user IDs in _User table accounts are case insensitive.
*
See OpenEdge Getting Started: Identity Management, OpenEdge Development: Programming Interfaces, and OpenEdge Data Management: Database Administration for more information on user identity.
See also 
CAN-DO function, CONNECT statement, QUALIFIED-USER-ID attribute, SET-CLIENT( ) method, SET-DB-CLIENT function, SETUSERID function, USER-ID attribute

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.