2

I'm trying to define Services Account Roles in Keycloak to list users via the REST API.

But manage-users, view-users and admin not found.

enter image description here

It's necessary this permission roles to resolve this error (unknown_error), according to:

Keycloak Admin Rest API unknown_error for update user API

Unknown error while creating client using Keycloak REST API

This is the url called and error shown:

enter image description here

What would be happening?

Muka
  • 1,190
  • 1
  • 12
  • 27

2 Answers2

0

Those are realm-management client roles: enter image description here

Jan Garaj
  • 25,598
  • 3
  • 38
  • 59
  • I have three realms: master, prod and dev. Note of them I found `realm-management` client option to field Client Roles. – Muka Jan 10 '22 at 01:28
0

jan-garaj response is correct but to elaborate a little based on similar questions from many users.

  • The client role selection box only shows a couple clients. It does not show all the clients. So you need to type in the first few characters of "realm" to see the selection get updated with the option you are looking for.
Ian
  • 51
  • 1
  • 2