Reputation: 1315
I am trying to change the permissions for all files in a google drive of a certain employee who is leaving the company
to another employee in the same domain
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
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