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
L3monxx
3 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...
- 3 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 Staff
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.
L3monxx
3 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-DB3 years agoDropbox Staff
If the path is not present, that means that it is not mounted for that user, per the documentation:
path_lower
String? The lower-cased full path of this shared folder. Absent for unmounted folders. This field is optional.- L3monxx3 years agoExplorer | Level 3
I don't really understand, the user owns the ns and doesn't have it mounted?
- Greg-DB3 years agoDropbox Staff
Yes, it's possible for a member (even the owner) of a shared folder to not have it mounted in their account. The Sharing Guide may also serve as a useful reference.
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!