Yarin Feigenbaum
Yarin Feigenbaum

Reputation: 51

Apps Script: transfer owner of standalone script

I have a standalone Apps Script (https://developers.google.com/apps-script/guides/standalone) that I need to transfer to someone else to manage. I don't see an option to share the script and to transfer ownership. Does anyone know how I should go about doing that?

Upvotes: 1

Views: 126

Answers (2)

Serge Hendrickx
Serge Hendrickx

Reputation: 1416

You can share the script in the top-right corner using the Share button. After you've shared it you (as the owner) can make someone else owner.

example

Upvotes: 1

Juan Diego Antezana
Juan Diego Antezana

Reputation: 912

You could make a copy of the standalone script on your own drive and then change the ownership

    function copyScript(){
    var scriptCopy = DriveApp.getFileById("yourScriptID").makeCopy().setName('ScriptCopyName');
    DriveApp.getFileById(scriptCopy.getId()).setOwner('emailAddress')
}

Upvotes: 0

Related Questions