<?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: Move file from users home folder to admin home folder in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740453#M32692</link>
    <description>&lt;P&gt;Maybe im missing something here..&lt;BR /&gt;Im using team admin account to move file from user's home folder to admin's account home folder. when im using get_current_account to get the root id i get different ids for admin and for the user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example sarshavs user have root id : 4572232609 and Tomer - team admin have root id -&amp;nbsp;4572219937&amp;nbsp;now what should i do to move file from sarshavs home folder to Tomer home folder?&lt;BR /&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 22:27:54 GMT</pubDate>
    <dc:creator>sarshavs</dc:creator>
    <dc:date>2024-01-02T22:27:54Z</dc:date>
    <item>
      <title>Move file from users home folder to admin home folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740129#M32675</link>
      <description>&lt;P&gt;Hello im using team space configuration and trying to use this EP -&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;https://api.dropboxapi.com/2/files/move_v2&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;to move file from user's home folder to&amp;nbsp; admin home folder and i get 409, tried to add admin header but its not working...&lt;/P&gt;&lt;P&gt;Do you have support to such case? if so please share the EP (preferably v2) and relevant params.&lt;/P&gt;&lt;P&gt;Thanks alot!&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2023 15:14:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740129#M32675</guid>
      <dc:creator>sarshavs</dc:creator>
      <dc:date>2023-12-31T15:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Move file from users home folder to admin home folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740211#M32676</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1742066"&gt;@sarshavs&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you take a look on the response body, there should be more descriptive message of what's got wrong.&lt;/P&gt;&lt;P&gt;Happy new year.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 15:31:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740211#M32676</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-01-01T15:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Move file from users home folder to admin home folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740212#M32677</link>
      <description>&lt;P&gt;Thanks, i get&amp;nbsp;{'.tag': 'path', 'path': {'.tag': 'not_found'}&lt;BR /&gt;i tried using the user's path and also the file id both get similar error - not found/look up error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 15:59:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740212#M32677</guid>
      <dc:creator>sarshavs</dc:creator>
      <dc:date>2024-01-01T15:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Move file from users home folder to admin home folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740214#M32678</link>
      <description>&lt;P&gt;to be more specific im trying to move file from - {user name}/file1.txt -&amp;gt; {admin name}/file1.txt&lt;/P&gt;&lt;P&gt;using admin client .&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 16:01:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740214#M32678</guid>
      <dc:creator>sarshavs</dc:creator>
      <dc:date>2024-01-01T16:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Move file from users home folder to admin home folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740223#M32679</link>
      <description>&lt;P&gt;You have set either incorrect path or wrong namespace (or both of them). Try list all files/folders in your root (empty path) to see where are you and navigate to the correct path. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 18:38:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740223#M32679</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-01-01T18:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Move file from users home folder to admin home folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740237#M32681</link>
      <description>&lt;P&gt;Again, i need to move file between different namespaces so john root namespace is X and admin namespace is Y. How could i move file from X namespace to Y namespace?&amp;nbsp;&lt;BR /&gt;The problem is the root namespace is different for each user and the admin, and the root namespace for admin list only admin's folder and all the team folder but without all other user's home folder.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 22:28:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740237#M32681</guid>
      <dc:creator>sarshavs</dc:creator>
      <dc:date>2024-01-01T22:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Move file from users home folder to admin home folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740239#M32682</link>
      <description>&lt;P&gt;No, all namespaces (user/member folders, including the one of the admin) are in the same account root of a single account. It sounds like you have different accounts (that by mistake you count as a same). In such a case you can copy desired content in other ways. One possible such a way is to share (possibly temporary) the desired file (or containing folder) between the accounts and do whatever needed (including eventually moving as you're trying). Another possibility is to copy by reference (or by link - shared or temporary). Choose whatever best matches your use case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: Are you sure the account root namespace has been set correctly and not only independent member/admin namespace only? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; If not make it sure! As I said, just list all files/folders with empty path. Is the result showing some member admin folder or the account' root? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; Don't be sure for something you're not, better try/check.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 23:03:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740239#M32682</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-01-01T23:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Move file from users home folder to admin home folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740419#M32691</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1742066"&gt;@sarshavs&lt;/a&gt; &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-move" target="_blank"&gt;The /2/files/move_v2 endpoint&lt;/A&gt; only supports &lt;A href="https://www.dropbox.com/developers/reference/auth-types#admin-authentication" target="_blank"&gt;the Dropbox-API-Select-Admin "Team Admin" mode&lt;/A&gt;, meaning it can "can access content of team folders and team spaces but not the team members' home namespaces".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That means you can't use /2/files/move_v2 to administratively move a file from the user's home folder. That being the case, using &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-copy_reference-get" target="_blank"&gt;the copy reference feature&lt;/A&gt; that Здравко mentioned may be a good solution; you could use that to copy the file from one account to the other (and then delete the original if needed).&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 18:28:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740419#M32691</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-01-02T18:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Move file from users home folder to admin home folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740453#M32692</link>
      <description>&lt;P&gt;Maybe im missing something here..&lt;BR /&gt;Im using team admin account to move file from user's home folder to admin's account home folder. when im using get_current_account to get the root id i get different ids for admin and for the user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example sarshavs user have root id : 4572232609 and Tomer - team admin have root id -&amp;nbsp;4572219937&amp;nbsp;now what should i do to move file from sarshavs home folder to Tomer home folder?&lt;BR /&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 22:27:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740453#M32692</guid>
      <dc:creator>sarshavs</dc:creator>
      <dc:date>2024-01-02T22:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Move file from users home folder to admin home folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740458#M32694</link>
      <description>&lt;P&gt;As I said already and if you haven't count home name namespace as root namespace, then sarshavs and Tomer participate in different teams. Anyways...&lt;/P&gt;&lt;P&gt;In all cases (as Greg agreed too) you can use copy by reference and remove the file from the source at the end. If we assume you can access sarshavs files with user id $sarshavsUID and access token $sarshavsToken, then following call would give you a file reference:&lt;/P&gt;&lt;PRE&gt;fref=`curl -X POST https://api.dropboxapi.com/2/files/copy_reference/get -H "Authorization: Bearer $sarshavsToken" -H "Dropbox-Api-Select-User: $sarshavsUID" -H 'Content-Type: application/json' -d '{"path":"/Path/To/Existing/file.ext"}' | jq -r .copy_reference`&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Now $fref holds the received reference. Next if we assume $tomerUID is id of Tomer and $tomerToken is corresponding token, following would paste the copied before file in Tomer owned space:&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/copy_reference/save -H "Authorization: Bearer $tomerToken" -H "Dropbox-Api-Select-User: $tomerUID" -H 'Content-Type: application/json' -d "{\"copy_reference\":\"$fref\",\"path\":\"/Path/To/Paste/file.ext\"}"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The above are HTTP shell calls. Of course, you can use whatever you're using till now following the same pattern. In such a way you're not limited to any folder or account. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 23:06:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Move-file-from-users-home-folder-to-admin-home-folder/m-p/740458#M32694</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-01-02T23:06:13Z</dc:date>
    </item>
  </channel>
</rss>

