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:
- Get a DropboxTeamClient with "team_info.read", "team_data.member", "groups.read" scopes
- Get the proper group id through TeamTeamRoutes.GroupsListAsync
- Get all of the members of the group through TeamTeamRoutes.GroupsMembersListAsync
- Cycle through the GroupMemberInfo getting the TeamMemberId, and then get a DropboxClient from DropboxTeamClient.AsMember(TeamMemberId)
- 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