Link Search Menu Expand Document Documentation Menu

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
}
350 characters left

Have a question? .

Want to contribute? or .