Problem Overview
When you make an API call with a server-side authentication app, you receive the following error:
status":401,"code":"unauthorized","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Unauthorized - Cannot authorize with this service"
Root Cause
The admin setting Disable unpublished platform apps by default is on, and your app has not been authorized. App authorization can to viewed using the Platform Apps Manager page.
To check this setting:
- In the Admin Console's left pane, click Enterprise Settings
- Click Platform Apps
- Verify whether Disable unpublished platform apps by default setting is enabled. If it is enabled, ensure you've authorized the Box app by navigating to the Platform Apps Manager page and using the "Add➕" to add and authorize the Box app using the Box app's Client ID.
Box Admins can review Box app enablement statuses via the Platform Apps Manager. Your Box app should show "Authorized" and "Enabled" once complete.
If you're seeing this issue with a standard OAuth2 (Client-side) authentication app, see the resolution steps here.
platform_swarm_kb