Anyway to include user groups into my jwt token


I have two user groups in my kc server ( adminGroup, userGroup)
Is there any possible way to include user group into jwt token.

Below is the group defined in my server

You have to add a mapper for the clients you need the groups.
There is a built in group mapper.

If you need the groups in all clients, make a client scope and add it to the default ones

1 Like

thank you for the answer. It helped a lot Below is the solution for my case.