@shoaibshabeer thanks for the suggestions,
I know my user id is correct. I am able to successfully add myself as a regular member of the same group therefore I can say with confidence that the user Id is indeed correct.
hummmm. Are you certain that a user must be a member before they can be added as an administrator? I am not finding any mention of this fact in the API docs. Furthermore, I am able to add an administrator in the UI without adding this person as a member.
I tested it anyway, just to eliminate this possibility:
First, I added myself as a member of a group, like so:
REQUEST:
POST https://api.zoom.us/v2/groups/hr9W2PRcSY2bHQGaDCyPTQ/members
{"members":[{"id":"<...my user id ...>"}]}
RESPONSE:
HTTP/1.1 201 Created
{"ids":"8lzIwvZTSOqjndWPbPqzuA","added_at":"2025-04-05T13:14:07Z"}
As you can see, my user was successfully added as a member.
Secondly, I attempted to “promote” myself to be an administrator of same group, like so:
REQUEST:
POST https://api.zoom.us/v2/groups/hr9W2PRcSY2bHQGaDCyPTQ/admins
{"members":[{"id":"<...my user id...>"}]}
RESPONSE:
HTTP/1.1 201 Created
{"ids":"","added_at":"2025-04-05T13:14:07Z"}
As you can see, I get the same bizarre JSON response where the ids
node is empty and the added_at
node contains a date.
The API documentation says that you must have either one of the following scopes:
Scopes: group:write:admin
Granular Scopes: group:write:administrator:admin
I verified my OAuth configuration and I can confirm that it has the required scope:
What makes this problem diffuclt to investigate is the complete lack of an error message.