Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
mooreppj
6 years agoExplorer | Level 4
Using API to copy a file to a folder not accessible to the user copying file
Hello,
Strange question here: I am working on an excel timesheet application for my company. Having searched a bit I can't seem to find anything on this topic and would like to get some feedback o...
Greg-DB
Dropbox Community Moderator
6 years agoUnfortunately, Dropbox and the Dropbox API don't really offer something like this. Dropbox generally doesn't distinguish between the ability to add a new file and otherwise being able to write (e.g., update or delete) in its access controls.
Some things that do come to mind as potential solutions though:
- If the manager and all of the employees are members of the same Dropbox Business team, you could register a "Dropbox Business API" app with the "Team member file access" permission and use the "member file access" feature to administratively move files out of the employees' accounts and into a folder they don't have access to. I also recommend checking out the Namespace Guide and Content Access Guide for more information on how files/folders and access controls are structured. This blog post may also be helpful.
- You could use the /2/files/get_temporary_upload_link endpoint to get temporary upload links that could be used to upload files to a location that the employees' accounts don't actually have access to. The actual /2/files/get_temporary_upload_link calls would need to be made by an access token for an account that does have access to the destination, e.g., the manager's account, though.
- You could use file requests to collect the files from the employees. You can use the /2/file_requests/create endpoint from the manager's account to programmatically create file requests if you want different ones, or just manually make one to always use. Either way, the actual employee submissions to the file request(s) would need to be done manually though.
mooreppj
6 years agoExplorer | Level 4
Thanks for the reply Greg, those are some interesting solutions. I'll look into them today!
Have a great day!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!