Get a user profile

  • GET /_security/profile/{uid}
Auth

Get a user's profile using the unique profile ID.

Note

The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. Elastic reserves the right to change or remove this feature in future releases without prior notice.

Required authorization

Cluster privileges read_security

Path parameters

uid union string | string[] required

A unique identifier for the user profile.

Query parameters

data union string | string[]

A comma-separated list of filters for the data field of the profile document. To return all content use data=*. To return a subset of content use data=<key> to retrieve content nested under the specified <key>. By default returns no data content.

Response

application/json
profiles object[] required

A successful call returns the JSON representation of the user profile and its internal versioning numbers. The API returns an empty object if no profile document is found for the provided uid. The content of the data field is not returned by default to avoid deserializing a potential large payload.

uid string required
user object required
email union string nullable
One of: string
full_name union string nullable
realm_name string required
realm_domain string
roles string[] required
username string required
data map string to object required
labels map string to object required
enabled boolean
last_synchronized number required
_doc object required
_primary_term number required
_seq_no number required
errors object
count number required
details map string to object required
<string> object
type string required

The type of error

reason union string nullable

A human-readable explanation of the error, in English.

One of: string
stack_trace string

The server stack trace. Present only if the error_trace=true parameter was sent with the request.

caused_by object
root_cause object[]
suppressed object[]