<?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 File permissions in the shared folder in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/File-permissions-in-the-shared-folder/m-p/381097#M871</link>
    <description>&lt;P&gt;Hi, I have this case:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;User A shares a folder to User B with edit rights and B didn't accept the shared folder yet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my application A opens the file from the shared folder, and provides the fileId to User B, assuming the B should have the access rights for that file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;`&lt;SPAN&gt;sharing/get_file_metadata&lt;/SPAN&gt;` performed by User B returns&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"access_type"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;".tag"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"editor"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;so User B is assuming he has edit rights for the file as well. However, User B is not allowed to even download the file (download file rq return 404 not found).&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Is there any way how to detect User B haven't accepted the shared folder, so he doesn't have the access rights for the file yet? Or, could it a bug, as the get_file_metadata seems to return misleading information?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 03 Dec 2019 20:25:35 GMT</pubDate>
    <dc:creator>lades</dc:creator>
    <dc:date>2019-12-03T20:25:35Z</dc:date>
    <item>
      <title>File permissions in the shared folder</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/File-permissions-in-the-shared-folder/m-p/381097#M871</link>
      <description>&lt;P&gt;Hi, I have this case:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;User A shares a folder to User B with edit rights and B didn't accept the shared folder yet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my application A opens the file from the shared folder, and provides the fileId to User B, assuming the B should have the access rights for that file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;`&lt;SPAN&gt;sharing/get_file_metadata&lt;/SPAN&gt;` performed by User B returns&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"access_type"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;".tag"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"editor"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;so User B is assuming he has edit rights for the file as well. However, User B is not allowed to even download the file (download file rq return 404 not found).&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Is there any way how to detect User B haven't accepted the shared folder, so he doesn't have the access rights for the file yet? Or, could it a bug, as the get_file_metadata seems to return misleading information?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Dec 2019 20:25:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/File-permissions-in-the-shared-folder/m-p/381097#M871</guid>
      <dc:creator>lades</dc:creator>
      <dc:date>2019-12-03T20:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: File permissions in the shared folder</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/File-permissions-in-the-shared-folder/m-p/381175#M872</link>
      <description>&lt;P&gt;Apologies for the confusion! This is the expected behavior. Before user B "accepts" or "mounts" the shared folder, they will have the right to access to (hence the returned "access_type"), but won't actually be able to do so, since the content hasn't yet been added to their account.&lt;/P&gt;
&lt;P&gt;You can detect this from the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_file_metadata" target="_self"&gt;/2/sharing/get_file_metadata&lt;/A&gt; call for user B. In the response, if 'path_display' and 'path_lower' aren't set, that means that the file is not mounted in the user's account yet, so they can't interact with it. (They can mount it using the&amp;nbsp;Dropbox web site, or via the API using&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-mount_folder" target="_self"&gt;/2/sharing/mount_folder&lt;/A&gt;.)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 17:40:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/File-permissions-in-the-shared-folder/m-p/381175#M872</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-11-27T17:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: File permissions in the shared folder</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/File-permissions-in-the-shared-folder/m-p/384478#M910</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;I'm facing another issue with the access rights:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a business account, get_file_metadata for a file from a team folder returns the tag `editor`, I assume the user has permissions to write (even both path_lower, patrh_display is set). However, upload rq is failing with the 409:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"error_summary"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"path/no_write_permission/."&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Please check the attached files for complete responses.&amp;nbsp;&lt;/P&gt;&lt;P&gt;upload is performed with this header&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dropbox-API-Arg: {"path":"id:f1MRSe_xAMAAAAAAAAAAOQ","mode":{".tag":"overwrite"}}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 13:02:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/File-permissions-in-the-shared-folder/m-p/384478#M910</guid>
      <dc:creator>lades</dc:creator>
      <dc:date>2019-12-16T13:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: File permissions in the shared folder</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/File-permissions-in-the-shared-folder/m-p/384548#M911</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1235753"&gt;@lades&lt;/a&gt;&amp;nbsp;I'll be happy to take a look, but I'll need some more information. Can you share the requests/responses for this? Please be sure to redact your access token though.&lt;/P&gt;
&lt;P&gt;You mentioned "attached files" but I don't see anything attached.&lt;/P&gt;
&lt;P&gt;Feel free to &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt; if you'd prefer to share privately. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 17:10:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/File-permissions-in-the-shared-folder/m-p/384548#M911</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-12-16T17:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: File permissions in the shared folder</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/File-permissions-in-the-shared-folder/m-p/384700#M912</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;I found out what the problem was. When the header `Dropbox-API-Path-Root` is not specified, `get_file_metadata` is not returning the `path_lower` and `path_display` properties.&lt;/P&gt;&lt;PRE&gt;Dropbox-API-Path-Root: {".tag":"root","root":"63xxxxxx0"}&lt;/PRE&gt;&lt;P&gt;It all works fine (even the upload) if the `Dropbox-API-Path-Root` is defined.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 08:16:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/File-permissions-in-the-shared-folder/m-p/384700#M912</guid>
      <dc:creator>lades</dc:creator>
      <dc:date>2019-12-17T08:16:32Z</dc:date>
    </item>
  </channel>
</rss>

