# Get a persistent id on participants in meetings

**URL:** <https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244>\
**Category:** Meeting SDK\
**Created:** [December 10, 2024, 8:45pm UTC](https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244 "2024-12-10T20:45:17Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![noahviktorschenk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noahviktorschenk/32/74873_2.png) [@noahviktorschenk](https://devforum.zoom.us/u/noahviktorschenk)\
**Post date:** [December 10, 2024, 8:45pm UTC](https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244/1 "2024-12-10T20:45:17Z")

</div>

Hey there,

So I am building a bot that joins meetings and interacts with participants. I would like for the bot to be able to consistently identify participants even if they leave and rejoin. I tried to use the `persistentID` from the `IUserInfo` but that still seems to change every time a user leaves and rejoins. I am using the Meeting SDK for Linux.

- Is there any way to get an actual persistent ID for users?
- What is the purpose of the `persistentID` and in what way is it persistent?

Thank you,  
Noah

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [December 10, 2024, 9:03pm UTC](https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244/2 "2024-12-10T21:03:24Z")

</div>

Hi , @noahviktorschenk,

Great question! The persistent ID for users is session-based. Each time a user leaves and rejoins, they will be assigned a new ID. However, this persistent ID can be used to identify the user throughout their entire session lifecycle across platforms. So if the user joins via web or Windows SDK, you’ll be able to use the persistent ID to identify them.

---

<div class="post-metadata">

**Author:** ![noahviktorschenk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noahviktorschenk/32/74873_2.png) [@noahviktorschenk](https://devforum.zoom.us/u/noahviktorschenk)\
**Post date:** [December 10, 2024, 9:48pm UTC](https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244/3 "2024-12-10T21:48:07Z")

</div>

Thank you for the quick response @donte.zoom. What would you then recommend to identify users across sessions, if there are any?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [December 11, 2024, 7:21am UTC](https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244/4 "2024-12-11T07:21:31Z")

</div>

@noahviktorschenk ,

When it comes to identifying users across sessions, you have the option to leverage the Customer ID, which is an ID you provide when joining the meeting that can be used as a custom tracking ID.

Regarding Persistent ID, it is similar to user ID but persists when switching between breakout rooms and the main meeting. Since a breakout room is actually a distinct meeting instance under the hood, a given user will have a different user ID when they move between breakout rooms and the main meeting

# Meeting SDK Linux: IUserInfo

> **[Meeting SDK for Linux API Reference: IUserInfo Class Reference](https://marketplacefront.zoom.us/sdk/meeting/linux/class_i_user_info.html)**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/c/1cb5c53c06f6591ad609ef41ae041c8e4f497208.png)

---

<div class="post-metadata">

**Author:** ![noahviktorschenk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noahviktorschenk/32/74873_2.png) [@noahviktorschenk](https://devforum.zoom.us/u/noahviktorschenk)\
**Post date:** [December 11, 2024, 1:12pm UTC](https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244/5 "2024-12-11T13:12:12Z")

</div>

Thank you for the clarification @donte.zoom.

If I understood it correctly the Customer ID requires me to configure their join params, correct?

In my case, the meeting is an open meeting where people join via an invite link, so I am not sure if I can use this. Could you clarify this?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [December 11, 2024, 5:19pm UTC](https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244/6 "2024-12-11T17:19:05Z")

</div>

Yes, that’s correct, @noahviktorschenk ! In your case, you can rely on the persistent user ID to track users consistently across sessions when they transition between a main meeting and breakout rooms. This ID remains the same in such scenarios.

However, if a user leaves and rejoins a meeting, their user ID will change. To handle this, you can implement a backend tracking solution using unique URLs for each participant with the Zoom REST API and Webhooks. Here’s how:

### 1. Creating Meetings with Registration

To streamline participant tracking, you can set up meetings with automatic registration and provide each participant with a unique URL. This approach ensures that users join with the email they used during registration, regardless of their Zoom client login status.

**1a. [Create a Meeting with Registration](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/meetingCreate)**  
Set up the meeting with automatic registration, disable multiple device login, and ensure manual approval.

```json
POST /users/{userId}/meetings
{
  "start_time": "2024-09-20T14:00:00Z",
  "timezone": "America/Los_Angeles",
  "topic": "Participant Tracking Configuration",
  "type": 2,
  "duration": 15,
  "settings": {
    "allow_multiple_devices": false,
    "join_before_host": true,
    "waiting_room": false,
    "approval_type": 1,
    "registration_type": 2,
    "audio": "both"
  }
}

```

**1b. [Add Meeting Registrants](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/meetingRegistrantCreate)**

Register users programmatically.

```json
POST /meetings/{meetingId}/registrants
{
  "email": "rachel.ruskin@whoareyou.com",
  "first_name": "Rachel",
  "last_name": "Ruskin",
  "auto_approve": true
}

```

### 2. Creating Meetings Without Registration

If you prefer not to use registration, you can track users by utilizing Webhooks. For instance, the `meeting.participant_joined` event provides a unique identifier for each participant. You can ingest this data into your system for tracking purposes.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/f/bf8e1b11b42b1ddce3aa359d2578b4305eabb1c4.jpeg)

[Learn More: meeting.participant\_joined Webhook Documentation](https://developers.zoom.us/docs/api/rest/reference/zoom-api/events/#operation/meeting.participant_joined)

### 3. [Creating Unique Invite Links](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/meetingInviteLinksCreate)

You can also generate unique join URLs for each attendee using the `meetingInviteLinksCreate` endpoint.

```json
POST /users/{userId}/meetings
{
  "attendees": [
    {
      "join_url": "https://example.com/j/11111",
      "name": "Jill Chill"
    }
  ]
}

```

I hope this helps! Let us know if you have any more questions or clairfications.

---

<div class="post-metadata">

**Author:** ![noahviktorschenk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noahviktorschenk/32/74873_2.png) [@noahviktorschenk](https://devforum.zoom.us/u/noahviktorschenk)\
**Post date:** [December 11, 2024, 6:26pm UTC](https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244/7 "2024-12-11T18:26:18Z")

</div>

Thank you for the detailed walkthrough @donte.zoom.

The bot I am build will be joining meetings from external accounts as well, so I can’t use number 1 or 3. Can I use number 2 even when the meeting is hosted by another account that I do not have access to?

Thank you

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [December 11, 2024, 7:15pm UTC](https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244/8 "2024-12-11T19:15:25Z")

</div>

You’re welcome, @noahviktorschenk! Since the meeting is hosted by another account that you don’t have access to, you won’t receive the webhook events.

---

<div class="post-metadata">

**Author:** ![noahviktorschenk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noahviktorschenk/32/74873_2.png) [@noahviktorschenk](https://devforum.zoom.us/u/noahviktorschenk)\
**Post date:** [December 11, 2024, 8:05pm UTC](https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244/9 "2024-12-11T20:05:02Z")

</div>

Okay, @donte.zoom, is there any way to get a user’s email since they must be persistent, correct?

Also, is the userId always unique, or can there be duplicates across meetings? Can I be sure that no user will ever have the same userId across any meeting?

---

<div class="post-metadata">

**Author:** ![amanda-recallai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amanda-recallai/32/44747_2.png) [@amanda-recallai](https://devforum.zoom.us/u/amanda-recallai)\
**Post date:** [December 11, 2024, 11:01pm UTC](https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244/10 "2024-12-11T23:01:18Z")

</div>

Hi @noahviktorschenk,

You should be able to get the email address of a user given their userId by calling the Get Users endpoint ([Users APIs - Zoom Developers](https://developers.zoom.us/docs/api/users/#tag/users/GET/users/%7BuserId%7D)). This will return a bunch of information about this user, including their email address.

This will require that your users have your Zoom app installed on their account and that you have the necessary scopes to call this endpoint.

You can also get access to information about meeting participants through the [Recall.ai](http://recall.ai/) API. Here’s a link to our docs where you can see the information we expose for each participant in the meeting: [Meeting Participants & Metadata](https://docs.recall.ai/docs/meeting-metadata-and-participants#zoom)

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [December 13, 2024, 2:45pm UTC](https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244/11 "2024-12-13T14:45:12Z")

</div>

@noahviktorschenk ,

Also, check out the support documentation on email addresses:

> **[Using Zoom APIs - Zoom Developers](https://developers.zoom.us/docs/api/using-zoom-apis/#email-address-display-rules)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/7/d7353ab6b81ccd30663efd64626091abbef3fdc8.png)

---

<div class="post-metadata">

**Author:** ![noahviktorschenk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noahviktorschenk/32/74873_2.png) [@noahviktorschenk](https://devforum.zoom.us/u/noahviktorschenk)\
**Post date:** [December 13, 2024, 7:21pm UTC](https://devforum.zoom.us/t/get-a-persistent-id-on-participants-in-meetings/122244/12 "2024-12-13T19:21:11Z")

</div>

Thank youy very much for the help, this will work.
