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

Authentication to be used for background automation

回答済み
新規投稿

コメント

3件のコメント

  • Peter Christensen

    Hi Rashmi

    In the scenario you are describing I would recommend you using either JWT or Client Credentials Grant as you have discovered. You are correct that initially this will authenticate as the service account associated with the application. You have three options:

    1. Invite the service account as collaborator on the folders you need to push files to. https://developer.box.com/guides/collaborations/share-content/

    2. Use the 'As-User' header to impersonate the user you want to perform the upload as (and who has access) https://developer.box.com/guides/authentication/jwt/as-user/

    3. Generate an access token for the user you want to perform the upload https://developer.box.com/guides/authentication/jwt/user-access-tokens/

    Best regards,
    Peter Christensen, Platform Solutions Engineer, Box

    0
    コメントアクション Permalink
  • Rashmi Satrote

    Hi Peter

    Thank you for your response.

    Among the three options that you have suggested, I have tried the first one. It works as expected.

    But I have a query regarding this approach. Can we invite the service account as collaborator on the root folder?

    0
    コメントアクション Permalink
  • Peter Christensen

    Hi Rashmi

    No, you cannot add collaborators to  the root folder/folder '0' 

    Rgds,

    Peter

    0
    コメントアクション Permalink

投稿コメントは受け付けていません。