Hi at all
I hava springboot java application in which I am trying to get all users, that have a specific role. For that I am using following code:
RoleResource roleResource = keycloak.realm(realmId).roles().get(roleId);
Set<UserRepresentation> users = roleResource.getRoleUserMembers();
But in the line with the roleResource.getRoleUserMembers(); part, I am getting
Caused by: javax.ws.rs.ForbiddenException: HTTP 403 Forbidden
I would gess my Keycloak client needs more scopes to do this, but I dont know which ones.
I tried to run it with my client having “Full scope allowed”, but that did not help…
Does anybody have ideas on this?
Thank you