Creating a User and Granting Permissions by Using Kibana¶
Prerequisites¶
The security mode has been enabled for the cluster.
Procedure¶
Note
This section takes Kibana 7.6.2 as an example to describe the procedure.
Log in to the CSS management console.
Click Access Kibana in the Operation column of a cluster.
Log in to Kibana.
Username: admin
Password: Enter the password set during cluster creation.
Click the Security icon on the Kibana operation page.
Create a user.
Choose Authentication Backends >Internal Users Database.
On the Internal Users Database page, choose . The page for adding user information is displayed.
On the user creation page, configure Username and Password, and click Submit.
The user will be displayed in the user list.
Configure roles and permissions for the user.
Click Roles.
On the Open Distro Security Roles page, click .
Enter a role name on the Overview page.
Configure CSS cluster permissions on the Cluster Permissions page. You can skip this step.
Configure index permissions on the Index Permissions page.
Index patterns: Set this parameter to the name of the index whose permission needs to be configured. For example, my_store.
Note
Use different names for the index and the user.
Configure Permissions: Action Groups as required, for example, select the read-only permission Search.
Retain the default settings on the Tenant Permissions page.
After the configuration is complete, the role will be displayed.
Assign a role to the user.
Click Role Mappings.
Click to add the mapping between users and roles.
Click Submit.
Verify that the configuration takes effect in Kibana.