disable-user-profile.asciidoc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [role="xpack"]
  2. [[security-api-disable-user-profile]]
  3. === Disable user profile API
  4. ++++
  5. <titleabbrev>Disable 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. Disables a user profile so it's not visible in
  12. <<security-api-suggest-user-profile,user profile searches>>.
  13. [[security-api-disable-user-profile-request]]
  14. ==== {api-request-title}
  15. `POST /_security/profile/<uid>/_disable`
  16. `PUT /_security/profile/<uid>/_disable`
  17. [[security-api-disable-user-profile-prereqs]]
  18. ==== {api-prereq-title}
  19. To use this API, you must have the `manage_user_profile` cluster privilege.
  20. [[security-api-disable-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. You can use the
  24. disable user profile API to disable a user profile so it's not visible in
  25. these searches.
  26. To re-enable a disabled user profile, use the
  27. <<security-api-enable-user-profile,enable user profile API>> .
  28. [[security-api-disable-user-profile-path-params]]
  29. ==== {api-path-parms-title}
  30. `<uid>`::
  31. (Required, string) Unique identifier for the user profile.
  32. [[security-api-disable-user-profile-query-params]]
  33. ==== {api-query-parms-title}
  34. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=refresh]
  35. [[security-api-disable-user-profile-example]]
  36. ==== {api-examples-title}
  37. The following request disables the user profile for a `uid` matching
  38. `u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0`:
  39. [source,console]
  40. ----
  41. POST /_security/profile/u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0/_disable
  42. ----
  43. // TEST[setup:user_profiles]