Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Benderson D.
10 years agoNew member | Level 1
Get list of users for shared folder C# .NET
Trying to get a list of users (Membership) for shared folders and could use some help.
static async Task Run()
{
using (var dbx = new DropboxClient("ACCESS TOKEN"))
{
FullSharedFolderMetadata metaName = new FullSharedFolderMetadata();
var list = await dbx.Files.ListFolderAsync(string.Empty);
foreach (var item in list.Entries.Where(i => i.IsFolder))
{
if (item.Name == "MyFolder")
{
//CAN I GET THE METADATA HERE?
}
}
}
}
2 Replies
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
If you want to get the list of members of a shared folder, you can use the GetSharedFolderAsync method.
When using includeMembership = true, as it is by default, the resulting FullSharedFolderMetadata will contain membership information.
If you need to list shared folders to find the desired one to begin with, you can use ListSharedFoldersAsync.
- Benderson D.10 years agoNew member | Level 1
Thank you appreciate the help. That did it
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!