Zoom - Create User
@sergio
code:
data:privatelast updated:4 years ago
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 1,000,000+ developers using the Pipedream platform
steps.
trigger
HTTP API
Deploy to generate unique URL
This workflow runs on Pipedream's servers and is triggered by HTTP / Webhook requests.
steps.
create_user
A Zoom account can have one or more users. Use this API to add a new user to your account.
auth
(auths.zoom_admin)
params
Action

Specify how to create the new user:
create - User will get an email sent from Zoom. There is a confirmation link in this email. The user will then need to use the link to activate their Zoom account. The user can then set or change their password.
autoCreate - This action is provided for the enterprise customer who has a managed domain. This feature is disabled by default because of the security risk involved in creating a user who does not belong to your domain.
custCreate - Users created via this option do not have passwords and will not have the ability to log into the Zoom Web Portal or the Zoom Client. To use this option, you must contact the ISV Platform Sales team at isv@zoom.us.
ssoCreate - This action is provided for the enabled “Pre-provisioning SSO User” option. A user created in this way has no password. If not a basic user, a personal vanity URL using the user name (no domain) of the provisioning email will be generated. If the user name or PMI is invalid or occupied, it will use a random number or random personal vanity URL.

string ·params.action
User info

Object with the user information. It has the following properties:
email: User email address
type: User type:
1 - Basic.
2 - Licensed.
3 - On-prem.
first_name: User's first name: cannot contain more than 5 Chinese words.
last_name: User's last name: cannot contain more than 5 Chinese words.
password: User password. Only used for the "autoCreate" function. The password has to have a minimum of 8 characters and maximum of 32 characters. It must have at least one letter (a, b, c..), at least one number (1, 2, 3...) and include both uppercase and lowercase letters. It should not contain only one identical character repeatedly ('11111111' or 'aaaaaaaa') and it cannot contain consecutive characters ('12345678' or 'abcdefgh').

 
key
 
value
object ·params.user_info
code
async (params, auths) => {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
}
16
//See the API docs here: https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usercreate
const config = {
  method: "post",
  url: `https://api.zoom.us/v2/users`,
  data: {
    action: params.action,
    user_info: typeof params.user_info == 'undefined' ? params.user_info : JSON.parse(params.user_info)
    },
  headers: {
    Authorization: `Bearer ${auths.zoom_admin.oauth_access_token}`,      
    "Content-Type": "application/json"
  }
}
return await require("@pipedreamhq/platform").axios(this, config)