# Payload.object.registrant.id doesn't map to Zoom user ID for webhook registration-related events

**URL:** <https://devforum.zoom.us/t/payload-object-registrant-id-doesnt-map-to-zoom-user-id-for-webhook-registration-related-events/21873>\
**Category:** API and Webhooks\
**Created:** [June 20, 2020, 12:10am UTC](https://devforum.zoom.us/t/payload-object-registrant-id-doesnt-map-to-zoom-user-id-for-webhook-registration-related-events/21873 "2020-06-20T00:10:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dylan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dylan/32/2392_2.png) [@dylan](https://devforum.zoom.us/u/dylan)\
**Post date:** [June 20, 2020, 12:10am UTC](https://devforum.zoom.us/t/payload-object-registrant-id-doesnt-map-to-zoom-user-id-for-webhook-registration-related-events/21873/1 "2020-06-20T00:10:44Z")

</div>

**Description**

For all registration-related events (e.g. [**meeting.registration\_cancelled**](https://marketplace.zoom.us/docs/api-reference/webhook-reference/meeting-events/meeting-registration-cancelled)), the value of **payload.object.registrant.id** didn’t appear to map to an actual Zoom user ID, even in the cases where a registered user is logged into their Zoom account prior to registration (the user I used in this test was **not** in the same Zoom org as my developer account, not sure if that matters). Is that expected?

Ideally, this ID would map to the Zoom user ID (i.e. the ID returned by the [Get a User endpoint](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user)). This might allow applications like ours to route these events to the user who submitted the registration, so they can operate on these events programmatically (for example, I may want to get a Slack message when the status of my registration request changes).

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**

OAuth, user-managed app.

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Create a user-managed OAuth application, configuring Event Subscriptions and sending Meeting Registration Cancelled to a URL endpoint.
2. Create a new meeting, requiring registration.
3. In a separate Zoom account, register for the meeting using the registration URL from step 2.
4. Cancel the registration for this user.
5. The meeting.registration\_cancelled webhook payload will contain a registrant ID, but that ID does not map to the Zoom user ID for the user who submitted the registration in step 3.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 23, 2020, 10:40pm UTC](https://devforum.zoom.us/t/payload-object-registrant-id-doesnt-map-to-zoom-user-id-for-webhook-registration-related-events/21873/2 "2020-06-23T22:40:39Z")

</div>

Hey @dylan,

Correct. The registrant `id` is the id of the [registrant](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrants), not the Zoom user id or participant id.

> [@dylan](#):
>
> Ideally, this ID would map to the Zoom user ID (i.e. the ID returned by the [Get a User endpoint](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user)). This might allow applications like ours to route these events to the user who submitted the registration, so they can operate on these events programmatically (for example, I may want to get a Slack message when the status of my registration request changes).

This is tricky since you don’t need a Zoom account or have to be singed in when registering for a meeting / webinar. Your best bet is to map via the `email` field, but don’t rely on that email being a Zoom user email, because they might not have an account, or may have used a different email.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![dylan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dylan/32/2392_2.png) [@dylan](https://devforum.zoom.us/u/dylan)\
**Post date:** [June 23, 2020, 10:55pm UTC](https://devforum.zoom.us/t/payload-object-registrant-id-doesnt-map-to-zoom-user-id-for-webhook-registration-related-events/21873/3 "2020-06-23T22:55:59Z")

</div>

Yep I hear you. Would it be too much to ask for a feature request to have this ID hold the value of the Zoom user ID when the user _is_ logged in? Then applications like ours could at least route events to the correct user in that condition.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 24, 2020, 10:47pm UTC](https://devforum.zoom.us/t/payload-object-registrant-id-doesnt-map-to-zoom-user-id-for-webhook-registration-related-events/21873/4 "2020-06-24T22:47:39Z")

</div>

Hey @dylan,

We will evaluate this as a feature request. Although I could see how this could be abused, by registering emails to see if they have a Zoom account.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:26pm UTC](https://devforum.zoom.us/t/payload-object-registrant-id-doesnt-map-to-zoom-user-id-for-webhook-registration-related-events/21873/5 "2020-08-21T22:26:17Z")

</div>

Closed on August 21, 2020, 10:26pm UTC


