I have assigned a server to server OAuth application the following scopes: role:master, user:read:admin, group:read:admin. I need to hit the get role information endpoint. I am able to acquire an access token via an “account_credentials” grant type. I can confirm the access token is valid as I can retreive users and groups. But when I try to query the role master endpoint, I get the following error:
{"code":4711,"message":"Invalid access token, does not contain scopes:[role:master, role:write:master, role:read:master]."}
This is unexpected because the access token response object says I have the following scopes:
Please advise on how I should go about resolving this issue. I don’t see any “role:read:master” and “role:write:master” on my application, just “role:master”. Thanks.
Additional Context that probably helps: Using a Zoom Pro account and am using the owner user to generate the application.
Did this ever get figured out? I’m so confused. I’m the only user in my account. When I refresh the token it says I have all the scopes needed but kicks back this error every time. Is there a magic box I need to check somewhere?
I ended up figuring this out. I was assuming a master account was any account that had multiple users under it. This is not the case. If it’s a normal zoom account, you can simply use the /v2/users endpoint. No need to pass the account ID.
PS: The error message returned by the API is very misleading. No scopes were actually missing even though it said they were.