I have created a client in keycloak and configure it access type to "confidential".
I can use REST API protocol/openid-connect/token
with clientId and client secret to get the access token for this this client.
In my design, there is a use case that I need to use the client access token to post a role in its Realm (the role needs to belong to realm, not this client). Then I can see the post request is denied. I have configured the scope of this client to full scope but it doesn't help.
Any idea whether this is possible? If yes, what configs I need for this client?