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