Skip to main content
Question

403 Error when calling BOX API from Google Scripts

  • May 22, 2025
  • 4 replies
  • 52 views

Forum|alt.badge.img

Hello!  I am receiving a 403 error when calling the Files API through a google script, but only when a user that is not me calls the script.  Additionally, it only halts at the file object call.  The list root folder items call succeeds.

 

All permissions are checked off in the app and I am not using As-User, just the client_id and _secret.

 

Thoughts?

 

Chris

4 replies

Forum|alt.badge.img

 Could you please share the full body response of the 403? I'm looking to find a request ID so I can take a look at our backend logs for you. 


Forum|alt.badge.img

Sure thing, I just created an error log to catch them.

 

{"type":"error","status":403,"code":"access_denied_insufficient_permissions","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Access denied - insufficient permission","request_id":"uydt4cfyvdki9dp4"}

 

{"type":"error","status":403,"code":"access_denied_insufficient_permissions","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Access denied - insufficient permission","request_id":"6dq9t1fyvdkjwqrf"}


Forum|alt.badge.img

Did you ever find an issue here?


Forum|alt.badge.img

 I apologize for not following up on this sooner. Things got very busy and I didn't have a chance to further dig into the error. Would you mind reproducing and providing me with the full body response again? I should have time today to take a closer look at our logs for you!