Welcome to the new Box Support website. Check out all the details here on what’s changed.

Viewing a folder or upload a file to a folder as the co-owner

Answered
New post

Comments

1 comment

  • Box Product Support

    I figured out my issue. It looks like I needed to authenticate with a user token instead of an admin token. The information was at the following link: https://developer.box.com/en/guides/authentication/jwt/user-access-tokens/#user-access-tokens-with-sdks

     

    So I changed the following lines:

     

    var jwt = new BoxJWTAuth(config);

    var admin_token = jwt.AdminToken();
    var client = jwt.AdminClient(admin_token, asUser: account_b_user_id);

     

    To read like this:

     

    var jwt = new BoxJWTAuth(config);
    var token = jwt.UserToken(account_b_user_id);
    var client = jwt.UserClient(token, account_b_user_id);

     

    After doing that, it worked!

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.