API Endpoint(s) and/or Zoom API Event(s)
POST /users: Zoom Meeting API
Description
Setting zoom_phone to true in the API call to create the user no longer creates a user with Zoom Phone enabled.
Error?
None, this fails silently.
How To Reproduce
$ python3
# `conf` is an array containing the account_id and the base64 hash to login, per the documentation
>>> import json
>>> import requests
# Login
>>> r = requests.post("https://zoom.us/oauth/token", data={"grant_type": "account_credentials", "account_id": conf["account_id"]}, headers={"Host": "zoom.us","Authorization": "Basic {}".format(conf["b64_auth"])})
>>> r
<Response [200]>
>>> token = r.json()["access_token"]
# Create user
>>> r = requests.post("https://api.zoom.us/v2/users", json={"action": "create","user_info": {"first_name": "test", "last_name": "user", "email": "tuser@redacted.com", "type": "1"}, "feature": {"zoom_phone": "true"}},headers={"Host": "api.zoom.us","Authorization": "Bearer {}".format(token), "Content-Type": "application/json" })
>>> r
<Response [201]>
# Get user
>>> r.text
'{"id":"[REDACTED]","first_name":"test","last_name":"user","email":"tuser@redacted.com","type":1}'
tuser@redacted.com receives a link to activate the account, but after activation, the user does not have the Phone feature enabled.
Please note, this used to work. Since it is automated on our end and fails silently, we noticed 40+ accounts were created without the phone extension.