You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before you start
Have you checked StackOverflow, previous issues, and Dropbox Developer Forums for help?
Yes, I found a user experiencing the same issue here but the fix provided is a workaround and doesn't explain the why.
What is your question?
Subfolders of a team folder have sharedFolderId = null when calling Files.GetMetadataAsync(path)
Why is this null? I understand this field is optional as per the docs but I expect the value to be populated since its a mountable folder (accessible to other team members).
If this is expected, can I please know what's an efficient way of identifying if a folder is a TeamFolder or MemberFolder given a path? I dont want to do Sharing.ListFoldersAsync() which lists all folders as it seems inefficient and is limited to 1000 folders.
Screenshots
Subfolder's permissions - it is shared with the team and is accessible to other team members
Versions
What version of the SDK are you using? 7.0.0
What version of the language are you using? C#12.0
What platform are you using? .NET 8.0
Additional context
Add any other context about the question here.
Thank you for reviewing
The text was updated successfully, but these errors were encountered:
azamf7799
changed the title
why is sharedFolderId null despite folder being mounted (shared with other team members)?
why is sharedFolderId null despite folder being mounted?
Jan 21, 2025
The issue you are reporting does not appear to be related to the SDK.
In order to further troubleshoot though, could you share the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s).
Also, could you please share the unexpected result—i.e., the null result.
view the sharedFolderId with the following snippet
var dbx = new DropboxTeamClient(adminAccessToken).AsMember(memberId);
var metadata = await dbx.Files.GetMetadataAsync(folderId);
var sharedFolderId = await metadata.AsFolder.SharingInfo.SharedFolderId;
The behavior you are experiencing is expected for team/shared folders.
Folders inside team/shared folders inherit from their parents by default.
If you see ParentSharedFolderId for an item, but not SharedFolderId, that indicates that the item ("SubFolder" in your case) is not itself a shared folder, but is contained in a shared folder.
That said, you can create nested shared folders inside parent folders by using dbx.Sharing.ShareFolderAsync("/Azams Shared Folder 2/SubFolder"). This would give "SubFolder" its own shared folder ID, if that's what you are looking for.
Before you start
Have you checked StackOverflow, previous issues, and Dropbox Developer Forums for help?
Yes, I found a user experiencing the same issue here but the fix provided is a workaround and doesn't explain the why.
What is your question?
Subfolders of a team folder have
sharedFolderId = null
when callingFiles.GetMetadataAsync(path)
Why is this null? I understand this field is optional as per the docs but I expect the value to be populated since its a mountable folder (accessible to other team members).
If this is expected, can I please know what's an efficient way of identifying if a folder is a TeamFolder or MemberFolder given a
path
? I dont want to doSharing.ListFoldersAsync()
which lists all folders as it seems inefficient and is limited to 1000 folders.Screenshots
Subfolder's permissions - it is shared with the team and is accessible to other team members
Versions
Additional context
Add any other context about the question here.
Thank you for reviewing
The text was updated successfully, but these errors were encountered: