Need some help understanding app users/service accounts in Box

New post



  • Official comment

    Yes, it sounds like your understanding of your options is correct:

    • obtain access token for a user that already has access 
    • collaborate the service account onto just the content it needs access to 
    • use the token of the service account and use the as-user header to act as a user that already has access 

    For security purposes, I would recommend going with the second option there and collaborating your service account in on just the content it needs to access. 

    You can get the identity of this user a few different ways: 

    • Use the default access token of the JWT app call the get current user endpoint, which will return an email that looks like, which you will need to collaborate on the content
    • Via the content manager in the admin console search the name of your app and right click on it. Select login as user and when you're in that account go to the top right hand corner and click the circle to get to account settings and you'll see the email address listed under the account tab. That's the email address you need to add as the collaborator. 

    Hope that helps! 


    Kourtney, Box Developer Advocate

    Comment actions Permalink
  • Randy Hardin

    Wow- thanks! That took me exactly where I needed to go. Everything kind of fell together once I could get to that service account ID. I now have it working as a limited app, with permissions only to the folders and files that it needs to collaborate with. Thanks for getting me over that hump- I'd never have gotten there without your guidance.

    Comment actions Permalink
  • Kourtney


    Thank you for the update - that makes me very happy to hear! Congrats on getting everything up and running :) I will say that the team is working on improving our documentation and we have some upcoming product changes to hopefully help ease the difficulties you encountered. 


    Kourtney, Box Developer Advocate

    Comment actions Permalink
  • JonathanEdward


    I have issue with uploading file via .NET SDK same as below discussion

    How can I reach to Supporter for the support/clarification? 

    Comment actions Permalink

Please sign in to leave a comment.