Appsrcipt :: MoveTo() function behaviour regarding permissions

46 Views Asked by At

Since i can not find any documentation on this. Does moveto() function always inherit permissions of the parent folder it was moved ro for the file itself?

Why im asking is, i have a script where moveTo() moves files uploaded by a google form to a shared folder. Me and other 5 ppl + owner have edit permissions to this Folder. For some reason if the script has to move files i did upload (files where only i have permission to edit before i did upload them), the other 5 will get permissions to the file in the folder it was move to, but not me (despite me being the only one having permissions before moveto). On the other hand, if ANYone else upload files i would and also the other 5 ppl. get permissions to this file. So it seems it only omits permissions to files i do upload and only to myself , which makes little sense. Does anyone know a explanation for this behaviour?

Is there an easy way to autoinherit permissions to files after moveto from parentfolder, or would this have to be done manually be extraction permissions into array and applying to the file..

0

There are 0 best solutions below