<@U04UQ68083H> When the user logs in I want to cal...
# ory-copilot
n
@chilly-king-10285 When the user logs in I want to call an api with the users email in order to find out what custom claims should be in that users access_token. How can I set that up and can I set that up in the Ory Console?
c
A message from kapa.ai
Hmm, I don't know enough to give you a confident answer yet. However, Ory does support customization of scopes and claims. You can set up a custom consent UI to adjust your identity management process to fit your needs. For more information, you can check out the [Ory Consent UI Documentation](https://www.ory.sh/docs/oauth2-oidc/custom-login-consent/flow). As for calling an API with the user's email to determine custom claims, the provided extracts do not contain specific information on how to achieve this. I recommend checking the Ory documentation or reaching out to the Ory community for more specific guidance.
n
Is this an uncommon case @magnificent-energy-493 @narrow-van-43826? And can I solve it while still using Ory (Ory Cloud)?
m
@numerous-stone-43519 Hey, sorry for the late reply, where you able to find a solution? This sounds a bit like you want to use the claims as permissions, is that assumption correct?
n
I was able to solve it using the Custom UI 🙂
👍 1