You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Takashi Yamamoto
2 years agoExplorer | Level 3
User root folder path in organizational user accounts where Team space is enabled
I'd like to know how to easily obtain the user root folder path in organizational user accounts where Team space is enabled.
For user accounts where Team space is disabled, the URL to a user's file looks like this:
https://www.dropbox.com/home/foo/bar/baz
However, for organizational user accounts with Team space enabled, it becomes:
https://www.dropbox.com/home/John Doe/foo/bar/baz
In this case, I want to know how to easily obtain the URL for the user's folder or file. I understand that with the /users/get_current_account API, one can use the root_info.home_path. However, it's problematic when the username changes, leading to broken links.
I don't want to use shared links because I want to provide the link to users with legitimate credentials.
Is there a better method?
It would be great, for instance, if there was a string like user_root that acted as an alias to the user's home.
Thanks for following up. I'm glad to hear that worked.
I can only help with the Dropbox API itself, so for any questions regarding reporting or the Admin console, I suggest contacting support here.
- Greg-DBDropbox Staff
The Dropbox API doesn't offer a way to get/construct the /home URL of a file/folder on the Dropbox web site like that (either explicitly or via an alias), but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
However, you can call /2/sharing/create_shared_link_with_settings with the 'path' set to the the file/folder, and 'settings.audience' to 'no_one' to get a shared link that would refer to the folder on the web site for anyone who has access to it, though not directly enable any additional access to it. That kind of link would rely on the user's existing credentials/permissions, so it sounds like that may work for your use case.
- Takashi YamamotoExplorer | Level 3
Thank you! It works fine including team space folder with `Dropbox-Api-Path-Root`.
I have another question, when create link with 'no_one audience' setting, it seems not to count as external link, (I checked admin console https://www.dropbox.com/team/admin/external_sharing?role=work ).
Is this true?
- Greg-DBDropbox Staff
Thanks for following up. I'm glad to hear that worked.
I can only help with the Dropbox API itself, so for any questions regarding reporting or the Admin console, I suggest contacting support here.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 2 days agoIf 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!