Disable users
- POST also PUT /_security/user/{username}/_disable
Disable users in the native realm. By default, when you create users, they are enabled. You can use this API to revoke a user's access to Elasticsearch.
- Cluster privileges:
manage_security
Path Parameters
-
usernamestringrequired -
An identifier for the user.
Query Parameters
-
refreshRefresh If
true(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.-
Values:
truefalsewait_for
Response
application/json
Response Type: object