Concepts → Miscellaneous System Variable

About miscellaneous system variables

There are two miscellaneous system variables:


VariableData TypeDescriptionExample
$userstringThe user's lowercase login namemyadmin
$tenantnamestringThe user's lowercase tenant namemytenant

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 $user system variable is immutable as a user's login name can not be modified.
  • The $user system variable has some usage restrictions. For example, it is not possible to reference the $user system variable in a formula expression for a physical schema table formula column.
  • The $tenantname system variable returns the logged-in user's current tenant, enabling tenant-specific filtering for analytics and governance use cases.
  • The $tenantname system variable variable is not supported in formulas within physical schema tables or load filters.