Authenticating to admin api with current user

Hello everyone,

We are working on a project where the authentication is managed by Keycloak, but some of the user management UI’s will be internal. I am playing with the admin java api. Is it possible to authenticate to the admin api with the current logged in user, assuming that user has the required roles for realm-management.

Cheers.

-> Is it possible to authenticate to the admin api with the current logged in user, assuming that user has the required roles for realm-management.

Yes. You can use Keycloak’s Admin CLI to check what is and isn’t possible: Getting started with Keycloak