USERNAME

The USERNAME function returns the domain and name of the user from the credentials given to the system at the time of connection.

Syntax

USERNAME()

Parameters

The USERNAME function does not take any arguments.

Returned value

The USERNAME function returns a text string.

Examples

We can see the result of this function by creating a simple measure:

user = USERNAME()

...and taking it to a card-like display:

USERNAME function. Example of use

In this case the domain is the one corresponding to the name of the machine, JUPITER, and the name of the user is DANIEL.

Category
Information
Submitted by admin on Wed, 01/09/2019 - 19:42