新しいBoxサポートサイトへようこそ。 変更点の詳細はこちらをご確認ください .

Get external user returns 403

新規投稿

コメント

4件のコメント

  • Murtza

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

    0
    コメントアクション Permalink
  • adina_c

    , yes, it is checked 😞

    0
    コメントアクション 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
    コメントアクション 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
    コメントアクション Permalink

サインインしてコメントを残してください。