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?
Here is the python code
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.
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?
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:
Please make this adjustment and let me know if you’re still having issues. Thanks!
Will