I am currently implementing User-managed Access to our application. I am wondering, if there is a way to get all users granted permissions to specified resources and scopes.
Having the user ids, I can add the filter to the database query accordingly. I could not find a way through the REST API yet.
Hi @aemaem can you please clarify what do you mean [quote=“aemaem, post:1, topic:27327”] get all users granted permissions to specified resources and scopes.
[/quote] ?
I don’t think you can get the list of users based on permission. You should do the opposite, loop over all the users and check whether they have the permission or not. And based on that you can return the list of users who granted that permission.
You can create an out of the box endpoint and register it to keycloak as a web resource.