Hello I am trying to delete Zoom users with the help of Python and request.
api_key = ************
api_secret = *************
email = "test@test.com"
payload = {
'iss': api_key,
'exp': '1496091964000'
}
token = jwt.encode(payload, api_secret)
endpoint = "https://api.zoom.us/v2/users/" + email
data = {"action" : "delete"}
headers = {"Content-Type":"application/json", "Authorization":"Bearer "+ token}
zoom_r = requests.delete(endpoint, data=data, headers=headers)
print(zoom_r.text)
print(zoom_r.status_code)
I get the error {“code”:1107,“message”:“You can not disassociate a user with managed domain.”} when i try to run the script.
What do I change in my script to delete the user instead of disassociate the user?