0

I want to remove organizer and fileOrganizer from the shared drive. But by using the following it says deleted but the authorization of the shared drive doesn't work.

folder.removeEditor(email);
folder.removeViewer(email);

function folderOps(){ 
    var folder = DriveApp.getFolderById('0AEssQ4rUk9PVA'),
    parents = folder.getParents();
    folder.addEditor('testuser123@test.com');
    while( parents.hasNext() )
    parents.next().addFolder(folder);
    folder.removeEditor('testuser567@test.com');
}

Any opinion on this will be very helpful.

I want to delete the organizer or fileorganizer by using emailaddress from the shared drive, but folder.removeEditor(email); does works.

Leonardo
  • 2,439
  • 33
  • 17
  • 31
MaruU
  • 1
  • 1

0 Answers0