Returns a character string representing the user ID for the specified database connection identity.
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.
This one-line procedure displays the current user ID for the database with the DICTDB alias:
r-userid.p
This value is returned... | For... |
---|---|
"" | A non-qualified user ID for the blank user name in the blank domain |
"user-name" | A non-qualified user ID for a specific user name in the blank domain |
"@domain-name" | A fully qualified user ID for the blank user name in a specific domain |
"user-name@domain-name" | A fully qualified user ID for a specific user in a specific domain |
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.