This is possible, but you need to do it the other way round.
In your intern_users.yml, you can assign backend roles to users as well. Have a look at the sample config file we ship with Search Guard:
Please have also a look at the documentation regarding internal users:
So, you need in the sg_internal_users.yml something like:
And then in sg_roles_mapping.yml you would map the backend role “hr” to the Search Guard role like:
On Wednesday, May 10, 2017 at 5:13:30 PM UTC+2, Yasvanth Babu wrote:
I have an query regarding granting access to the users in groups. I am not sure whether it is available in current config or not. Is there a way to map the users to a group in Searchguard.
For an instance: I have users like joe, jhon, and adam who belongs to HR
Currently I give access by mapping the user to index “sg_roles_mapping.yml” like
By any chance can we define like in sg_internal-users.yml :
username2 : adam
An in sg_roles_maping.yml
Kindly let me know is it possible or not .