I have created a rule that is updating our users metadata inside of our Auth0 dashboard but the access_token is not being updated with this rule. The decoded token is giving us a scope of “openid profile email”.
When we try the rule in the dashboard under Rules the user object gives me the following:
“app_metadata”: {
“roles”: [
“admin”
]
Am I missing something on how to update scope so our user can be properly changed to admin?
If you can post the rule that would be great. Are you explicitly adding the metadata attributes to your tokens (e.g. setting context.idToken)? Example here: