# Deleting or Disassociating a User and transferring the Cloud Recording is not working

**URL:** <https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919>\
**Category:** API and Webhooks\
**Created:** [July 1, 2020, 4:10pm UTC](https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919 "2020-07-01T16:10:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![besteman](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/besteman/32/8957_2.png) [@besteman](https://devforum.zoom.us/u/besteman)\
**Post date:** [July 1, 2020, 4:10pm UTC](https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919/1 "2020-07-01T16:10:54Z")

</div>

**Description**  
Deleting or Disassociating a User and transferring the Cloud Recording is not working.

**Error**  
We are successfully able to delete or disassociate a user, but are not able to transfer the cloud recording to another Zoom User

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Which Endpoint/s?**

> **[Delete User - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userdelete)**
>
> Deleting a user permanently removes them and their data from Zoom. They will be able to create a new Zoom account with the same email address if they ha...

Here is the python code

```python
from dotenv import load_dotenv, find_dotenv
from time import time
import json
import jwt
import requests
import os

load_dotenv(find_dotenv())

def generate_token():
    token = jwt.encode(
        # Create a payload of the token containing API Key & exp time
        {"iss": os.getenv('api_key'), "exp": time() + 5000},
        # Secret used to generate token signature
        os.getenv('api_secret'),
        # Specify the hashing alg
        algorithm="HS256"
        # Converts token to utf-8
    ).decode("utf-8")

    return token

jwt_token = generate_token()

print(jwt_token)
print(time() + 5000)

headers = {
'authorization': f"Bearer {jwt_token}",
'content-type': "application/json"
}

payload = {
  'action': 'disassociate',
  'transfer_recording': 'true',
  'transfer_email': 'test@test.com',
  'transfer_meeting': 'true'
}

# Request url for creating a new meeting
request = requests.delete("https://api.zoom.us/v2/users/", headers=headers, params=payload)

print(request.url)

print(request.status_code)

```

With this code, I am able to delete or disassociate a Zoom User from the Account and get a 204. But the Cloud Recordings are not transferred to the transfer\_email.

I am also tried this in the Zoom Sandbox:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/9f8799d96b90611f686aaef74496bf4448854bc1.png)  
I am able to delete or disassociate the Zoom User but not transfer the Cloud recordings.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 6, 2020, 7:18pm UTC](https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919/2 "2020-07-06T19:18:32Z")

</div>

Hey @besteman,

Is the user you are setting for the `transfer_email` value a [user in your Zoom account](https://zoom.us/account/user#/)?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![besteman](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/besteman/32/8957_2.png) [@besteman](https://devforum.zoom.us/u/besteman)\
**Post date:** [July 6, 2020, 7:37pm UTC](https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919/3 "2020-07-06T19:37:15Z")

</div>

@tommy

Yes, we have tried multiple users to test it.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 8, 2020, 5:07pm UTC](https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919/4 "2020-07-08T17:07:24Z")

</div>

Hey @besteman,

Can you please email your full request url and request body to [developersupport@zoom.us](mailto:developersupport@zoom.us) so we can debug further?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![besteman](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/besteman/32/8957_2.png) [@besteman](https://devforum.zoom.us/u/besteman)\
**Post date:** [July 24, 2020, 4:48pm UTC](https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919/5 "2020-07-24T16:48:52Z")

</div>

@tommy  
I have done this and they have confirmed that it is bug on Zoom’s side.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 28, 2020, 10:28pm UTC](https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919/6 "2020-07-28T22:28:27Z")

</div>

Thanks for the update @besteman!

We will fix the bug as soon as we can.

-Tommy

---

<div class="post-metadata">

**Author:** ![Sajith\_Kumar\_K\_P](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sajith_kumar_k_p/32/32668_2.png) [@Sajith\_Kumar\_K\_P](https://devforum.zoom.us/u/Sajith_Kumar_K_P)\
**Post date:** [March 4, 2021, 3:27am UTC](https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919/7 "2021-03-04T03:27:43Z")

</div>

Is this fixed? I’m unable to transfer recordings to another user, but the user account is getting deleted.

---

<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:** [March 4, 2021, 4:20pm UTC](https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919/8 "2021-03-04T16:20:28Z")

</div>

Hi @Sajith_Kumar_K_P,

This issue should be resolved. If you’re having trouble with this, can you share an example (request url and body) with us so that we can take a closer look?

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![Sajith\_Kumar\_K\_P](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sajith_kumar_k_p/32/32668_2.png) [@Sajith\_Kumar\_K\_P](https://devforum.zoom.us/u/Sajith_Kumar_K_P)\
**Post date:** [March 8, 2021, 1:57am UTC](https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919/9 "2021-03-08T01:57:58Z")

</div>

Here I the code which I used in python using via Zoom sandbox. Using this code I was able to delete the user but the recording didn’t get transfered,

 ![Screenshot 2021-03-08 at 9.55.31 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/b/0be028ca6633f1f558a5d948bd9b488333fc0441.png)

```auto
import http.client

conn = http.client.HTTPSConnection("api.zoom.us")

headers = { 'authorization': "Bearer" }

conn.request("DELETE", "/v2/users/?transfer_recording=&transfer_email=&action=delete", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

```

---

<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:** [March 8, 2021, 6:26pm UTC](https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919/10 "2021-03-08T18:26:36Z")

</div>

Hi @Sajith_Kumar_K_P,

Thank you for sharing this. In looking at your request, I can see that you’re passing an email/string for `transfer_recording` — however, this should be true/false:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/a/ba8ec87d38b9a34f4425231db7606385d893166f.png)

Please make this adjustment and let me know if you’re still having issues. Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![Sajith\_Kumar\_K\_P](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sajith_kumar_k_p/32/32668_2.png) [@Sajith\_Kumar\_K\_P](https://devforum.zoom.us/u/Sajith_Kumar_K_P)\
**Post date:** [March 9, 2021, 2:54am UTC](https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919/11 "2021-03-09T02:54:30Z")

</div>

Thanks for info, Sorry I missed that.

---

<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:** [March 9, 2021, 4:21pm UTC](https://devforum.zoom.us/t/deleting-or-disassociating-a-user-and-transferring-the-cloud-recording-is-not-working/22919/12 "2021-03-09T16:21:57Z")

</div>

No problem, glad I could help @Sajith_Kumar_K_P 🙂
