Enable users | Elasticsearch API documentation (original) (raw)
Dismiss highlight Show more
POST /_security/user/{username}/_enable
Enable users in the native realm. By default, when you create users, they are enabled.
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
.
POST /_security/user/{username}/_enable
curl \
--request POST 'http://api.example.com/_security/user/{username}/_enable' \
--header "Authorization: $API_KEY"