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

Forum Discussion

scaron's avatar
scaron
Explorer | Level 3
3 years ago

Get shared links for a path for all users?

I am using the Dropbox Python API to manage shared links across multiple users on a Team. In my own UI I show the contents of a certain path/folder which the user then chooses to create a shared link for this file/folder. This link gets shared between our team members and all is well. When another user browses to this same path/folder, my application queries for existing shared links using...

 

sharing_list_shared_links(path, direct_only=True)

 


I assumed that this would return the previous shared link that the other user generated. Instead, this lists no shared links and my tool naively generates a new one for the user. I use this (deprecated) function to create a link, again assuming it would return the existing one. Instead it creates a new one...

 

sharing_create_shared_link(path, short_url=False, pending_upload=mode)

 


Is it possible using the newer create_shared_link_with_settings function to achieve my goal of having a single unique shared link for an entire team?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    No, these shared links (whether from create_shared_link_with_settings or sharing_create_shared_link) are per-user. Each such shared link is owned by a specific user account and the API doesn't offer a way to change that.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,924 PostsLatest Activity: 21 hours ago
335 Following

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!