Creating Users in OpenSearch for ElastiFlow
This guide describes how to create internal users and roles in OpenSearch that can read and search ElastiFlow data without full administrative privileges.
Create an Internal User
Log in as the admin user and navigate to Security → Internal Users.
Click Create User.
Fill out the form:
Username
Password (and confirmation)
Click Create to save the user.
Create a Role
Go to Security → Roles and click Create role.
Name the role, e.g.
elastiflow-readonly.In the Cluster Permissions section, add:
cluster_composite_ops_ro
In Index Permissions, use these patterns:
elastiflow-*.kibana*
And apply the following permissions:
readsearch
In the Tenant Permissions section:
Select
global_tenantSet to Read only access
Click Create to save the role.
Map the User to the Role
From the
elastiflow-readonlyrole page, open the Mapped users tab.Click Manage mapping.
Select the newly created user.
Click Map.
Test the New User
Open a private browser window.
Log in with the new user.
Select the Global tenant when prompted (ElastiFlow dashboards are stored here).
External Authentication Mapping (Optional)
If you're using an external provider (SAML, LDAP, RADIUS), map the backend role sent by the IdP to this internal role:
Go to Roles →
elastiflow-readonly→ Mapped backend rolesAdd the backend role (e.g.
elastiflow-readonly) sent by your IdP
Users will now be able to access ElastiFlow Dashboards and data with the appropriate read-only permissions.
Last updated
Was this helpful?
