How to move a file to a folder where the user doesn't have permission?

新規投稿

コメント

1件のコメント

  • rossmckegney

     

    Since you are moving content from an instance that you don't own, using an App User for this is not the right approach. Your app can't grant access to your app user into that separate instance.

     

     

    Instead, what you want to do is grant the managed user an "Uploader" permission into your target folder, then they can move/copy the folder using their OAuth token.

     

    With "Service Accounts", landing in a couple of months, you'd be able to grant this permission directly. In the interim, what you'll need to do is create a Group, grant the Group an "Uploader" permission to the target folder. 

     

    When the user signs in to your application, you can add them to the Group, which will give them permission to copy/move files into the target folder.

     

     

    0
    コメントアクション パーマリンク

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