# Setting Meeting Authentication for External User in Meeting Creation

**URL:** <https://devforum.zoom.us/t/setting-meeting-authentication-for-external-user-in-meeting-creation/86868>\
**Category:** Meetings\
**Created:** [April 17, 2023, 11:17pm UTC](https://devforum.zoom.us/t/setting-meeting-authentication-for-external-user-in-meeting-creation/86868 "2023-04-17T23:17:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jon.lam](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@jon.lam](https://devforum.zoom.us/u/jon.lam)\
**Post date:** [April 17, 2023, 11:17pm UTC](https://devforum.zoom.us/t/setting-meeting-authentication-for-external-user-in-meeting-creation/86868/1 "2023-04-17T23:17:03Z")

</div>

### Background

I am creating a platform with Zoom Web Meeting SDK, where external users may host and join a Zoom meeting within the website. These _external users_ are not registered with the [Create Users API](https://developers.zoom.us/docs/meeting-sdk/apis/#operation/userCreate) and thus not under the account that host the Meeting SDK app.

### Description

#### Prerequisite

I have [set up the Meeting SDK app](https://developers.zoom.us/docs/meeting-sdk/create/) with OAuth enabled. To [host or join a Meeting](https://developers.zoom.us/docs/meeting-sdk/web/component-view/meetings/#start-a-meeting), `zak`, `meetingNumber`, and `signature` are required.

#### ZAK

I am able to obtain `zak` from the following process.

1. [Obtain authentication token with OAuth](https://developers.zoom.us/docs/integrations/oauth/#using-a-server-with-or-without-pkce) for external users.
2. [Obtain access token with authentication token](https://developers.zoom.us/docs/integrations/oauth/#step-2-request-access-token).
3. (Store refresh token in database.)
4. [Obtain zak with access token](https://developers.zoom.us/docs/meeting-sdk/apis/#operation/userToken).

#### Meeting Number

Both the host and attendee need to log into their Zoom accounts that are invited on meeting creation to join the scheduled meeting in the website. The login details are [passed to the Meeting SDK via the `zak` token](https://developers.zoom.us/docs/meeting-sdk/auth/#join-meetings-and-webinars-with-the-meeting-sdk-jwt) above. **What I have trouble with is to [create a meeting using API](https://developers.zoom.us/docs/meeting-sdk/apis/#operation/meetingCreate), specifically with the `meeting_authenticaion` field.**

To set an authentication option to [“Signed in to account associated with invited email”](https://support.zoom.us/hc/en-us/articles/360037117472-Authentication-Profiles-for-Meetings-and-Webinars#h_e3cf0d5f-eec7-4c2a-ad29-ef2a5079a7da), one would need to pass the `authentication_options` array’s `id` value in the [Get user settings API](https://developers.zoom.us/docs/meeting-sdk/apis/#operation/userSettings) response to `authentication_option` property. Below is the sample body to [creating a meeting](https://developers.zoom.us/docs/meeting-sdk/apis/#operation/meetingCreate).

```auto
{
  schedule_for: host.email,
  settings: {
    meeting_authentication: true,
    authentication_option: 'AUTHENTICATION_OPTION_ID',
    meeting_invitees: [{ email: attendee.email }]
    private_meeting: true,
    [...]
  }
}

```

However, because the users are external and none of the users are registered under the Meeting SDK app account, it is not possible to [set an account-wide authentication option](https://support.zoom.us/hc/en-us/articles/360037117472-Authentication-Profiles-for-Meetings-and-Webinars#h_7e114572-1131-40cc-b4b5-33d651255e51) for the users. The question is, **do I have to call the [Update users’ settings API](https://developers.zoom.us/docs/meeting-sdk/apis/#operation/userSettingsUpdate) and then [Get user settings API](https://developers.zoom.us/docs/meeting-sdk/apis/#operation/userSettings) every time a meeting is made?** Or is there a better way in handling permission or authentication for all accounts?

#### Signature

As the meeting above are not produced with proper authentication, no `meetingNumber` can be supplied to [create a JWT token](https://developers.zoom.us/docs/meeting-sdk/auth/).

### API Endpoint(s)

(Refer to description above.)

### Error / How to Reproduce

(Not applicable.)
