cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get list of users for shared folder C# .NET

Get list of users for shared folder C# .NET

Benderson D.
New member | Level 1

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 2

Re: Get list of users for shared folder C# .NET

Greg-DB
Dropboxer

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.

Re: Get list of users for shared folder C# .NET

Benderson D.
New member | Level 1

Thank you appreciate the help. That did it

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Benderson D. New member | Level 1
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?