HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

elasticsearch-users — Manage native realm users in Elasticsearch, including creating, updating, and deleting users. More i

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandelasticsearchuserselasticsearch-usersnativeclimanagerealm

Problem

How to use the elasticsearch-users command: Manage native realm users in Elasticsearch, including creating, updating, and deleting users. More information: <https://www.elastic.co/docs/reference/elasticsearch/command-line-tools/users-command>.

Solution

elasticsearch-users — Manage native realm users in Elasticsearch, including creating, updating, and deleting users. More information: <https://www.elastic.co/docs/reference/elasticsearch/command-line-tools/users-command>.

Add a new user interactively (prompts for password):
elasticsearch-users useradd {{username}}


Add a new user and specify roles:
elasticsearch-users useradd {{username}} -r {{role1,role2}}


Change the password for an existing user:
elasticsearch-users passwd {{username}}


Delete a user:
elasticsearch-users userdel {{username}}


List all users in the native realm:
elasticsearch-users list

Code Snippets

Add a new user interactively (prompts for password)

elasticsearch-users useradd {{username}}

Add a new user and specify roles

elasticsearch-users useradd {{username}} -r {{role1,role2}}

Change the password for an existing user

elasticsearch-users passwd {{username}}

Delete a user

elasticsearch-users userdel {{username}}

List all users in the native realm

elasticsearch-users list

Context

tldr-pages: common/elasticsearch-users

Revisions (0)

No revisions yet.