Repository navigation
How to restrict service account in keycloak? #39327
Unanswered
Samir-parekh
asked this question in
Q&A
Replies: 2 comments 4 replies
The find methods return ClientRepresentations. Represenations are detached objects. Changes to them are not automatically made to the server. You should then use the ClientResource - clients().get(id).update(modified_representation) |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a service account with which I want to run create/update realm commands only.
So I disabled the full scope. Now I want to make sure when new realm is created by user, service account should get assigned role to create/manage realm role. I want to assign this role using java methods. Please help me here with your suggestion.
I am trying this :
keycloak.realm("master").clients().findByClientId("service-account-client").get(0) but its not allowing to add roles.
All reactions