# Add the upn to event.user

**URL:** <https://community.auth0.com/t/add-the-upn-to-event-user/60839>\
**Category:** Product Feedback\
**Tags:** actions\
**Created:** [April 9, 2021, 12:33pm UTC](https://community.auth0.com/t/add-the-upn-to-event-user/60839 "2021-04-09T12:33:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexab/32/13403_2.png) [@alexab](https://community.auth0.com/u/alexab)\
**Post date:** [April 9, 2021, 12:33pm UTC](https://community.auth0.com/t/add-the-upn-to-event-user/60839/1 "2021-04-09T12:33:44Z")

</div>

**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.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 9, 2021, 1:37pm UTC](https://community.auth0.com/t/add-the-upn-to-event-user/60839/2 "2021-04-09T13:37:42Z")

</div>

Thanks a lot for sharing that feature request!

---

<div class="post-metadata">

**Author:** ![derekclee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/derekclee/32/34241_2.png) [@derekclee](https://community.auth0.com/u/derekclee)\
**Post date:** [January 6, 2022, 6:31pm UTC](https://community.auth0.com/t/add-the-upn-to-event-user/60839/3 "2022-01-06T18:31:30Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![derekclee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/derekclee/32/34241_2.png) [@derekclee](https://community.auth0.com/u/derekclee)\
**Post date:** [January 6, 2022, 10:18pm UTC](https://community.auth0.com/t/add-the-upn-to-event-user/60839/4 "2022-01-06T22:18:04Z")

</div>

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](https://auth0.github.io/node-auth0/module-management.ManagementClient.html#getUser)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 7, 2022, 12:56pm UTC](https://community.auth0.com/t/add-the-upn-to-event-user/60839/5 "2022-02-07T12:56:08Z")

</div>

Thanks for sharing that with the rest of community!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 22, 2022, 12:57pm UTC](https://community.auth0.com/t/add-the-upn-to-event-user/60839/6 "2022-02-22T12:57:00Z")

</div>

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