Hi,
I am currently testing the API for creating a marketplace app and have encountered an issue.
createApps
I registered a Marketplace OAuth App and received an accessToken through the AuthorizationCode flow. The scope includes marketplace:write:app:admin as shown below:
{
"access_token": "<value>",
"token_type": "bearer",
"refresh_token": "<value>",
"expires_in": 3599,
"scope": "marketplace:read:app:admin marketplace:read:list_apps:admin marketplace:write:app:admin",
"api_url": "https://api.zoom.us",
"expiry_datetime": "<datetime>"
}
However, I am getting an “Unauthorized” error in the following situation. I do set many scopes like the following when creating an app. (Could this part be the problem?)
{
"app_type": "s2s_oauth",
"app_name": "xxx Service Application",
"scopes": [
"account:read:managed_domains:admin",
"account:read:trusted_domains:admin",
"billing:read:plan_information:admin",
"billing:read:plan_usage:admin",
"group:read:list_groups:admin",
"group:read:administrator:admin",
"group:read:member:admin",
"group:read:list_members:admin",
"phone:read:list_numbers:admin",
"phone:read:call_log:admin",
"phone:read:call:admin",
"phone:read:list_call_logs:admin",
"phone:read:call_qos:admin",
"phone:read:number:admin",
"user:read:settings:admin",
"user:read:user:admin",
"user:read:email:admin",
"user:read:list_users:admin"
],
"contact_name": "xxxxx",
"contact_email": "xxxx@xxxxxx.xxxx",
"company_name": "xxxx"
}
Error Message
Invoke-WebRequest: { "status": "UNAUTHORIZED", "message": "Access Denied", "errorCode": 10, "timestamp":
"<datetime>" }
What should I do?