Reputation: 574
When I create a file
drive_api = build('drive', 'v3', credentials=credentials)
ss_drive = drive_api.files().create(body=file_metadata).execute()
I'd like to write it on behalf of different owner. Or change the owner afterwards.
'owners': [{'displayName': '1@',
'emailAddress': '1@',
'kind': 'drive#user',
'me': True,
'permissionId': '1'}],
Is it possible?
Upvotes: 0
Views: 185
Reputation: 2770
For the sake of documentation.
You can create files as other users with Domain Wide Delegation.
You can create the files normally then update the permissions to have another user as the OWNER.
Upvotes: 1