Use email instead of UPN as user login method

I am using Azure with Jupyterhub. There the authentication method being used is AzureAdOAuthenticator. When we login to the servers it uses our UPN which have other tags attached to it so instaed of using UPN we like to use email.

I tried adding username_key: ‘email’ into the config file but it didn’t work.
Please help!!

I imagine it’s possible, but you might need to do some debugging of the responses, and/or talk to your Azure admin, to find out what fields are being returned.