Start 2025 on time and up to date! Seamlessly integrate your calendars into Dropbox with these simple steps! 📆

Forum Discussion

mattzj's avatar
mattzj
Explorer | Level 3
8 years ago
Solved

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.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    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's avatar
      mattzj
      Explorer | Level 3
      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