service account and enterprise
AnsweredHi. 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
-
Official comment
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
Comment actions
Please sign in to leave a comment.
Comments
1 comment