disable-user-profile.asciidoc 2.0 KB

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