We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

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.