My apologies if this is an obvious question, but i created a server-to-server sms app that allows users at my company to schedule future text messages, it works fine if I use it myself, but when run for other team members it gets a status code 400 with the following error:
“code”:135,“message”:“You cannot have access to another user.”
The documentation has a few required scopes that I don’t see as options in the server-to-server add scopes section. How can I get those options to appear? (they aren’t greyed out or anything, I just can’t find them) I have admin level access to our account, so I don’t think permissions are an issue.
The scopes referenced in the POST
/phone/sms/messages documentation are:
Thank you for writing in the Zoom Developer Forum. Let me take a look at this and get back to you. In the meantime, can you share more information about your use case? This will help identify if there may be another implementation approach you can consider.
We use the sms api to integrate to notion notification system. I’m using the admin account to create the server to server api app. However, I couldn’t find the scopes below phone:write:admin,phone:write,phone_sms:write,phone_sms:write:admin
To send SMS messages on behalf of users, you should create a general user-managed app rather than a server-to-server application. Server-to-server apps only work for messages sent on your own behalf, not for other users in your account. Users must authenticate and grant permission to the app to access the Zoom Phone SMS API if they want to schedule text messages for other team members.
I’ll also work on updating the API documentation, as the Zoom Phone scopes appear to be incorrectly labeled.
I can’t see the “phone:write:sms” scope on “general user-managed” settings, either. I have an Administrator user, and the SMS service is activated. I even got a “Programmable APIs Service Endpoint ID“. Do you have any idea what I need to activate the scope?
Hi @MauricioG
Thanks for reaching out to us!
Can you pleease share with me what endpoint are you trying to call, so I can help you look into this scope issue
I have the same issue. We are developing an admin-level app and users should be able to send sms messages on behalf of each other. They can view the messages, but there’s an error when sending ({“code”:135,“message”:“You cannot have access to another user.”}).
How can I find and add the missing scopes (`phone:write:admin,phone:write,phone_sms:write,phone_sms:write:admin`)? They are simply not available to use.
Hi @r.ewen
This is not supported. Currently you admins can not send SMS on behalf of other users.
You would have to use a User-managed app and have each user authorize the app on their account to be able to send SMS
Hey @SEAN8
Thanks for reaching out and welcome to our community.
You should be adding the scopes listes under the Granular scopes, for this endpoint those are: Granular Scopes:phone:read:sms_message ,phone:read:sms_message:admin
Allthough it is a POST endpoint, these are the scopes required. I have reported this issue to make them write, and we are working on this update. In the meantime, make sure to look for the above scopes