Start 2025 on time and up to date! Seamlessly integrate your calendars into Dropbox with these simple steps! 📆
Forum Discussion
mattzj
8 years agoExplorer | Level 3
Shared folders specific to current logged in user.
Hi there i am attempting to set up an application that allows myself to have a portal for my clients. A client would visit the log in page and then be redirected to a page that showed them folders that I have shared with them only. Would i have to use the dropbox team end points for this or is there a way to do it without? Any insight would be appreciated.
I thought that just setting the client key from my account, then using the users auth token to instanciate dbx, followed by using the sharingListFolders() would work but I suppose that was naive of me.
Yes, sharingListFolders[/Continue] lists all of the shared folders the user has access to.
You can list the shared folders using sharingListFolders[/Continue], and then use sharingListFolderMembers[/Continue] to check the members, i.e., to see if it's a folder just between you and the user.
- Greg-DBDropbox StaffThis sounds like something you should be able to accomplish without using the team endpoints. What are you stuck on with sharingListFolders[/Continue] exactly?
Note that whether you use the user's access token or your own access token, it sounds like you'd need to filter the results of sharingListFolderMembers[/Continue] in order to list only the folders you're interested in. I.e., just the ones between you and user. Alternatively, you could just persistently keep track of the relevant shared folder IDs over time and filer that way.- mattzjExplorer | Level 3Yes that’s my problem. I need to filter the results returned by sharedFolder.
Correct me if I’m wrong but sharinglistFolders returns an array of all shred folders that user has access to.
I would like the user to only see shared folders between the user and myself. Is there a way to do this with api endpoints/arguments or should I just assign a prefix to my shared folders such as FAKECO and create my own function for sorting through the folder names returning those that matched.
Thanks so much for the quick reply- Greg-DBDropbox Staff
Yes, sharingListFolders[/Continue] lists all of the shared folders the user has access to.
You can list the shared folders using sharingListFolders[/Continue], and then use sharingListFolderMembers[/Continue] to check the members, i.e., to see if it's a folder just between you and the user.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,936 PostsLatest Activity: 3 hours 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!