Get a user profile
- GET /_security/profile/{uid}
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.
- Cluster privileges:
read_security
Path Parameters
-
uidUserProfileId | UserProfileIdrequired -
A unique identifier for the user profile.
Query Parameters
-
datastring | string A comma-separated list of filters for the
datafield of the profile document. To return all content usedata=*. To return a subset of content usedata=<key>to retrieve content nested under the specified<key>. By default returns nodatacontent.
Response
-
profilesUserProfileWithMetadatarequired -
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. -
uidstringrequired -
userUserProfileUserrequired -
emailstringnullable -
full_nameName | stringnullable -
realm_namestring Namerequired -
realm_domainstring Name -
rolesstringrequired -
usernamestringrequired -
datamap string to objectrequired -
labelsmap string to objectrequired -
enabledboolean -
last_synchronizednumberrequired -
_docUserProfileHitMetadatarequired -
_primary_termnumberrequired -
_seq_nonumber SequenceNumberrequired -
errorsGetUserProfileErrors -
countnumberrequired -
detailsmap string to ErrorCauserequired -
<string>ErrorCause -
typestringrequired -
The type of error
-
reasonstringnullable -
A human-readable explanation of the error, in English.
-
stack_tracestring -
The server stack trace. Present only if the
error_trace=trueparameter was sent with the request. -
caused_byErrorCause -
root_causeErrorCause -
suppressedErrorCause