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

Limit app to one folder on Box

回答済み
新規投稿

コメント

2件のコメント

  • 正式なコメント
    jcleblanc

    Hi Ravi,

    In addition to what @ruchikosh mentioned, I'd recommend taking a look at our token downscoping capabilities to limit access to only 1 file or folder. Just to give an example of this, here's the downscoping call looks like in Node:

    client.exchangeToken('item_preview', 'https://api.box.com/2.0/files/123456789')
      .then(tokenInfo => {
        // tokenInfo.accessToken contains the new downscoped access token
    });

    The first parameter to exchangeToken, item_preview, allows you to specify what you can do with the resource (in this case preview only), then the second param is the resource identifier to restrict the downscoped token to (in this case a file with ID 123456789).

    That should provide the capabilities to restrict tokens to specific resources.

    - Jon

    コメントアクション Permalink
  • ruchikosh

    You can use JWT authentication over standard oauth, that would allow to create an application account in box to which only application user would have access initially. Application user name would start as "AutomationUser_..." which can be found out after authenticating the application and using GetCurrentUser API.

    Post this you can create a root folder in this users account and add the desired users into this user account.

     

    You can find more details about JWT in the below mentioned articles -

    https://developer.box.com/guides/authentication/jwt/

    https://developer.box.com/guides/authentication/user-types/app-users/

    0
    コメントアクション Permalink

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