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

Ashley B.15's avatar
Ashley B.15
Helpful | Level 7
6 years ago

Remove Shared Folder Invitee

I've been working on Sharing of folders using the API, but can not see how you remove a member who has not added it to their dropbox

This is the message in the UI "name@domain.com has not added this to their Dropbox yet"

When I try and remove using the RemoveMember I get this error : member_error/no_explicit_access/...

Which I guess makes sense as they haven't accepted or added. But how would you revoke this, so it doesn't show in the UI?

Also, when sharing indvidual files I only have the option to give View permission. 

Thanks in advance.

  • The /2/sharing/remove_folder_member endpoint (or corresponding native method) would be the right way to remove a member from a folder, whether or not they've mounted it. (Or, if operating on the recipient themselves, /2/sharing/relinquish_folder_membership.)

    That 'no_explicit_access' error should indicate "The target member only has inherited access to the shared folder". For example, they only have access by virtue of having access to a higher level folder, meaning you can't remove just the lower folder.

    Can you print out the full error object/message? The nested `MemberAccessLevelResult` may contain more useful information.

    If that doesn't seem to be the case though, please share some sample calls that produce this unexpected error though so we can look into it.

    Also, sharing individual files is a different piece of functionality than sharing folders, and sharing individual files does only support view-only access. For that, you can add members to files using /2/sharing/add_file_member, and remove them using /2/sharing/remove_file_member_2

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

    The /2/sharing/remove_folder_member endpoint (or corresponding native method) would be the right way to remove a member from a folder, whether or not they've mounted it. (Or, if operating on the recipient themselves, /2/sharing/relinquish_folder_membership.)

    That 'no_explicit_access' error should indicate "The target member only has inherited access to the shared folder". For example, they only have access by virtue of having access to a higher level folder, meaning you can't remove just the lower folder.

    Can you print out the full error object/message? The nested `MemberAccessLevelResult` may contain more useful information.

    If that doesn't seem to be the case though, please share some sample calls that produce this unexpected error though so we can look into it.

    Also, sharing individual files is a different piece of functionality than sharing folders, and sharing individual files does only support view-only access. For that, you can add members to files using /2/sharing/add_file_member, and remove them using /2/sharing/remove_file_member_2

    • Ashley B.15's avatar
      Ashley B.15
      Helpful | Level 7

      Hi,

      Thanks for the reply, and it was the parent that had the permission also.

      I get the following error now :

      HTTP/1.1 409 Conflict
      X-Dropbox-Request-Id: 860311efbc28a9b13e0ee1bb5d4e7ddd
      {"error_summary": "internal_error/.", "error": {".tag": "internal_error"}}

      I am retrying and still fails. Does the request Id help?

      Thanks

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 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!