Get Current User Info
Returns the user name, display name, type, and assigned roles of the currently authenticated caller.
The current user's information was retrieved successfully.
{
"name": "[email protected]",
"display_name": "",
"user_type": "REMOTE_USER",
"password_status": "INVALID",
"roles": [
{
"role": "AUDITOR",
"display_name": "Auditor"
},
{
"role": "SUPPORT_BUNDLE_COLLECTOR",
"display_name": "Support Bundle Collector"
}
]
}
The user or group's name.
The human-readable name for this user or group, suitable for showing in a UI.
Identifies whether an identity is a local Installer account, a remote user authenticated through a configured LDAP identity source, or a remote LDAP group.
The password expiry state of a local user, included so a UI can prompt the user to change their password before it expires.
ACTIVE: The password is valid and not expired.EXPIRED: The password has expired; the user must change it viaPOST /iam/change-passwordbefore continuing.INVALID: Not applicable - the account's password isn't managed by Installer (for example, a remote LDAP user).
Timestamp in milliseconds since epoch.
The roles currently assigned to this user or group.
Bad Request
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
4XX and 5XX type errors with appropriate message
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -H 'Authorization: <value>' https://{api_host}/https://{api_host}:{port}/lh-appliance/iam/current-user-info