User Realm Role in OIDC userinfo endpoint

Hi,
I’m using Keycloak 14.0.0 and had some issues with the roles mapper
It sims that the Roles mapper does not take effect on the “userinfo” endpoint

{
  "sub": "XXXXXXXXXXXXXXXXXXXXXXXX",
  "email_verified": true,
  "name": "foo bar",
  "preferred_username": "e",
  "roles": [
    "SuperAdmin"
  ],
  "email": "e@example.com"
}

On the access token, it does work
What can be the issue?
Thanks in advance

1 Like

Hi, @l10178. Thank you for your answer.
We did it in the User Realm Roles, and it showed in the userinfo
The point is that role mapping does not work. meaning that the userinfo view the real role name and not the alias