cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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

Greg-DB
Dropbox Staff

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.
New member | Level 1

Thank you appreciate the help. That did it

Need more support?
Who's talking

Top contributors to this post

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