How can I give admin rights to all users who connect to the meeting

I’m creating a meeting using the API. I need all users who have join_url to have administrator rights

1 Like

Do you mean make them co-host? I dont think there is a way to do directly via an API.

maybe yes.
I need any user who joins the meeting to have the same rights as the creator

To grant administrator rights to users who have the join URL for a Zoom meeting created using the Zoom API, you can use the Zoom API to update user roles. In this case, you want to assign the “Administrator” role to specific users. Here are the general steps to do this:

  1. Generate API Key and Secret:

  2. Obtain the User ID:

    • You’ll need to know the User ID of the users you want to grant administrator rights to. You can retrieve User IDs using the Zoom API or from your account.
  3. Use the Update User API:

    • You will use the Update User API to update the user’s role to “Administrator.” Here’s the API endpoint you would use:
    PUT https://api.zoom.us/v2/users/{userId}
    
    • Replace {userId} with the actual User ID of the user you want to update.

    • In the JSON payload of the request, set the "role_name" to "Administrator":

    {
      "role_name": "Administrator"
    }
    
  4. Make the API Request:

    • You need to make an authenticated HTTP request to the Zoom API using your API Key and Secret.
    • For example, you can use a programming language like Python with libraries like requests to make the API call.
  5. Handle Errors:

    • Be sure to handle any errors that might occur during the API request.

Here’s a Python example using the requests library:

import requests

api_key = "YOUR_API_KEY"
api_secret = "YOUR_API_SECRET"
user_id = "USER_ID_TO_UPDATE"

url = f"https://api.zoom.us/v2/users/{user_id}"
headers = {
    "Authorization": f"Bearer {api_key}.{api_secret}",
    "Content-Type": "application/json"
}

data = {
    "role_name": "Administrator"
}

response = requests.put(url, json=data, headers=headers)

if response.status_code == 204:
    print("User role updated to Administrator")
else:
    print(f"Error: {response.status_code}, {response.text}")

Please replace YOUR_API_KEY, YOUR_API_SECRET, and USER_ID_TO_UPDATE with your actual values. Make sure you handle authentication and error checking properly in your implementation.

Remember that you should be careful with granting administrator rights, as this gives users extensive control over your Zoom account and meetings. Make sure to only grant this role to trusted individuals.

Thanks for the answer, but this is not what I need.
I Dont want give users extensive control over my Zoom account and meetings. i want users to have all permissions in the meeting that the user has a link to. such as showing the screen, writing in chat, etc.

Hi @a44112332,

Options:

  1. If the users are part of your account, you can add them as alternative hosts. They will be able to start the meeting and will have cohost rights.
  2. If you manually start the meeting, you can set the share screen, chat options and other options in the main room.
  3. If none of the above are true, you can write a Zoom Client using the Meeting SDK, and schedule it to run a few minutes before the meeting start time. It could join and start the meeting, and then set its sharing options, or make any incoming participant into cohost.

I hope it helps,
Enrique