Skip to main content
REST API reference

View user details

Overview

This API endpoint retrieves the username, role, and permissions information for the logged-in user.

Examples

Retrieves the username, role, and permissions information for the logged-in user.

Retrieves the username, role, and permissions information for the logged-in user.

# The API:
GET "/api/security/login/whoami"

# The call
curl -k https://<mgmt-ip>/api/security/login/whoami

# the response:
{
"username": "admin",
  "role": [
    "admin"
  ],
  "privileges": [
  {
    "path": "/api",
    "access": "all"
  }
],
"_links": {
    "self": {
        "href": "/api/security/login/whoami"
    }
}
}