<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to assign access level permission while sharing the file to the members in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-assign-access-level-permission-while-sharing-the-file-to/m-p/420633#M1214</link>
    <description>&lt;P&gt;When adding a member to a shared folder using the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_AddFolderMemberAsync_1.htm" target="_self"&gt;AddFolderMemberAsync&lt;/A&gt; method in &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" target="_self"&gt;the&amp;nbsp;Dropbox .NET SDK&lt;/A&gt; like this, you can set the new member's access level when you construct&amp;nbsp;the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_AddMember.htm" target="_self"&gt;AddMember&lt;/A&gt; object, using &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_AddMember__ctor_1.htm" target="_self"&gt;this&amp;nbsp;AddMember constructor&lt;/A&gt;, which takes both a&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_MemberSelector.htm" target="_self"&gt;MemberSelector&lt;/A&gt; and an &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_AccessLevel.htm" target="_self"&gt;AccessLevel&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_MemberSelector.htm" target="_self"&gt;MemberSelector&lt;/A&gt;&amp;nbsp;works the way you already have it, and you can supply an instance of the desired&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_AccessLevel.htm" target="_self"&gt;AccessLevel&lt;/A&gt;. For example, for view-only access, that would be &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/F_Dropbox_Api_Sharing_AccessLevel_Viewer_Instance.htm" target="_self"&gt;AccessLevel.Viewer.Instance&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 15 May 2020 14:18:50 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-05-15T14:18:50Z</dc:date>
    <item>
      <title>How to assign access level permission while sharing the file to the members</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-assign-access-level-permission-while-sharing-the-file-to/m-p/420548#M1212</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;How to assign access level permission while sharing the file to the members using API&lt;/P&gt;
&lt;P&gt;I have done in c# and code is here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;using (var dbx = new DropboxClient(token))&lt;BR /&gt;{&lt;BR /&gt;var shareFolderLaunch = await dbx.Sharing.ShareFolderAsync("/CloudPOC");&lt;/P&gt;
&lt;P&gt;var sharedFolderId = "";&lt;BR /&gt;if (shareFolderLaunch.IsAsyncJobId)&lt;BR /&gt;{&lt;BR /&gt;while (true)&lt;BR /&gt;{&lt;BR /&gt;var shareFolderJobStatus = await dbx.Sharing.CheckShareJobStatusAsync(shareFolderLaunch.AsAsyncJobId.Value);&lt;BR /&gt;if (shareFolderJobStatus.IsFailed)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("Sharing folder failed: " + shareFolderJobStatus.AsFailed.Value);&lt;BR /&gt;return;&lt;BR /&gt;}&lt;BR /&gt;else if (shareFolderJobStatus.IsInProgress)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("Sharing folder in progress...");&lt;BR /&gt;// todo: add some delay&lt;BR /&gt;}&lt;BR /&gt;else if (shareFolderJobStatus.IsComplete)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("Sharing folder complete.");&lt;BR /&gt;sharedFolderId = shareFolderJobStatus.AsComplete.Value.SharedFolderId;&lt;BR /&gt;break;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else if (shareFolderLaunch.IsComplete)&lt;BR /&gt;{&lt;BR /&gt;sharedFolderId = shareFolderLaunch.AsComplete.Value.SharedFolderId;&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;return;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;Console.WriteLine("Shared folder with ID: " + sharedFolderId);&lt;/P&gt;
&lt;P&gt;var members = new[] { new AddMember(new MemberSelector.Email("example@xxx.com")) };&lt;BR /&gt;var access_level = "viewer";&lt;BR /&gt;var add_message_as_comment = false;&lt;BR /&gt;await dbx.Sharing.AddFolderMemberAsync(sharedFolderId, members,true);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 13:54:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-assign-access-level-permission-while-sharing-the-file-to/m-p/420548#M1212</guid>
      <dc:creator>parimisatya</dc:creator>
      <dc:date>2020-05-15T13:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign access level permission while sharing the file to the members</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-assign-access-level-permission-while-sharing-the-file-to/m-p/420633#M1214</link>
      <description>&lt;P&gt;When adding a member to a shared folder using the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_AddFolderMemberAsync_1.htm" target="_self"&gt;AddFolderMemberAsync&lt;/A&gt; method in &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" target="_self"&gt;the&amp;nbsp;Dropbox .NET SDK&lt;/A&gt; like this, you can set the new member's access level when you construct&amp;nbsp;the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_AddMember.htm" target="_self"&gt;AddMember&lt;/A&gt; object, using &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_AddMember__ctor_1.htm" target="_self"&gt;this&amp;nbsp;AddMember constructor&lt;/A&gt;, which takes both a&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_MemberSelector.htm" target="_self"&gt;MemberSelector&lt;/A&gt; and an &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_AccessLevel.htm" target="_self"&gt;AccessLevel&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_MemberSelector.htm" target="_self"&gt;MemberSelector&lt;/A&gt;&amp;nbsp;works the way you already have it, and you can supply an instance of the desired&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_AccessLevel.htm" target="_self"&gt;AccessLevel&lt;/A&gt;. For example, for view-only access, that would be &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/F_Dropbox_Api_Sharing_AccessLevel_Viewer_Instance.htm" target="_self"&gt;AccessLevel.Viewer.Instance&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 14:18:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-assign-access-level-permission-while-sharing-the-file-to/m-p/420633#M1214</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-15T14:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign access level permission while sharing the file to the members</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-assign-access-level-permission-while-sharing-the-file-to/m-p/421263#M1219</link>
      <description>&lt;P&gt;thanks for your prompt response&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 01:52:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-assign-access-level-permission-while-sharing-the-file-to/m-p/421263#M1219</guid>
      <dc:creator>parimisatya</dc:creator>
      <dc:date>2020-05-18T01:52:45Z</dc:date>
    </item>
  </channel>
</rss>

