We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
L3monxx
4 years agoExplorer | Level 3
Get full path
Hello,
I get shared folders for API
{ "name": "SOLAR", "namespace_id": "1413620231", "namespace_type": {".tag": "shared_folder" } } and i need full path to folder (user@domain.com/fol...
- 4 years ago
It looks like you have the output of /2/team/namespaces/list[/continue]. This will give you the namespace ID of shared folders, etc., for the team, but the path can vary for each member of the shared folder. To get the path for any given member, you'd need to look up the shared folder using their account.
For instance, you can do so using /2/sharing/get_folder_metadata using the namespace_id as the shared_folder_id. If your app/access token is connected to the team itself, you'd need to use the "member file access" feature to operate on a specific team member.
You may also want to check out the File Access Guide and Team Files Guide for more reference.
Greg-DB
Dropbox Community Moderator
4 years agoIt looks like you have the output of /2/team/namespaces/list[/continue]. This will give you the namespace ID of shared folders, etc., for the team, but the path can vary for each member of the shared folder. To get the path for any given member, you'd need to look up the shared folder using their account.
For instance, you can do so using /2/sharing/get_folder_metadata using the namespace_id as the shared_folder_id. If your app/access token is connected to the team itself, you'd need to use the "member file access" feature to operate on a specific team member.
You may also want to check out the File Access Guide and Team Files Guide for more reference.
- L3monxx4 years agoExplorer | Level 3
Thanks for reply
I get path but not for all ns
Example:
{ "access_type": { ".tag": "owner" }, "is_inside_team_folder": false, "is_team_folder": false, "owner_team": { "id": "", "name": "Company" }, "name": "LEGAL", "policy": { "member_policy": { ".tag": "anyone" }, "resolved_member_policy": { ".tag": "anyone" }, "acl_update_policy": { ".tag": "editors" }, "shared_link_policy": { ".tag": "anyone" }, "viewer_info_policy": { ".tag": "enabled" } }, "preview_url": "", "shared_folder_id": "ID", "time_invited": "2022-02-10T12:29:24Z", "access_inheritance": { ".tag": "inherit" } } { "access_type": { ".tag": "owner" }, "is_inside_team_folder": false, "is_team_folder": false, "owner_team": { "id": "", "name": "Company" }, "path_lower": "/poczta_kurierzy", "parent_folder_name": "", "name": "POCZTA_KURIERZY", "policy": { "member_policy": { ".tag": "anyone" }, "resolved_member_policy": { ".tag": "anyone" }, "acl_update_policy": { ".tag": "editors" }, "shared_link_policy": { ".tag": "anyone" }, "viewer_info_policy": { ".tag": "enabled" } }, "preview_url": "", "shared_folder_id": "ID", "time_invited": "2021-12-17T14:37:39Z", "access_inheritance": { ".tag": "inherit" } }- Greg-DB4 years ago
Dropbox Community Moderator
If the path is not present, that means that it is not mounted for that user, per the documentation:
path_lowerString? The lower-cased full path of this shared folder. Absent for unmounted folders. This field is optional.- L3monxx4 years agoExplorer | Level 3
I don't really understand, the user owns the ns and doesn't have it mounted?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!