Skip to main content
Question

Developer app user id different from the authenticated user

  • May 22, 2025
  • 1 reply
  • 16 views

Forum|alt.badge.img

I created custom app through developer token as a service user. I am trying list the objects and upload file to a specific box folder. When i try to authenticate using jwt token the user id that is getting authenticated is different from the one which i am seeing it in the app. 

1 reply

Forum|alt.badge.img

Hi there,

This is mainly an issue with who the access token is scoped for. When using a developer token, the token itself will be scoped to the Box account of the developer (you). When you first authenticate with a JWT app, the access token is scoped for the service account of the application. If you want to make a call for a different user, you'll either need to generate a user access token in your JWT app, or make the request with an As-User header

- Jon