Join BoxWorks in San Francisco Nov 12-13! Keynotes, product demos, and Box Master Classes. Reserve your spot!

Get external user returns 403

New post

Comments

4 comments

  • Murtza

     In the Scopes section for your application in the Box developer console, do you have the "Manage users" box checked? 

    0
    Comment actions Permalink
  • adina_c

    , yes, it is checked 😞

    0
    Comment actions Permalink
  • mklinchin

    We also have exact the same problem, when we call getExternalUsers method  - got an error

     

    !MESSAGE The API returned an error code: 403
    {"type":"error","status":403,"code":"access_denied_insufficient_permissions","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Access denied - insufficient permission","request_id":"***number removed for privacy***59c9ed0094592"}

     

    But if we call getAllEnterpriseUsers - all works fine. Please need an advice.

    0
    Comment actions Permalink
  • kendomen

    If I put a filter_term, then I get back a result but if I don't, I get back no results.

    I can dig into the SDK a little more...

     

    var boxConfig = new BoxConfig(CLIENT_ID, CLIENT_SECRET, ENTERPRISE_ID, privateKey, JWT_PRIVATE_KEY_PASSWORD, JWT_PUBLIC_KEY_ID);
    var boxJWT = new BoxJWTAuth(boxConfig);
    var adminToken = boxJWT.AdminToken();
    var adminClient = boxJWT.AdminClient(adminToken);
    var externalUsers = await adminClient.UsersManager.GetEnterpriseUsersAsync(
            "", 0, 1000, null, "external", null, false);
    
    externalUsers.Entries.ForEach(i =>
    {
         Console.WriteLine("\t{0}", i.Login);
    });
    0
    Comment actions Permalink

Please sign in to leave a comment.