enable-user-profile.asciidoc 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [role="xpack"]
  2. [[security-api-enable-user-profile]]
  3. === Enable user profile API
  4. ++++
  5. <titleabbrev>Enable user profile</titleabbrev>
  6. ++++
  7. NOTE: The user profile feature is designed only for use by {kib} and
  8. Elastic’s {observability}, {ents}, and {elastic-sec} solutions. Individual
  9. users and external applications should not call this API directly. Elastic reserves
  10. the right to change or remove this feature in future releases without prior notice.
  11. Enables a user profile so it's visible in
  12. <<security-api-suggest-user-profile,user profile searches>>.
  13. [[security-api-enable-user-profile-request]]
  14. ==== {api-request-title}
  15. `POST /_security/profile/<uid>/_enable`
  16. `PUT /_security/profile/<uid>/_enable`
  17. [[security-api-enable-user-profile-prereqs]]
  18. ==== {api-prereq-title}
  19. To use this API, you must have the `manage_user_profile` cluster privilege.
  20. [[security-api-enable-user-profile-desc]]
  21. ==== {api-description-title}
  22. When you <<security-api-activate-user-profile,activate a user profile>>, it's
  23. automatically enabled and visible in user profile searches. If you later
  24. <<security-api-disable-user-profile,disable the user profile>>, you can use the
  25. enable user profile API to make the profile visible in these searches again.
  26. [[security-api-enable-user-profile-path-params]]
  27. ==== {api-path-parms-title}
  28. `<uid>`::
  29. (Required, string) Unique identifier for the user profile.
  30. [[security-api-enable-user-profile-query-params]]
  31. ==== {api-query-parms-title}
  32. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=refresh]
  33. [[security-api-enable-user-profile-example]]
  34. ==== {api-examples-title}
  35. The following request enables the user profile for a `uid` matching
  36. `u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0`:
  37. [source,console]
  38. ----
  39. POST /_security/profile/u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0/_enable
  40. ----
  41. // TEST[setup:user_profiles]