TM1USER

TM1USER returns the user name of the user currently logged in to TM1® and using the TM1USER function.

If the current user is not connected to a TM1 server, or if the specified server is not running, TM1USER returns an empty string.

Note: If you run TM1USER against a TM1 server that is configured to use Cognos® security, the function returns the user name, not the internal user name/CAMID. (In TM1 Perspectives, this function returns the internal user name/CAMID.)

Syntax

TM1USER("server")

Argument

Description

Required/Optional

server

The name of a TM1 server.

Required

Example

If a user named BrianT is logged in to the GO_New_Stores server, and BrianT runs the TM1USER function, this example returns BrianT.
TM1USER("GO_New_Stores")