3.4.2. Display the Active User in the Management CLI
Prerequisites
Summary
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" }} }
Result
Your current active user account is displayed.