This Google Apps Script is designed to automate the transfer of Google Drive file ownership from one user to another. The script reads source and destination user email addresses from a Google Sheet, retrieves files owned by the source user, and transfers ownership to the destination user. The process is logged in a separate "Log" sheet.
- A function to transfer ownership of all files owned by a specific user.
- Logging to track the status of each ownership transfer attempt.
- Click to copy this sheet file. Open the file.
- Ensure that both source and destination users have the necessary permissions to transfer files.The source user IDs should be in Column A starting from Row 2, and destination user IDs should be in Column B starting from Row 2.
- Look for the Ownership Transfer menu and select Transfer File Ownership. - First time you run the script you will need to authenticate with a Google Workspace account with super admin privileges.