Our system has around 100,000 users and
each user has different permission on the data.
I am planning to use elastic search roles concept
to support permission/authorization.
I will be defining one role on elasticsearch for each user exists in our system
(I want to avoid creating the users on elasticsearch)
by using Document level security which is part of xpack.
In this case how to specify role as part of the query/search?
In the end, I will have a single user and thousands of roles defined on elasticsearch
and based on who is querying, I will be submitting the role as part of the query for authorization.
Is this possible? Any suggestions are welcome.
I see the documentation to submit a query on behalf of another user but not as a different role
Thanks in advance.