How to enrich an API JWT with additional User Data?

Hi I use an JWT ( responseType: ‘id_token token’, scope: ‘openid’) to identify my ReactJS Frontend against a REST API

Currently i only have the following claims in my payload:
iss, sub, aud, iat,exp,azp,scope

I would like to enrich the JWT with Username or Nickname as well as Email Adress and EmailVerification Flag.

How do I do it?
If found following article

But if I try to save the rule in the Admin Frontend I get “Forbidden” without any further explanation as error.

1 Like

Can you try to clean your browser’s cache or using a different browser altogether? If you’re using Chrome, do you see any errors in Developer Tools > Console?