# Matching meeting.participant\_joined webhook with local database

**URL:** <https://devforum.zoom.us/t/matching-meeting-participant-joined-webhook-with-local-database/9753>\
**Category:** API and Webhooks\
**Created:** [March 26, 2020, 3:08pm UTC](https://devforum.zoom.us/t/matching-meeting-participant-joined-webhook-with-local-database/9753 "2020-03-26T15:08:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![thand](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thand/32/65389_2.png) [@thand](https://devforum.zoom.us/u/thand)\
**Post date:** [March 26, 2020, 3:08pm UTC](https://devforum.zoom.us/t/matching-meeting-participant-joined-webhook-with-local-database/9753/1 "2020-03-26T15:08:40Z")

</div>

I am trying to track when a specific (local to us) user has joined a zoom meeting.

We are creating instant meetings over the API whenever a host launches it. We want to allow multiple, unanticipated people, to be able to just click a join button on our site to just go straight into the meeting. This all works fine.

We have a particular user though that we need to mark a flag when they’ve joined the meeting. I’m trying now to utilize the registrant create API call, as it sounds like that can return a unique join\_url to enable this matching: [https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrantcreate](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrantcreate)

The response I get though is:  
(  
[code] =\> 300  
[message] =\> This meeting has not registration required: 309841423  
}

Can you help me understand the requirements for using this method or if there may be any other methods for performing this method?

---

<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:** [March 26, 2020, 9:35pm UTC](https://devforum.zoom.us/t/matching-meeting-participant-joined-webhook-with-local-database/9753/2 "2020-03-26T21:35:45Z")

</div>

Hey @thand,

To use the [Create Registrant endpoint](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrantcreate), make sure the meeting has [registration enabled](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate):

 ![Screen Shot 2020-03-26 at 3.35.34 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/c/c386b97558e696a6a9174dc20928790873b02715.png)

So in your case, option approval\_type 0, or 1.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![thand](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thand/32/65389_2.png) [@thand](https://devforum.zoom.us/u/thand)\
**Post date:** [March 26, 2020, 11:11pm UTC](https://devforum.zoom.us/t/matching-meeting-participant-joined-webhook-with-local-database/9753/3 "2020-03-26T23:11:49Z")

</div>

I was thinking that I had approval\_type already at “0”, but it does not seem to be working. There seems to be a problem there though and I am hopeful solving that may fix everything else.

I am looking at the API call log for such a meeting on zoom and I see that I request an “approval\_type” of 0, but the response is actually giving me an “approval\_type” of 2. Any assistance on why that might be?

Example:  
request\_body: “{“topic”:“CreatingConnections”,“type”:1,“agenda”:“1:1”,“settings”:{“host\_video”:1,“participant\_video”:1,“waiting\_room”:0, **“approval\_type”:0** ,“auto\_recording”:“cloud”,“mute\_upon\_entry”:0}}”,

response: "{“uuid”:“ygnBsOeMSpW5811IKFUV3w==”,“id”:590871426,“host\_id”:“XXX”,“topic”:“Creating Connections”,“type”:1,“status”:“waiting”,“timezone”:“America/Los\_Angeles”,“agenda”:“1:1”,“created\_at”:“2020-03-26T23:05:30Z”,“start\_url”:“XXX”,“join\_url”:“XXX”,“settings”:{“host\_video”:true,“participant\_video”:true,“cn\_meeting”:false,“in\_meeting”:false,“join\_before\_host”:false,“mute\_upon\_entry”:false,“watermark”:false,“use\_pmi”:false, **“approval\_type”:2** ,…}

---

<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:** [March 27, 2020, 1:00am UTC](https://devforum.zoom.us/t/matching-meeting-participant-joined-webhook-with-local-database/9753/4 "2020-03-27T01:00:06Z")

</div>

Hey @thand,

To use `approval_type` 0 you need to use meeting `type` 2, 3, or 8. It can’t be used with `type` 1 (instant meetings.)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![thand](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thand/32/65389_2.png) [@thand](https://devforum.zoom.us/u/thand)\
**Post date:** [March 31, 2020, 12:34pm UTC](https://devforum.zoom.us/t/matching-meeting-participant-joined-webhook-with-local-database/9753/5 "2020-03-31T12:34:04Z")

</div>

I have moved to using scheduled meetings so that I may make use of this feature; however I am unable to understand what is going on.

We need to track when user B joins a meeting.

When user A creates a meeting:

- I make sure that we have created a zoom account for user B (user id nTqKuVbhQQ-Nr0Lp5UgLKA is returned)
- I add user B as a registrant to the meeting (registrant\_id ELmVHY5YTyO0lC\_vfOTYaA is returned)
- We provide user B the unique join url returned from the add registrant call
- User B clicks on their unique join link and we receive a meeting.participant\_joined notification with a blank id field (the user\_name field does match what we sent for the user and I have seen somewhere suggestions of using this field, but surely we can do better… right?) (there is also a numeric user\_id field that does not seem to match up to anything else and I can’t seem to get anything from the api based on this user\_id)

In the meeting.participant\_joined notification, why is the id blank? What is registrant\_id if not the id of the user joining the meeting?

Are there suggested improvements to this flow to help it to work?

---

<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:** [March 31, 2020, 6:29pm UTC](https://devforum.zoom.us/t/matching-meeting-participant-joined-webhook-with-local-database/9753/6 "2020-03-31T18:29:30Z")

</div>

Hey @thand,

> [@thand](#):
>
> the user\_name field does match what we sent for the user and I have seen somewhere suggestions of using this field, but surely we can do better… right?

If the user is logged in under a different name, then they registered for the meeting with, when they join the meeting, their logged in Zoom name will override the registered name. The user\_id field will also be overridden by the id of the logged in user.

See my post here for more info:

> [@Unable to map meeting registrant id with live participant id](https://devforum.zoom.us/t/unable-to-map-meeting-registrant-id-with-live-participant-id/6862/5):
>
> Hey @saurabh, I will add this as a feature request, to not override the registrant\_id with the user Id when joining a meeting via the registrants join\_url while being logged in. Or maybe the best solution is to add a registrant\_id field that always includes the registrant\_id, or if registration is not required, is blank. [Per the description in the docs:](https://marketplace.zoom.us/docs/api-reference/zoom-api/dashboards/dashboardmeetingparticipants#responses) “Universally unique identifier of the Participant. It is the same as the User ID of the participant if the participant joins the meeting by …

That being said, I wouldn’t create a Zoom account for user B. They can simply join the meeting without an account using the url returned from their registration. Then all the values should line up.

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, 7:38pm UTC](https://devforum.zoom.us/t/matching-meeting-participant-joined-webhook-with-local-database/9753/7 "2020-08-21T19:38:11Z")

</div>

Closed on August 21, 2020, 7:38pm UTC


