Can't see Role attribute in a user JWT

Hi All,

I’m trying to figure out how to add role attributes into a JWT token (Access Token)

I created a new Role named “Manager” with an attribute named “Actions”

Then I defined a new Client Scope named “Actions” with a mapper named “Actions” that map a user attribute named “actions” into the token

Then I took a client we have named “API” and added this client scoper as a default one

finally, I created a new user and gave him the Manager role

Now, since this user is for the “Manager” role, and the role was defined with an attribute named “actions” I expected that the user will get those attributes as well and therefore when getting an access token from the API client those will appear in the JWT(AT)

but it doesn’t work.

if I do the same things but with a group (creating a group with attributes and giving the user this group) everything works fine.

Is this by design or am I doing something wrong?