Using this template helps us debug your issues more effectively
Description
A user created through the API using post => /users does not have a associated zoom phone user id and there is no way to create one. This makes it impossible to assign a phone plan, phone number, or extension to a user created via the API without manual steps.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT
When you create a user, a user_id should be generated, which you should be able to pass in the request URL of the following endpoint to assign a number (if the user has a Zoom Phone license): Assign a Phone Number to User
Are you running into an error when attempting this? Let me know!
Will
I donāt have a phone number to assign. I just want to set an extension. And besides accoring to the documentation, the user has to have a calling plan to assign a number, and I know for certain that that call ( /phone/users/{userId}/calling_plans ) doesn not work with a user id from a GET to /users/.
I hope it is ok if I chime in on this, i was about to ask the exact same question. The goal is to create a phone user for somebody who already has a Zoom Account. In the web frontend one would do this via āPhone System Managementā ā āUsers & Roomsā ā Users ā Add.
This creates a phone user that can be queried by the API edpoints dscott mentions. However I have not found any API call to let me do the adding. If the user does not already exist, all the other calls to /phone/users/<id>/... fail with
{
"code": 1001,
"message": "User does not exist: <id>."
}
So, how does one create a phone user for an existing Zoom user via the API?
Iām checking internally to see if we have an existing endpoint that supports creating a phone user specifically, so that you can assign numbers, etc programmatically without having to first do this manually in the UI. This may be something weāre in the process of developing, but I will follow up shortly!
After checking with an internal resource, I can confirm that it should be possible to handle this programmatically.
First, to create a Zoom Phone User, you can do so via our Update User Settings endpoint. You will send a PATCH request and pass the following body for a given User ID:
{
"feature": {
"zoom_phone": true
}
}
This will apply a Zoom Phone license to the user, and you should then be able to take actions such as assigning a number, extension, etc.
We will work on making it clearer in our docs that youāll need to leverage the Update User Settings endpoint to apply a Zoom Phone license.
Thanks for raising this, and let me know if you have further questions!
I have just tried that and unfortunately the user afterwards does still not show up as a zoom phone user Iām pretty sure I follwed what you wrote. Hereās the request I sent via the Web-Frontend at https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userupdate
I received a 204 null back, so the request went through, however the user neither shows up at when I list the existing phone users nor can I assign a calling plan. That results in the same 404 as before.
I did the patch to /users/{userId}/settings with the content
{
āfeatureā: {
āzoom_phoneā: true
}
}
and that succeeded. I then listed the phone users and was able to find the user id with a phone user ID having been created. I havenāt tried using that ID yet, but I am confident that it will work. Thanks for the solution!