# Meeting update patch - enforce domain does not work

**URL:** <https://devforum.zoom.us/t/meeting-update-patch-enforce-domain-does-not-work/5312>\
**Category:** API and Webhooks\
**Created:** [August 1, 2019, 12:33pm UTC](https://devforum.zoom.us/t/meeting-update-patch-enforce-domain-does-not-work/5312 "2019-08-01T12:33:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoavc](https://avatars.discourse-cdn.com/v4/letter/y/9fc29f/32.png) [@yoavc](https://devforum.zoom.us/u/yoavc)\
**Post date:** [August 1, 2019, 12:33pm UTC](https://devforum.zoom.us/t/meeting-update-patch-enforce-domain-does-not-work/5312/1 "2019-08-01T12:33:46Z")

</div>

In the following API -

> **[Update a Meeting - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate)**
>
> Update the details of a meeting.
> Scopes: meeting:write:admin meeting:write
> 
> Authorization
> 
> Request Parameters
> 
> Request Body
> 
> Meeting
> 
> Responses
> 
> Send a ...

there is a parameter for enforcing domain - ```  
enforce\_login\_domains

```auto
We have applied this for a meeting but it does not seem to change behavior as users from other domains could still join the meeting
```

---

<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:** [August 1, 2019, 7:16pm UTC](https://devforum.zoom.us/t/meeting-update-patch-enforce-domain-does-not-work/5312/2 "2019-08-01T19:16:38Z")

</div>

Hey @yoavc,

In order to set a login domain a few pre requisites are required.

1. You must turn on the “Only signed-in users can join meetings” setting [here](https://zoom.us/account/setting)

2. You must turn on AND add a default domain on the “Only signed-in users with specified domains can join meetings” [here](https://zoom.us/account/setting).

 ![42%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/7dce53622349793dc704f00d19b522ef61ac65d2.png)

Once you do this, `enforce_login` and `enforce_login_domains` will work on the [create meetings](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate) and [update meetings](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate) endpoints.

```json
{
  "topic": "Custom Domain Login",
  "type": 2,
  "duration": 30,
  "start_time": "2019-08-01T20:00:00Z",
  "settings": {
    "enforce_login": true,
    "enforce_login_domains": "anydomain.com"
  }
}

```

A few things to note:

1. This only works for scheduled (meeting type `2`) or recurring (meeting type `3` and `8`). Instant meetings (meeting type `1`) matches what you have in your [account settings](https://zoom.us/account/setting).

2. You can specify a different domain via the API endpoints then what you have in your account settings. You don’t have to add each domain to your settings in order to use via the API. You only need one default domain.

3. If you don’t specify `enforce_login` via the API it will fallback to what you have in your account settings. If you don’t specify `enforce_login_domains` via the API, it will fallback to your default domain in your account settings.

Let me know if this helps!

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, 6:37pm UTC](https://devforum.zoom.us/t/meeting-update-patch-enforce-domain-does-not-work/5312/3 "2020-08-21T18:37:17Z")

</div>

Closed on August 21, 2020, 6:37pm UTC


