# Prevent same user from joining multiple times?

**URL:** <https://devforum.zoom.us/t/prevent-same-user-from-joining-multiple-times/46663>\
**Category:** Web\
**Created:** [March 26, 2021, 5:20am UTC](https://devforum.zoom.us/t/prevent-same-user-from-joining-multiple-times/46663 "2021-03-26T05:20:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![priyavarshini.muruga](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/priyavarshini.muruga/32/23302_2.png) [@priyavarshini.muruga](https://devforum.zoom.us/u/priyavarshini.muruga)\
**Post date:** [March 26, 2021, 5:20am UTC](https://devforum.zoom.us/t/prevent-same-user-from-joining-multiple-times/46663/1 "2021-03-26T05:20:09Z")

</div>

Is there a way to check if a user is already present in a meeting before allowing them to join ?

1. When I open my application in different browser tabs and click join meeting button, the same user is joining the meeting multiple times. (Same device and same browsers)
2. Also I want to prevent the same user from joining multiple times to the same meeting across devices. (Same device and different browsers / different devices)

Web Client SDK version : 1.9.0

Steps to reproduce the behavior:

1. Using the sample app [GitHub - zoom/sample-app-web: Zoom Web SDK Sample App](https://github.com/zoom/sample-app-web), give meeting id and click join multiple times
2. Multiple browser tabs will be opened and the user can join multiple times from the opened tabs.  
 ![Screenshot 2021-03-26 at 10.45.26 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/9/e9394cc07a6a169919b6e6695041dcc350bead3d.png)

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 26, 2021, 8:10pm UTC](https://devforum.zoom.us/t/prevent-same-user-from-joining-multiple-times/46663/2 "2021-03-26T20:10:07Z")

</div>

Hey @priyavarshini.muruga,

Thank you for reaching out to the Zoom Developer Forum. Currently, the [Web SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/web#zoom-web-sdk) doesn’t support user authentication so we aren’t able to restrict users from joining a meeting multiple times across devices.

We plan to improve this in the future but in the meantime, you can use the Zoom app in order to control if users are able to join from multiple devices.

You can also prevent a user from joining a meeting multiple times from a single device by checking the IP address that a user is joining from. You can then prevent a single IP address from joining multiple times.

Let me know if that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![priyavarshini.muruga](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/priyavarshini.muruga/32/23302_2.png) [@priyavarshini.muruga](https://devforum.zoom.us/u/priyavarshini.muruga)\
**Post date:** [March 29, 2021, 7:36am UTC](https://devforum.zoom.us/t/prevent-same-user-from-joining-multiple-times/46663/3 "2021-03-29T07:36:44Z")

</div>

Thanks Max.  
I use **https://{company\_name}.zoom.us/wc/5510439338/start** and  
when I try to join the meeting from second tab, I am removed from already joined meeting in the first tab.  
Will it be possible for you to share how that works in case of launching the meeting from the same browser ?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 29, 2021, 11:15pm UTC](https://devforum.zoom.us/t/prevent-same-user-from-joining-multiple-times/46663/4 "2021-03-29T23:15:47Z")

</div>

Hey @priyavarshini.muruga,

I’m not aware of how our Web Client accomplishes this, but you can accomplish the same either by [setting a value in Local Storage](https://stackoverflow.com/a/43291970) or by [checking the local IP address](https://stackoverflow.com/a/26850789) that is joining the meeting.

There may be other methods that work for you too but these are the first two that come to mind.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![priyavarshini.muruga](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/priyavarshini.muruga/32/23302_2.png) [@priyavarshini.muruga](https://devforum.zoom.us/u/priyavarshini.muruga)\
**Post date:** [March 30, 2021, 11:37am UTC](https://devforum.zoom.us/t/prevent-same-user-from-joining-multiple-times/46663/5 "2021-03-30T11:37:05Z")

</div>

Thank you Max !

Using local storage to check duplicate meeting joins solved my issue partially (same browser scenario).

I tried using ‘list meeting participant’ api to check if a user with same display name and ip address is joining the meeting. But this did not solve the issue as this api returns a list of current meeting participants including those who already left the meeting. Also if we are using proxies, fetching ip address does not help much.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 31, 2021, 5:35pm UTC](https://devforum.zoom.us/t/prevent-same-user-from-joining-multiple-times/46663/6 "2021-03-31T17:35:53Z")

</div>

Hey @priyavarshini.muruga,

I’m glad to hear that helped! You’re right that when using a proxy, the user could get around the IP restrictions. When it comes to mapping IPs to users, you can likely maintain a list of IPs for each meeting and listen to the `beforeUnload` browser event.

When a user joins the meeting, you add their IP address to the list of IPs that are already in a meeting. When the `beforeUnload` event is triggered, the user closed the tab and their IP can be removed from the list of IP addresses.

Let me know if that helps.

Thanks,  
Max

---

<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:** [May 1, 2021, 3:36am UTC](https://devforum.zoom.us/t/prevent-same-user-from-joining-multiple-times/46663/7 "2021-05-01T03:36:20Z")

</div>

Closed on May 1, 2021, 3:36am UTC

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