Hi @mark29,
Yes, this is possible. This can be done with a post login action to add custom claims to the access token.
It’s worth mentioning that the access token is issued immediately after a user logs in. So, if you are unsure of the custom claim metadata during the login event, you might want to consider saving that information in the user’s user_metadata once you know.
Then, when the user logs in next or if you silently authenticate them, it will appear in the access token as custom claims.
I also suggest checking out our Explore Flows and Triggers documentation.
Let me know if you have any questions.
Thanks,
Rueben