Learn how to make the most out of the Dropbox Community 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 Staff
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 developers810 PostsLatest Activity: 2 days ago
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 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!