You're viewing version 3.8 of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.
Who Am I Protected API
Introduced 2.11
Returns the identity information for the current user. Unlike the Who Am I API, this endpoint is subject to REST layer authorization, so the user’s role must grant access to it.
Endpoints
GET /_plugins/_security/whoamiprotected
Example request
GET _plugins/_security/whoamiprotected
Example response
{
"dn": null,
"is_admin": false,
"is_node_certificate_request": false
}