Creates a new user in your account.
1
import zoomApi from 'zoomapi'
2
3
type Zoom = {
4
accountId: string
5
oauthClientId: string
6
oauthClientSecret: string
7
webhookSecretToken: string
8
}
9
10
export async function main(
11
resource: Zoom,
12
user: {
13
action: 'create' | 'autoCreate' | 'custCreate' | 'ssoCreate'
14
user_info?: {
15
email: string
16
/**
17
* 1 - Basic.
18
* 2 - Licensed.
19
* 3 - On-prem.
20
*/
21
type: 1 | 2 | 3
22
first_name?: string
23
last_name?: string
24
password?: string
25
26
27
) {
28
const client = zoomApi(resource)
29
const createdUser = await client.users.CreateUser(user)
30
return createdUser
31
32