I want use script editor to give access to my google docs:
function myFunction() { DriveApp.getFileById("doc_id").addEditor("email");