# Error when using the API to create a new user with licensed type

**URL:** <https://devforum.zoom.us/t/error-when-using-the-api-to-create-a-new-user-with-licensed-type/98493>\
**Category:** Users and Groups\
**Tags:** api\
**Created:** [November 16, 2023, 4:44pm UTC](https://devforum.zoom.us/t/error-when-using-the-api-to-create-a-new-user-with-licensed-type/98493 "2023-11-16T16:44:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwolf](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jwolf/32/61136_2.png) [@jwolf](https://devforum.zoom.us/u/jwolf)\
**Post date:** [November 16, 2023, 4:44pm UTC](https://devforum.zoom.us/t/error-when-using-the-api-to-create-a-new-user-with-licensed-type/98493/1 "2023-11-16T16:44:36Z")

</div>

When creating a new user through the API I specify the type; 1 basic, 2 licensed, 3 corp. However, we have Zoom One Enterprise Premier licenses and I receive an error when I try to use the type 2 setting. This worked fine before moving to Zoom One.

I’m making the request to [https://api.zoom.us/v2/users](https://api.zoom.us/v2/users)

The error and post info are below.

$body = @{  
‘action’= “create”  
‘user\_info’= @{  
‘email’= “$EmailAddr”  
‘first\_name’= “$FirstName”  
‘last\_name’= “$LastName”  
‘display\_name’= “$FullName”  
‘password’= “xxx”  
‘type’= 2  
‘feature’= @{  
‘zoom\_phone’= $true  
}  
}  
}

ERROR:  
{“code”:3412,“message”:“Your request to add a new Licensed user could not be approved at this time because your account  
has reached the permitted maximum number of 0 paying users. Please purchase additional licenses or contact the Zoom support team to provision  
additional users in your account.”}

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 17, 2023, 1:01pm UTC](https://devforum.zoom.us/t/error-when-using-the-api-to-create-a-new-user-with-licensed-type/98493/2 "2023-11-17T13:01:12Z")

</div>

Hi @jwolf  
Thanks for reaching out to us.  
I have tried to replicate this on my end and I was not able to.  
Can you please confirm that you are not reassigning and assigning multiple different licenses to different users.  
This could be related to this issue:

> [@You have exceeded the limit of license assignment for your account. Buy more licenses to increase the limit](https://devforum.zoom.us/t/you-have-exceeded-the-limit-of-license-assignment-for-your-account-buy-more-licenses-to-increase-the-limit/85900/93):
>
> Hello everyone! We ended up getting some answers about this change. Below is a handy little FAQ that we made on the change. What is the rate limit based on? The rate limits are dynamic and are based on the number of Zoom One or Meetings licenses purchased. But I was allowed to do this before without any penalty at all Yes, and because of that, Zoom is imposing rate limits on the amount of times you can assign a license to a different user instead of abruptly stopping the practice. What are…

If not, please let me know and I will take a closer look

---

<div class="post-metadata">

**Author:** ![jwolf](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jwolf/32/61136_2.png) [@jwolf](https://devforum.zoom.us/u/jwolf)\
**Post date:** [November 17, 2023, 2:08pm UTC](https://devforum.zoom.us/t/error-when-using-the-api-to-create-a-new-user-with-licensed-type/98493/3 "2023-11-17T14:08:52Z")

</div>

Thanks Elisa. I wasn’t trying to reassign licenses, I was trying to set the license type upon user creation. I ended up working around this by creating the user with a basic license type 1 then making another API call to modify the user settings. This allowed me to assign the Zoom One Enterprise Premier license by including zoom\_one\_type = 134217728.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 17, 2023, 2:17pm UTC](https://devforum.zoom.us/t/error-when-using-the-api-to-create-a-new-user-with-licensed-type/98493/4 "2023-11-17T14:17:02Z")

</div>

Happy to hear this worked on your end.  
Again, I think it could have been related to the limits on re-assigning licenses.  
I will close this thread for now but feel free to reach out in the future if you need any help  
Cheers,  
Elisa
