Add the upn to event.user

Feature:
When writing an action, it would be great if we could access the upn property from waad (windows azure active directory) users.

Description: Currently we have to lookup this value using the mgmt api, but it should be provided in the event context for speed + convience.

Use-case: I’m building a user link action, using the PostLoginAction, and currently have to do some work-arounds to do the linking since the upn is not included by default.

Thanks a lot for sharing that feature request!

I also am facing the same issue while converting a Rule to an Action.
What management API can I use to query the user.upn?

Thanks!

I was able to get the upn field by using getUser({ id: user.user_id }) from using the management api: https://auth0.github.io/node-auth0/module-management.ManagementClient.html#getUser

1 Like

Thanks for sharing that with the rest of community!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.