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's avatar
Takashi Yamamoto
Explorer | Level 3
2 years ago

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.

e.g. https://www.dropbox.com/home/user_root/foo/bar/baz

  • Greg-DB's avatar
    Greg-DB
    2 years ago

    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-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox 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.

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox 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.