# Switch a users account: PUT API

**URL:** <https://devforum.zoom.us/t/switch-a-users-account-put-api/34013>\
**Category:** API and Webhooks\
**Created:** [October 22, 2020, 10:48am UTC](https://devforum.zoom.us/t/switch-a-users-account-put-api/34013 "2020-10-22T10:48:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lauren.olphert](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lauren.olphert/32/13525_2.png) [@lauren.olphert](https://devforum.zoom.us/u/lauren.olphert)\
**Post date:** [October 22, 2020, 10:48am UTC](https://devforum.zoom.us/t/switch-a-users-account-put-api/34013/1 "2020-10-22T10:48:58Z")

</div>

Hi Everyone!

I am currently working of the PUT API /accounts/{accountId}/users/{userId}/account.

> **[Switch a User's Account - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/switchuseraccount)**
>
> Disassociate a user from one Account and move the user to another Account under the same Master Account. 
> 
> With this API, a user under a Master Account ...

  
I am trying to switch users from a sub account back into the master account- however it doesnt seem to be working?  
I can use the API and switch users into a sub account from the master, but not the other way round. Below is some of the error codes I have got when trying to make this change.  
Invoke-RestMethod : {“code”:1010,“message”:“Account does not belong to this  
master account.”}  
At line:1 char:33
- … $response = Invoke-RestMethod -Uri $request.Uri -Headers $headers -Bo …
- 

```
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

```

  - CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:Htt  
pWebRequest) [Invoke-RestMethod], WebException
  - FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe  
ll.Commands.InvokeRestMethodCommand

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 22, 2020, 8:23pm UTC](https://devforum.zoom.us/t/switch-a-users-account-put-api/34013/2 "2020-10-22T20:23:36Z")

</div>

Hi @lauren.olphert,

Thanks for reaching out about this.

At the moment, I’m afraid this is not supported. You can see my thread here for some more context:

> [@Need to move a user back to the Master account with API](https://devforum.zoom.us/t/need-to-move-a-user-back-to-the-master-account-with-api/32491/6):
>
> Hey @jd.snyder002, Apologies—thanks for clarifying. At the moment, I do not believe that moving a user a back to a master account from one of its sub accounts is possible. This will likely need to be done via the Zoom Web Portal, or by contacting our [Support Team](http://support.zoom.us) directly with this request. That said, I can appreciate how this seems like it would make sense to be able to do via API, and I will be happy to share this feedback with my team. Thanks, Will

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![lauren.olphert](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lauren.olphert/32/13525_2.png) [@lauren.olphert](https://devforum.zoom.us/u/lauren.olphert)\
**Post date:** [October 27, 2020, 10:06am UTC](https://devforum.zoom.us/t/switch-a-users-account-put-api/34013/3 "2020-10-27T10:06:25Z")

</div>

Hi @will.zoom Thanks for the info !  
Do you have any documentation on how to do this from the zoom web portal?  
I cant seem to find any online.

Thanks !  
Lauren

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 28, 2020, 3:53pm UTC](https://devforum.zoom.us/t/switch-a-users-account-put-api/34013/4 "2020-10-28T15:53:08Z")

</div>

Hi @lauren.olphert,

Apologies for any confusion—at the moment, I believe in order to move a user from a sub account back to a master account, our [Support Team](http://support.zoom.us/) will need to help handle this for you manually.

This is an experience we’re working on improving, as I realize this manual intervention is not ideal.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![lauren.olphert](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lauren.olphert/32/13525_2.png) [@lauren.olphert](https://devforum.zoom.us/u/lauren.olphert)\
**Post date:** [November 12, 2020, 10:49am UTC](https://devforum.zoom.us/t/switch-a-users-account-put-api/34013/5 "2020-11-12T10:49:23Z")

</div>

Hi @will.zoom is this the same for removing a user and transferring the details from one email address to the other? As this seems to be locked down to the account as well.

Thanks,  
Lauren

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [November 13, 2020, 3:56pm UTC](https://devforum.zoom.us/t/switch-a-users-account-put-api/34013/6 "2020-11-13T15:56:04Z")

</div>

Hi @lauren.olphert,

Happy to help clarify—to make sure I’m on the same page, are you referring to removing a user from a sub account or a master account? To update a user with the details of another existing user, I do believe this would require our Support Team’s assistance.

Let me know if I’m understanding correctly!

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [December 14, 2020, 1:56am UTC](https://devforum.zoom.us/t/switch-a-users-account-put-api/34013/7 "2020-12-14T01:56:26Z")

</div>

Closed on December 14, 2020, 1:56am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
