Get users

  • GET /_security/user/{username}
  • GET /_security/user
Auth

Get information about users in the native realm and built-in users.

Required authorization

Cluster privileges read_security

Path parameters

username union string | string[] optional

An identifier for the user. You can specify multiple usernames as a comma-separated list. If you omit this parameter, the API retrieves information about all users.

Leave it out to use /_security/user.

Query parameters

with_profile_uid boolean · default: false

Determines whether to retrieve the user profile UID, if it exists, for the users.

Response

application/json
<string> object
email union string nullable
One of: string
full_name union string nullable
metadata object required
roles string[] required
username string required
enabled boolean required
profile_uid string