One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
journeymigration
2 years agoHelpful | Level 5
Remove invitees from folders that don't have a Dropbox set up
If a folder has been shared with a member that doesn't have a Dropbox set up, is there a way to programmatically remove them? I'm currently get members of a shared folder as follows:
await dbxClient.Sharing.ListFolderMembersAsync(sharedFolderId, null, 1000);
I then go through each member and either change their permissions or remove them from the shared folder. This, however, only returns members and not invitees that have yet to set up a Dropbox. In theory, this person could set up a Dropbox down the road and then have access to a shared folder when they should no longer have access.
- Greg-DB
Dropbox Staff
The ListFolderMembersAsync method also returns invited users who haven't joined yet, in SharedFolderMembers.Invitees (as opposed to SharedFolderMembers.Users).
You can remove any of those invitees using RemoveFolderMemberAsync.
- journeymigrationHelpful | Level 5
Thank you -- very helpful.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 2 hours ago
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!