Ahmad Othman
Ahmad Othman

Reputation: 1315

Is there a way to update permissions for all google drive files at once?

I am trying to change the permissions for all files in a google drive of a certain employee who is leaving the company

[email protected]

to another employee in the same domain

[email protected]

using Drive API, but all I can find - even in the documentation - is to update the permissions for file by file.

So, is there a way that I can change the permissions of the whole google drive at once?

Upvotes: 0

Views: 185

Answers (1)

Vasil Nikolov
Vasil Nikolov

Reputation: 757

Based on your usecase, what you likely wanna do is transfer the files using the Data Transfer API , this would transfer the ownership of the files and leave the previous owner as an Editor, so both users would be able to access the files but the files would have a new owner, and when the previous owner been deleted that would have no effect over the files.

The transfer would produce a new folder under the the new owner "My Drive" with the username of the previous owner.

Upvotes: 1

Related Questions