We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
athithan
3 years agoHelpful | Level 5
How can I retrieve a list of all the members who have been granted access to a file in team folder
A member of a team has created a folder in the team folder, inside the folder there is a file. This file is shared with multiple users, excluding the admin. With admin privilege, I am able to retrieve the list of members of the file using the Dropbox API endpoint "https://api.dropboxapi.com/2/sharing/list_file_members". The API provides me with a cursor for pagination. However, when I attempt to retrieve the next page of members using the endpoint "https://api.dropboxapi.com/2/sharing/list_file_members/continue",
I encounter the following error:
I believe that this endpoint is supposed to support admin privileges, but it seems to be returning an error related to an invalid file ID. I am unsure how to retrieve the members on the next page if this endpoint does not support admin privileges. Can anyone provide guidance on how to resolve this issue?
13 Replies
- Здравко3 years agoLegendary | Level 20
Hi athithan,
Did you try to authenticate on continue as a regular user after authenticate as admin during start listing members instead of always as admin? 🤔
- Greg-DB3 years ago
Dropbox Community Moderator
athithan To echo what Здравко said, how did you make these two calls? It may be helpful if you can share the request for each of them so we can take a look. Be sure to redact the access token though. You can open an API ticket here if you'd prefer to share privately.
- athithan3 years agoHelpful | Level 5
@gerg-DB
1. First I tried to list all the members as admin (page limit set to = 1)
2. Then the I used the cursor to list the rest of the members wit same privilege,
3. Then I tried to use the admin as a user, received an error because, the file is not shared with admin
- Здравко3 years agoLegendary | Level 20
Try skip/jump over the second step.
- athithan3 years agoHelpful | Level 5
Thank you for your answers, but I couldn't catch you Could you please elaborate a bit more
- Здравко3 years agoLegendary | Level 20
athithan, As you can see, /2/sharing/list_file_members/continue only support User authentication! That's it.
- athithan3 years agoHelpful | Level 5
Is there any way to achieve what I want?
- Greg-DB3 years ago
Dropbox Community Moderator
athithan Thanks for the additional information. I'll ask the team to support "Dropbox-API-Select-Admin" on /2/sharing/list_file_members/continue, but I can't promise if or when that might be done though.
Instead, you'd need to use "Dropbox-API-Select-User", but make sure you're providing the member ID of an account that does have access to the specified file.
- athithan3 years agoHelpful | Level 5
In my scenario, the admin needs to retrieve all the team folders and files, including shared members of the files and folders. Therefore, I am making multiple requests in a loop. However, if a folder is not shared with the admin, it will throw an error when trying to get the next page members (/continue). At this point, it is difficult to switch back to 'Dropbox-API-Select-User' because the admin is the owner of all content in the team folder, and I do not know the original owner of the folder. In my opinion, the /continue endpoint should support fetching the next page members in this case. I am looking forward to seeing your response. 🙏
- Greg-DB3 years ago
Dropbox Community Moderator
athithan Thanks for the context! I've brought this up with the team and I'll follow up here with any news on this.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,035 PostsLatest Activity: 3 years ago
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!