We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
journeymigration
3 years agoHelpful | Level 5
How to UpdateFolderMemberAsync
How do I create an instance of AccessLevel set to a value of Viewer? Here's a snippet of my code:
AccessLevel.Viewer accessLevel = new AccessLevel().AsViewer; foreach (var member in members)...
- 3 years ago
Here's an example of how you can update a folder member to the viewer access level using the Dropbox .NET SDK:
MemberSelector.Email memberSelector = new MemberSelector.Email(emailAddress); MemberAccessLevelResult updateMemberResult = await client.Sharing.UpdateFolderMemberAsync( sharedFolderId:sharedFolderId, member:memberSelector, accessLevel:AccessLevel.Viewer.Instance);Hope this helps!
Greg-DB
Dropbox Community Moderator
3 years agoHere's an example of how you can update a folder member to the viewer access level using the Dropbox .NET SDK:
MemberSelector.Email memberSelector = new MemberSelector.Email(emailAddress);
MemberAccessLevelResult updateMemberResult = await client.Sharing.UpdateFolderMemberAsync(
sharedFolderId:sharedFolderId,
member:memberSelector,
accessLevel:AccessLevel.Viewer.Instance);
Hope this helps!
- journeymigration3 years agoHelpful | Level 5
Thanks Greg, super helpful.
About Discuss Dropbox Developer & API
Make connections with 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!