Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
sarshavs
2 years agoExplorer | Level 3
Move file from users home folder to admin home folder
Hello im using team space configuration and trying to use this EP - https://api.dropboxapi.com/2/files/move_v2 to move file from user's home folder to admin home folder and i get 409, tried to ad...
sarshavs
2 years agoExplorer | Level 3
to be more specific im trying to move file from - {user name}/file1.txt -> {admin name}/file1.txt
using admin client .
Здравко
2 years agoLegendary | Level 20
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. 😉
Good luck.
- sarshavs2 years agoExplorer | Level 3
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?
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.- Здравко2 years agoLegendary | Level 20
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.
PS: Are you sure the account root namespace has been set correctly and not only independent member/admin namespace only? 🤔 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? 🙂 Don't be sure for something you're not, better try/check.
- Greg-DB2 years ago
Dropbox Community Moderator
sarshavs The /2/files/move_v2 endpoint only supports the Dropbox-API-Select-Admin "Team Admin" mode, meaning it can "can access content of team folders and team spaces but not the team members' home namespaces".
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 the copy reference feature 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).
- sarshavs2 years agoExplorer | Level 3
Maybe im missing something here..
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.for example sarshavs user have root id : 4572232609 and Tomer - team admin have root id - 4572219937 now what should i do to move file from sarshavs home folder to Tomer home folder?
Thanks
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!