Link Search Menu Expand Document Documentation Menu

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 API

Introduced 2.0

Returns the identity information for the current user.

Endpoints

GET  /_plugins/_security/whoami
POST /_plugins/_security/whoami

Example request

GET _plugins/_security/whoami

Example response

{
  "dn": null,
  "is_admin": false,
  "is_node_certificate_request": false
}
350 characters left

Have a question? .

Want to contribute? or .