Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Getting azure's upn attribute #152

Closed
Gilwe opened this issue Oct 27, 2020 · 2 comments
Closed

Getting azure's upn attribute #152

Gilwe opened this issue Oct 27, 2020 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@Gilwe
Copy link

Gilwe commented Oct 27, 2020

Im trying to create an integration with azure but auth0 notifies that sometime azure wont send to auth0 the user's email upon creation so auth0 will get the user's upn (UserPrincipalName) which is an applicable replacement, that most of the times will hold the email.

Look at the bottom of:
https://auth0.com/docs/connections/azuread-adfs-email-verification?_ga=2.142645749.1771189736.1603610793-286699271.1581410788&_gac=1.220607850.1603614771.Cj0KCQjwxNT8BRD9ARIsAJ8S5xa5ttTL_Lyo15V8RN-VrNUkMGgnA1jIJ50_-5N_2-XwjV8LDe3g8DoaAshuEALw_wcB

I can issue a PR that will add it to User in management/user.go but would like to know if there's a more elegant way of getting that upn attribute when querying a user.

Thank you.

@alexkappa
Copy link
Contributor

Hi @Gilwe, if the Auth0 management API contains the upn field, you are welcome to add it.

@sergiught
Copy link
Collaborator

Closed and cloned this issue to auth0/go-auth0#15

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants