cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
If you’ve changed your email address, now's the perfect time to update it on your Dropbox account and we’re here to help! Learn more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Shared folders specific to current logged in user.

Shared folders specific to current logged in user.

mattzj
Explorer | Level 3
Go to solution

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.

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

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.

View solution in original post

3 Replies 3

Greg-DB
Dropbox Staff
Go to solution
This 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.

mattzj
Explorer | Level 3
Go to solution
Yes 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-DB
Dropbox Staff
Go to solution

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    mattzj Explorer | Level 3
What do Dropbox user levels mean?