diff --git a/add_to_team_drive.py b/add_to_team_drive.py index 222cbe1b1..087c5a5f4 100644 --- a/add_to_team_drive.py +++ b/add_to_team_drive.py @@ -62,7 +62,7 @@ for i in aa: ce = json.loads(open(i, 'r').read())['client_email'] batch.add(drive.permissions().create(fileId=did, supportsAllDrives=True, body={ - "role": "fileOrganizer", + "role": "organizer", "type": "user", "emailAddress": ce })) @@ -74,4 +74,4 @@ print('Complete.') hours, rem = divmod((time.time() - stt), 3600) minutes, sec = divmod(rem, 60) -print("Elapsed Time:\n{:0>2}:{:0>2}:{:05.2f}".format(int(hours), int(minutes), sec)) \ No newline at end of file +print("Elapsed Time:\n{:0>2}:{:0>2}:{:05.2f}".format(int(hours), int(minutes), sec))