Assign a role to multiple users

I want to assign a new role to my users, but i have 150 users.... there is a way to assign the role to all users at the same time

thanks in advance

@Larry_Gregory can we do this?


Hey @artax_sb,

Based on your question, I assume that your users are in the native realm? If so, then there isn't a way to bulk-assign a role to your users, but you can automate this by writing a script which calls the Elasticsearch's User APIs for each of your users

If you're using a different realm type (e.g. SAML, Kerberos, PKI, OIDC), then you can define a role mapping to assign your users the same role using a single declaration.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.