From c6898e2195849c6528166ebdab6bc70d4201d076 Mon Sep 17 00:00:00 2001 From: RAHUL112KAPOOR <68430011+RAHUL112KAPOOR@users.noreply.github.com> Date: Sat, 24 Jul 2021 20:16:42 +0530 Subject: [PATCH] Add service accounts to td directly as a manager --- add_to_team_drive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))