Azure auth (social/OAuth2) - getting email from a different field
One of the external organization we are working with is using a different field than the email as the reliable identifier. Basically, their reliable user identifier that has an email pattern is under another attribute (upn - or userPreferredName).
Is there any known way of dealing with these things? Because the Azure auth provider is first looking into the email field that is return (which causes an issue because sometimes the email field is empty). I was thinking of the auth hooks, but there doesn't seem to be anything that would enable mapping the email to a different field returned (or a function that would get it using the azure token). We are able to get this info using the /me endpoint with the microsoft graph.
Thanks for any help!
0 Replies