Identify Logged-In User

Command Execution

You can easily find the identification of the user account that is currently logged in to the CLI.

To identify the user currently logged in to the CLI, execute the following command:

copy
$
catalyst whoami

This will print the email address of the logged-in user.


Execute with --dc Option

If you execute this command with the --dc option and specify the data center, the command will return the email address of the user login of that data center.

As explained in the CLI Options help page , Catalyst enables you to maintain valid login tokens for multiple data centers simultaneously. Therefore, if you had logged in to one data center with a user account, and another data center with a different user account, the catalyst whoami command will print the user login of that data center, when used with the --dc option.

You can identify the user currently logged in to a specific data center, by executing the following command:

copy
$
catalyst whoami --dc <us|eu|in|au>


Note: If you are a Visual Studio Code IDE user, you can install the Catalyst Tools extension, and perform CLI operations using your IDE in place of the CLI. Steps to perform the whoami operation in Visual Studio Code IDE can be found here.

Last Updated 2024-01-09 17:07:13 +0530 +0530