Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
InfiAdmin
6 months agoExplorer | Level 3
Retrieve List of Users via Dropbox C# DLL
Dear Dropbox Support Team, I hope this message finds you well. We are currently working on integrating Dropbox functionality into our C# application using the official Dropbox SDK (DLL). Our object...
DB-Des
Dropbox Community Moderator
6 months agoHi InfiAdmin
To list all users in your Dropbox Business account using the .NET SDK, you'll want to use the 'Team.MembersListV2Async()' method from the 'DropboxTeamClient' class. This corresponds to the /2/team/members/list_v2 endpoint and allows you to retrieve a list of all team members.
In order to paginate through additional results, you will need to check the value of the 'HasMore' property, which is returned in the response. If the value is 'True', you will need to obtain the value of the 'Cursor' property, and then use the 'Team.MembersListContinueV2Async()' method (as needed) to retrieve any additional results until 'HasMore' returns 'False'. This would be corresponding to the /2/team/members/list/continue_v2 endpoint.
In order to read team member information, you will need to create an API app with team scopes — you can create an API app from your account's App Console. The scope needed, just to list team members, is: 'members.read'. Keep in mind that API apps with team scopes can only be approved by team admins only.
Below is a sample code snippet:
// Initialize with an admin-level team access token
using var teamClient = new DropboxTeamClient("YOUR_TEAM_ADMIN_TOKEN");
var listResult = await teamClient.Team.MembersListV2Async();
while (true)
{
foreach (var member in listResult.Members)
{
Console.WriteLine($"ID: {member.Profile.TeamMemberId} | Email: {member.Profile.Email}");
}
if (listResult.HasMore)
{
listResult = await teamClient.Team.MembersListContinueV2Async(listResult.Cursor);
} else {
break;
}
}- InfiAdmin6 months agoExplorer | Level 3
Thank you
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!