I created a custom claim in the portal and I'm creating users with that claim using the Graph API. If I use the user flow to login I manage to get the custom claim. However if I use a custom policy I don't get the custom claim. I don't know what I'm doing wrong. If I declare it as an output claim in my RP I get a 500 - internal server error. If I declare the custom claim (which doesn't make sense since I already declared it using the UI earlier) I get back nothing or the default value if I specify it in the PR.
I would have used the user flow process since it works but I need to perform extra logic so I have to use custom policies.
Thank you for your assistance.