调用RingCentral获取转接号码API遇CMN-408权限错误求助
ReadUserForwardingFlipNumbers Permission Looks like you're hitting a straightforward permission check error when calling the RingCentral Get Forwarding Number API (GET /restapi/v1.0/account/{accountId}/extension/{extensionId}/forwarding-number). Let's walk through the steps to resolve this:
1. Enable the Permission in Your App's Settings
First, ensure your application in the RingCentral Developer Console has the required permission enabled:
- Log into the RingCentral Developer Console and select your app.
- Navigate to the Permissions tab.
- Scroll to the User Permissions category, find
ReadUserForwardingFlipNumbers, and check the box next to it. - Save the changes. Critical note: You’ll need to re-authorize your app to generate a new access token that includes this permission—old tokens won’t pick up the updated settings.
2. Verify the Target User's Role Permissions
Even if your app has the permission, the user whose forwarding numbers you’re accessing must have this permission assigned via their role:
- If you’re an admin, log into the RingCentral Admin Portal.
- Locate the user’s profile, then go to Permissions & Roles.
- Check that their assigned role includes the
Read User Forwarding/Flip Numberspermission (this is the UI equivalent of the API’sReadUserForwardingFlipNumberspermission). - If not, either edit their existing role to add the permission or create a custom role with this permission and assign it to the user.
3. Refresh Your Access Token
Permissions updates don’t apply to already issued tokens. You’ll need to:
- Re-run your OAuth authorization flow (or regenerate a JWT token if using service account auth) to get a new access token.
- Use this new token when calling the API, and the CMN-408 error should be resolved.
Quick Note for JWT Service Accounts
If you’re using JWT authentication, remember that effective permissions are the intersection of your app’s permissions and the target user’s role permissions. Both need to include ReadUserForwardingFlipNumbers for the API call to succeed.
内容的提问来源于stack exchange,提问作者Grokify

