# Invalid length for participantId - 1.7.6 and above

**URL:** <https://devforum.zoom.us/t/invalid-length-for-participantid-1-7-6-and-above/17179>\
**Category:** Web\
**Created:** [May 12, 2020, 5:06am UTC](https://devforum.zoom.us/t/invalid-length-for-participantid-1-7-6-and-above/17179 "2020-05-12T05:06:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmauck](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@jmauck](https://devforum.zoom.us/u/jmauck)\
**Post date:** [May 12, 2020, 5:06am UTC](https://devforum.zoom.us/t/invalid-length-for-participantid-1-7-6-and-above/17179/1 "2020-05-12T05:06:34Z")

</div>

**Description**  
We are currently running the WebSDK version 1.7.5 in our production environment with no errors. We attempted an upgrade over the past couple of days to 1.7.7, and are now receiving an error message indicating that the participantId we’re passing in is \> 12 characters (which is true). Historically (1.7.5 and prior), passing this participantId parameter allowed us to launch the Zoom session via the WebSDK with a user’s details including the participantId, which then translated into the Participant\_ID field in the downstream web-hooks. These participantIds look something like CkltXNm4R322elaVEjRFGQ - and correspond to the user\_id field we’re pulling from our Users extracts.

Per some other articles, we tried omiting the participantId from the init’s json completely, instead relying only on the userEmail property. This did NOT work though. Though we successfully recorded the user\_name of the joining person in subsequent webhook events, the participant\_ID returned was a completely random identifier not tied at all to the account we had joined the meeting under.

**Error**  
1.7.6 and beyond is throwing an Invalid Parameters error indicating that the participantId exceeds 12 characters. This doesn’t make sense because all of the user\_id fields exceed 12 characters. It seems like something has fouled up in 1.7.6 and above that confuses the expected lengths of participantId and participant\_user\_id, which we can’t really supply at init because we think that’s auto-generated.

**Which version?**  
1.7.5 worked/allowed us to pass participantId with lenghts \> 12 characters. 1.7.7’s release failed to allow us to do the same thing.

**Additional context**  
For the WebSDK, we really need to provide the user context to the ZoomMtg.Init so that subsequent webhooks correctly identify which user is logged in. We use that information for LOTS of downstream processes, and we can’t rely on the user\_name field because it’s not distinct and the formatting differs from the user object. This was definitely working in 1.7.5.

---

<div class="post-metadata">

**Author:** ![jmauck](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@jmauck](https://devforum.zoom.us/u/jmauck)\
**Post date:** [May 15, 2020, 5:20pm UTC](https://devforum.zoom.us/t/invalid-length-for-participantid-1-7-6-and-above/17179/2 "2020-05-15T17:20:20Z")

</div>

@Tommy or Zoom Team, should I submit some sort of support ticket for this issue?

---

<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:** [May 15, 2020, 5:25pm UTC](https://devforum.zoom.us/t/invalid-length-for-participantid-1-7-6-and-above/17179/3 "2020-05-15T17:25:06Z")

</div>

Hey @jmauck,

The participant ID is meant to be a unique identifier for the participant in the meeting. So basically not Zoom User ID (CkltXNm4R322elaVEjRFGQ), but Participant ID (12).

In the [Participant joined webhook](https://marketplace.zoom.us/docs/api-reference/webhook-reference/meeting-events/participant-joined-meeting) example, the participantId is the `user_id`

 ![Screen Shot 2020-05-15 at 11.24.55 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/50e835fbfc46ec08ba2098cb7aa46b3acaf5e8fa.png)

Please use an identifier that is less than 12 characters in length.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jmauck](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@jmauck](https://devforum.zoom.us/u/jmauck)\
**Post date:** [May 19, 2020, 6:12pm UTC](https://devforum.zoom.us/t/invalid-length-for-participantid-1-7-6-and-above/17179/4 "2020-05-19T18:12:43Z")

</div>

Hi @tommy, I still think this is a bug. It also looks like sometime in the past week the invalid message has also increased from 12 characters to 16 characters.

In the webSDK “join” spec, it lists the participantId as a valid parameter expecting a UUID:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/e65d0610bf84416abdbd0c428bbf7b4bb90e392a.png)

In 1.7.5 and earlier, this definitely worked when we passed in the userId. Our meetings do not require registration so we’re not able to supply a registrantId.

In 1.7.7, we can bypass the error by not supplying the participantId at all, but that doesn’t work because the participant detail in those cases returns a completely new/random participantId that doesn’t match the user’s ID tied to their zoom account.

~Justin

---

<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:** [May 22, 2020, 9:53pm UTC](https://devforum.zoom.us/t/invalid-length-for-participantid-1-7-6-and-above/17179/5 "2020-05-22T21:53:59Z")

</div>

Thanks for the additional info @jmauck!

We are looking into this and will get back to you with an updated from engineering. (CS-1798)

-Tommy

---

<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, 9:22pm UTC](https://devforum.zoom.us/t/invalid-length-for-participantid-1-7-6-and-above/17179/6 "2020-06-24T21:22:37Z")

</div>

Hey @jmauck,

Please see my post here about the participantId:

> [@Participant id (generated by me and passed in ZoomMtg.join) is changing to zoom generated id (WebSDK)](https://devforum.zoom.us/t/participant-id-generated-by-me-and-passed-in-zoommtg-join-is-changing-to-zoom-generated-id-websdk/18018/4):
>
> Hey @namrata, After speaking with the Web SDK engineers, the [Web SDK participantId field](https://zoom.github.io/sample-app-web/ZoomMtg.html#join) is deprecated and no longer supported. We will remove it in the documentation. Use the userEmail and userName field to track users instead. Thanks, Tommy

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:25pm UTC](https://devforum.zoom.us/t/invalid-length-for-participantid-1-7-6-and-above/17179/7 "2020-08-21T22:25:59Z")

</div>

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


