View user details
Retrieve the username, role, and permissions for the currently logged-in user. Use this endpoint to verify and audit access rights within your ONTAP environment.
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"
}
}
}