OK, I've looked everywhere for the answer for this and don't seem to be able to find it.
We are trying to get our Google Drive organised so that the right people get access to the right things without a lot of explicit sharing. We have a top-level folder called "Company" with sub-folders for "Admin", "Finance", "HR", "Engineering" and so on. The sub-folders have more restrictive permissions than the top-level one.
We've now got more or less everything in the right place, and mostly this works. The problem is where individual files or folders have their own permissions – they then don't seem to inherit the permissions from their folders. How do we reset the permissions for everything in each part of the hierarchy so they are the same as the parent folder?
On Windows Server or Mac OS X there is a clear distinction between "inherited" and "explicit" permissions for an item, and it is easy to remove the "explicit" permissions for all the items in a hierarchy. Where is this for GD?
Best Answer
I installed Vidar’s script and works very well for files, but wouldn't reset permissions on folders. So, I changed a little bit the code to make the folders also inherite the permissions from their upper folder.
Two important disclaimers:
I only changed the
doResetPermissions
function, but I paste all the code for simplicity reasons.