One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
alex_rogach
6 years agoNew member | Level 2
Python API - export member list
Hi guys,
Can you share with me some examples with generating CSV or any report about all members from Dropbox admin panel.
Example for you.
Create a member data report:
- Sign in to dropbox.com with your admin credentials.
- Click Admin Console.
- Click Members.
- Click Export member data on the righthand side.
- Select Start export.
As you can see I need to automate this routine actions. I`m newbie in APIs and I need some parting words about it.
I`ve found some C# example and I want to know is it right direction to my goal ?
Thanks in advance.
private DropboxTeamClient DBTeamClient; private DropboxClient DBClient; … var members = await DBTeamClient.Team.MembersListAsync(); foreach (var member in members.Members.OrderBy(a => a.Profile.Email)) { var userClient = DBTeamClient.AsMember(member.Profile.TeamMemberId); var list = await userClient.Files.ListFolderAsync(string.Empty); foreach (var item inlist.Entries.OrderBy(a -> a.PathDisplay)) { ...
- Greg-DB
Dropbox Staff
The "Export member data" functionality on the Dropbox Business Admin Console uses a different mechanism than the API, so there isn't a way to automate that same functionality exactly.
If you want to programmatically retrieve information about a team's members though, using the Dropbox Business API, as you've begun here, is the right way.
To get the kind of information available in that csv from the Business Admin Console, you'll want to use at least the following methods:
- MembersListAsync and MembersListContinueAsync to list all of the members on the team
- MembersGetInfoAsync to get information about the members, such as their names, emails, roles, statuses, etc.
About Discuss Dropbox Developer & API
Make connections with other developers807 PostsLatest Activity: 2 days 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!