We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

icefishandrew's avatar
icefishandrew
Explorer | Level 3
3 years ago

Get all shared links for a file

I have a .net app that needs to get all of the shared links for a particular file.  The only way I can see to do this is to:

  1. Get a DropboxTeamClient with "team_info.read", "team_data.member", "groups.read" scopes
  2. Get the proper group id through TeamTeamRoutes.GroupsListAsync
  3. Get all of the members of the group through TeamTeamRoutes.GroupsMembersListAsync
  4. Cycle through the GroupMemberInfo getting the TeamMemberId, and then get a DropboxClient from DropboxTeamClient.AsMember(TeamMemberId) 
  5. Get all of the shared links for that file, for that member, using SharingUserRoutes.ListSharedLinksAsync

I am an Admin and have approved this app during authorization.  This all works well on my computer.  If another user, who is not an Admin, tries to get an authorization token they receive an error message saying "You must be a team administrator to authorize this app.  Either login to a Dropbox for Business admin account, or contact an existing administrator for your team."

 

How do I authorize a non-Admin user, or is there a better way to do this?

 

Thanks  

1 Reply

Replies have been turned off for this discussion

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers815 PostsLatest Activity: 6 hours ago
276 Following

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 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!