Hi,
We have an application with multitenancy, each tenant segregated in it's realm.
Currently we programmatically create a new realm using the admin user from the master admin-cli client and also we use same user to do some management stuff programmatically for all realms.
We'd like to do the same but with an admin service account instead of the admin user.
What we've done is:
1. create a new service account in master realm
2. in the service account role tabs we add the admin role
3. We then access using the client credentials and try to get another realm representation
What happens is that we get a 401 Unhauthorized.
Note 1:
Using the admin-cli admin user in the same way does work.
Note 2:
We're running keycloak v9.0.3
Can service account access realms different from the one they have been created in?
Is there some configuration we're missing?