Skip to main content
Question

service account and enterprise

  • May 22, 2025
  • 1 reply
  • 13 views

Forum|alt.badge.img

Hi. I am little confused about accessing files from the team's box account.

I am using the Node SDK with JWT to access files in the my teams box account. I know that when I create a custom app I have a separate box account that is separate from the team's main box account.

 

How can I access the main box account from my custom app ? And what is the enterprise account?

 

Best,

Mrinal

 

1 reply

Forum|alt.badge.img

Hello Mrinal, 

I believe the question here is how do you authenticate as a user other than the default service account for jwt applications? If that's correct, you'll need the userID of the user you want a token for: 

var UserClient = sdk.getAppAuthClient('user', 'YOUR-APP-USER-ID');

Docs: https://github.com/box/box-node-sdk/blob/master/docs/authentication.md#server-auth-with-jwt

Hope that helps! 

Best,

Kourtney, Box Developer Advocate