You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Aristide's avatar
Aristide
Helpful | Level 7
3 years ago

Problem to add a member on file or folder share.

Hello,
I can't add a member to a file or folder when I give write permission (editor). (No problem with the viewer read right).

Here is the body of my query:

 

{
        "file": "id:Q2EU1CT92JwAAABBAABGcg",
        "members": [
            {
                ".tag": "email",
                "email": "xxxxxxx@gmail.com"
            }
        ],
        "quiet": false,
        "access_level": "editor"
    }

 

The answer is :

 

{
        "error_summary": "access_error\/no_permission\/",
        "error": {
            ".tag": "access_error",
            "access_error": {
                ".tag": "no_permission"
            }
        },
        "user_message": {
            "locale": "en",
            "text": "You don’t have permission to perform this action."
        }
    }

 

Here are my permissions:

What permission is missing?

 

Thanks.

 

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi Aristide,

    Are you sure the particular file is your property or the owner lets you reshare aside him? 🤔 The error message leads to response No 🤷 (it's neither your property nor given permission to you or your account).

    Hope this gives direction.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Aristide Здравко is correct, this error is referring to the sharing permissions for the particular file/account, not the app scopes. For reference, an 'access_error/no_permission' from /2/sharing/add_file_member means:

    access_error

    SharingFileAccessError (open union)
    no_permission Void Current user does not have sufficient privileges to perform the desired action.
    For example, in this particular case, it sounds like this may be because the "editor" permission is not supported for individual file sharing for this file type.
     
    For comparison, the scopes registered to your app determine which pieces of API functionality your app can use at all.

    • Aristide's avatar
      Aristide
      Helpful | Level 7

      Okay,

      it's working for .docx file. So I can't add a collaborator on an image, video, audio type file... who can modify this file?

      Is there a list of allowed types for this API?

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        No, we don't have specific documentation on this for the Dropbox API, but I'll pass this along as a request. I can't promise if or when that might be added though.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,902 PostsLatest Activity: 8 hours ago
332 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!