<?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 Permission Exception Thrown When Moving/Deleting in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Permission-Exception-Thrown-When-Moving-Deleting/m-p/307022#M18482</link>
    <description>&lt;P&gt;I am trying to move a file from within a Shared Dropbox Folder using the Business API. I am attempting to do this through a 'DropBoxClient' instance. I first create a 'DropBoxTeamClient' using the access token specific to my dropbox application and then I impersonate a user that has Team Admin access and convert the 'DropBoxTeamClient' to a 'DropBoxClient' in order to gain access to the methods used to work with the files:&lt;/P&gt;&lt;PRE&gt;var client = teamClient.AsAdmin(userToImpersonate.Profile.TeamMemberId);&lt;/PRE&gt;&lt;P&gt;From there I have the ability to get and download file data and meta data. But when I need to move a file:&lt;/P&gt;&lt;PRE&gt;client.Files.MoveV2Async(file.Response.PathDisplay, toPath, true, true, true).Wait();&lt;/PRE&gt;&lt;P&gt;I get a 'Dropbox.Api.PathRootException' with a message of '&lt;EM&gt;no_permission/...' . &lt;/EM&gt;The client I'm using has Team Admin access and when I grab the metadata for both the folder I'm moving from/to as well as the file I'm trying to move, 'ReadOnly' is false, but the behavior suggests that I only have readonly access despite the value being false and the client having that level of access. I tried impersonating the owner of the shared folder and got the same result. I am able to move and delete through the dropbox UI but not throught the API. Is there some step/parameter that I am missing in the request? Here is the captured request body:&lt;/P&gt;&lt;PRE&gt;{"from_path":"/Test/Products/Import/TestZIP.zip","to_path":"/Test/Products/Import/TestZIP.zip","allow_shared_folder":true,"autorename":true,"allow_ownership_transfer":true}&lt;/PRE&gt;&lt;P&gt;And Response is a status of 244:&lt;/P&gt;&lt;PRE&gt;{"error_summary": "no_permission/", "error": {".tag": "no_permission"}}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:09:32 GMT</pubDate>
    <dc:creator>noahhornak</dc:creator>
    <dc:date>2019-05-29T09:09:32Z</dc:date>
    <item>
      <title>Permission Exception Thrown When Moving/Deleting</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Permission-Exception-Thrown-When-Moving-Deleting/m-p/307022#M18482</link>
      <description>&lt;P&gt;I am trying to move a file from within a Shared Dropbox Folder using the Business API. I am attempting to do this through a 'DropBoxClient' instance. I first create a 'DropBoxTeamClient' using the access token specific to my dropbox application and then I impersonate a user that has Team Admin access and convert the 'DropBoxTeamClient' to a 'DropBoxClient' in order to gain access to the methods used to work with the files:&lt;/P&gt;&lt;PRE&gt;var client = teamClient.AsAdmin(userToImpersonate.Profile.TeamMemberId);&lt;/PRE&gt;&lt;P&gt;From there I have the ability to get and download file data and meta data. But when I need to move a file:&lt;/P&gt;&lt;PRE&gt;client.Files.MoveV2Async(file.Response.PathDisplay, toPath, true, true, true).Wait();&lt;/PRE&gt;&lt;P&gt;I get a 'Dropbox.Api.PathRootException' with a message of '&lt;EM&gt;no_permission/...' . &lt;/EM&gt;The client I'm using has Team Admin access and when I grab the metadata for both the folder I'm moving from/to as well as the file I'm trying to move, 'ReadOnly' is false, but the behavior suggests that I only have readonly access despite the value being false and the client having that level of access. I tried impersonating the owner of the shared folder and got the same result. I am able to move and delete through the dropbox UI but not throught the API. Is there some step/parameter that I am missing in the request? Here is the captured request body:&lt;/P&gt;&lt;PRE&gt;{"from_path":"/Test/Products/Import/TestZIP.zip","to_path":"/Test/Products/Import/TestZIP.zip","allow_shared_folder":true,"autorename":true,"allow_ownership_transfer":true}&lt;/PRE&gt;&lt;P&gt;And Response is a status of 244:&lt;/P&gt;&lt;PRE&gt;{"error_summary": "no_permission/", "error": {".tag": "no_permission"}}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:09:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Permission-Exception-Thrown-When-Moving-Deleting/m-p/307022#M18482</guid>
      <dc:creator>noahhornak</dc:creator>
      <dc:date>2019-05-29T09:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Exception Thrown When Moving/Deleting</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Permission-Exception-Thrown-When-Moving-Deleting/m-p/307218#M18485</link>
      <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/53110650/dropbox-permission-exception-thrown-when-moving-deleting" target="_blank"&gt;https://stackoverflow.com/questions/53110650/dropbox-permission-exception-thrown-when-moving-deleting&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;Is that the actual request body, or did you modify it when posting it here?&amp;nbsp; You seem to have the same value in both the "from_path" and "to_path" parameters, which should produce a different error.&lt;/P&gt;
&lt;P&gt;Anyway, I think the issue may be that you need to use&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_DropboxTeamClient_AsMember.htm" target="_blank"&gt;AsMember&lt;/A&gt; for this use case, instead of AsAdmin.&lt;/P&gt;
&lt;P&gt;Please give that a try. If that doesn't help, please &lt;A href="https://www.dropbox.com/developers/contact" target="_blank"&gt;open an API &lt;/A&gt;ticket with the team member ID and the parameter values so we can look into this for you.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 16:26:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Permission-Exception-Thrown-When-Moving-Deleting/m-p/307218#M18485</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-11-02T16:26:02Z</dc:date>
    </item>
  </channel>
</rss>

