How to add a Role to a user from a resource server

Hello

I would like to know if it possible and how to do it, to add an existing ROLE to a user from a resource server

The user get connected, authenticated, trough keycloak server to a resource server and from this resource server I would like to add a ROLE to this user.

I hope you understand what I mean :slight_smile:

Thanks for you help

Have a look here: Using Keycloak Admin Client to create user with roles (Realm and Client level) ยท GitHub

1 Like

Thanks a lot @akuma8 for the link. It took me a time to make it works, but it works.