Enable users | Elasticsearch API documentation (original) (raw)
Dismiss highlight Show more
Enable users Generally available
POST /_security/user/{username}/_enable
Enable users in the native realm. By default, when you create users, they are enabled.
- Cluster privileges:
manage_security
Path parameters
- An identifier for the user.
Query parameters
- If
true
(the default) then refresh the affected shards to make this operation visible to search, ifwait_for
then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.
Values aretrue
,false
, orwait_for
.