3.4.2. Display the Active User in the Management CLI
Prerequisites
The whoami operation is a global operation used to identify the attributes of the current active user. The operation exposes the identity of the username and the realm that they are assigned to. The whoami operation is useful for administrators managing multiple users accounts across multiple realms, or to assist in keeping track of active users across domain instances with multiple terminal session and users accounts.
Procedure 3.15. Task
Run the
whoamioperationFrom the Management CLI, use thewhoamioperation to display the active user account.[standalone@localhost:9999 /]
:whoamiThe following example uses thewhoamioperation in a standalone server instance to show that the active user isusername, and that the user is assigned to theManagementRealmrealm.Example 3.6. Use the
whoamiin a standalone instance[standalone@localhost:9999 /]:whoami { "outcome" => "success", "result" => {"identity" => { "username" => "username", "realm" => "ManagementRealm" }} }
Your current active user account is displayed.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.