Concepts → Miscellaneous System Variable
About miscellaneous system variables
There are two miscellaneous system variables:
| Variable | Data Type | Description | Example |
|---|---|---|---|
$user | string | The user's lowercase login name | myadmin |
$tenantname | string | The user's lowercase tenant name | mytenant |
When you sign in to the Analytics Service, the Analytics Service creates a user session. A user session can contain session variables as well as other system variables. Most session variables are immutable once a value has been assigned.
Note
- The
$usersystem variable is immutable as a user's login name can not be modified. - The
$usersystem variable has some usage restrictions. For example, it is not possible to reference the$usersystem variable in a formula expression for a physical schema table formula column. - The
$tenantnamesystem variable returns the logged-in user's current tenant, enabling tenant-specific filtering for analytics and governance use cases. - The
$tenantnamesystem variable variable is not supported in formulas within physical schema tables or load filters.