Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
daniaaluyr
7 years agoNew member | Level 2
Add a group to a folder or sub folder NOT shared folder. C#
Hello all,
Was wondering how to add a group to a folder.
For example we have Studio/WIP/158987
I want to make it where i can add a group called designers (already created in the front end and ...
- 7 years ago
In order to add a group or member to a folder, that folder does need to be shared first.
If the folder is underneath a folder that is already shared, you may wish to add the group or member to that parent shared folder.
Or, you can share the specific folder itself. You can do so via the website as covered here, or via the API. In the .NET SDK in particular, you would use the ShareFolder method to do so.
Greg-DB
Dropbox Community Moderator
7 years agoIn order to add a group or member to a folder, that folder does need to be shared first.
If the folder is underneath a folder that is already shared, you may wish to add the group or member to that parent shared folder.
Or, you can share the specific folder itself. You can do so via the website as covered here, or via the API. In the .NET SDK in particular, you would use the ShareFolder method to do so.
- daniaaluyr7 years agoNew member | Level 2
Ahh i see. Thanks Greg. I have got that bit working now. However how can i add a group?
So i have got the below:
var members = new[] { new AddMember(new MemberSelector.Email("email")) }; await dbx.Sharing.AddFolderMemberAsync(sharedFolderId, members);There is no "AddFolderGroupAsync". Not that i could find anyway.
- Greg-DB7 years ago
Dropbox Community Moderator
To add a group, you should use the same AddFolderMemberAsync method, but you should use the MemberSelector.DropboxId selector (instead of MemberSelector.Email). You should put the group ID value there. Group IDs start with "g:". You can get the group IDs from GroupsListAsync/GroupsListContinueAsync.
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!