# Participant\_id inconsistency between webhook and API

**URL:** <https://devforum.zoom.us/t/participant-id-inconsistency-between-webhook-and-api/75296>\
**Category:** API and Webhooks\
**Created:** [September 1, 2022, 9:23pm UTC](https://devforum.zoom.us/t/participant-id-inconsistency-between-webhook-and-api/75296 "2022-09-01T21:23:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan.buchmayer](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ryan.buchmayer/32/28459_2.png) [@ryan.buchmayer](https://devforum.zoom.us/u/ryan.buchmayer)\
**Post date:** [September 1, 2022, 9:23pm UTC](https://devforum.zoom.us/t/participant-id-inconsistency-between-webhook-and-api/75296/1 "2022-09-01T21:23:17Z")

</div>

### Format Your New Topic as Follows:

**API Endpoint(s) and/or Zoom API Event(s)**  
_Link the API endpoint(s) and/orZoom API Event(s) you’re working with to help give context._

- `meeting.sharing_ended` and `meeting.sharing_started` event: [https://marketplace.zoom.us/docs/api-reference/zoom-api/events/#operation/meeting.sharing\_ended](https://marketplace.zoom.us/docs/api-reference/zoom-api/events/#operation/meeting.sharing_ended)
- GET `/past_meetings/{meetingId}/participants` API endpoint: [https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/pastMeetingParticipants](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/pastMeetingParticipants)

**Description**  
_Details on your question, workflow or the problem you’re trying to solve._  
We have a user-level zoom app and are trying to map participants to screen sharing. We rely on `meeting.sharing_started` and `meeting.sharing_ended` webhooks to get the screen sharing data because our user-level app does not give us the `dashboard_meetings:read:admin` scope to access the `/metrics/meetings/{meetingId}/participants/sharing` endpoint. We also rely on the `/past_meetings/{meetingId}/participants` API endpoint to get all participant data after the meeting has ended.

We then try to map each screen sharing segment to the participant that it belongs to. This works well for logged in zoom users within our account, but does not for external users.

**Error?**  
_The full error message or issue you are running into, where applicable._  
Both the `meeting.sharing_ended` and `/past_meetings/{meetingId}/participants` docs state that the participant’s `id` field will be empty if the user is not logged in. However, we are seeing that field empty in the `meeting.sharing_ended` and `meeting.sharing_started` webhook payloads, but present in the `/past_meetings/{meetingId}/participants` API response payload.

example `meeting.sharing_ended` webhook payload for an external participant:

```auto
{"id": "", "user_id": " *****", "user_name": "E***** M *****", "sharing_details": {"source": "", "content": "*****", "date_time": " *****", "file_link": "", "link_source": ""}}

```

example `/past_meetings/{meetingId}/participants` API response for the same external participant in the same meeting:

```auto
{"id"=>"8Sf *******", "name"=>"E***** M *****", "user_email"=>""}

```

Is this expected? The docs make it sound like both `id` fields should be empty.

In addition, if we can’t use the participant’s `id` for mapping screen sharing to participant, how can we achieve this mapping for external/logged out users? The `user_id` field seems to always be populated in the `meeting.sharing_ended` webhooks, but not in the `/past_meetings/{meetingId}/participants` API response. The last thing I can think of is using `name` for the mapping, but that may not be a very unique identifier.

Thanks!

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 6, 2022, 2:47pm UTC](https://devforum.zoom.us/t/participant-id-inconsistency-between-webhook-and-api/75296/2 "2022-09-06T14:47:07Z")

</div>

Hi @ryan.buchmayer  
Hope you are doing great and thanks for reaching out to the Zoom Developer Forum.  
After reading all the details you have shared with us, I would like to go ahead and do some testing on my end so I can provide you better guidance.  
Please allow me some time to do so and I will come back to you with an update shortly.  
Best,  
Elisa

---

<div class="post-metadata">

**Author:** ![ryan.buchmayer](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ryan.buchmayer/32/28459_2.png) [@ryan.buchmayer](https://devforum.zoom.us/u/ryan.buchmayer)\
**Post date:** [October 19, 2022, 7:21pm UTC](https://devforum.zoom.us/t/participant-id-inconsistency-between-webhook-and-api/75296/3 "2022-10-19T19:21:25Z")

</div>

Hello,

any updates on this?

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 3, 2022, 7:03pm UTC](https://devforum.zoom.us/t/participant-id-inconsistency-between-webhook-and-api/75296/4 "2022-11-03T19:03:32Z")

</div>

Hi @Ryan  
I am really sorry for the late reply on this!  
You are right, in our Docs it is sated that the value of the field “id” will be empty if the user is not logged in.  
But you are saying that when you are calling the Get Past meetings endpoint, you are actually getting an “id” value for non-logged-in users, correct?

I will go ahead and send you a private message so we can exchange more information since I am not able to replicate this behavior on my end.  
Best,  
Elisa

---

<div class="post-metadata">

**Author:** ![ryan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ryan/32/37137_2.png) [@ryan](https://devforum.zoom.us/u/ryan)\
**Post date:** [November 3, 2022, 9:48pm UTC](https://devforum.zoom.us/t/participant-id-inconsistency-between-webhook-and-api/75296/5 "2022-11-03T21:48:35Z")

</div>

Wrong Ryan 😉 cc ^ @ryan.buchmayer

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 4, 2022, 1:50pm UTC](https://devforum.zoom.us/t/participant-id-inconsistency-between-webhook-and-api/75296/6 "2022-11-04T13:50:08Z")

</div>

Oh!!! @ryan thanks for letting me know!!! Have an amazing day!!!  
I meant @ryan.buchmayer🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 8, 2023, 5:26am UTC](https://devforum.zoom.us/t/participant-id-inconsistency-between-webhook-and-api/75296/7 "2023-11-08T05:26:58Z")

</div>

Closed on November 8, 2023, 5:26am UTC

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