I'm writing code in Python that has the task to suspend user and transfer his data to other user.
Unfortunatelly I discovered that that functionality doesn't work.
Acording to documentation of API https://developers.google.com/admin-sdk/data-transfer/v1/reference/transfers/insert
I created in code object which looks like this in python:
{
'oldOwnerUserId': 'XXXXXXXXXXXXXXXXXXXXX',
'newOwnerUserId': 'YYYYYYYYYYYYYYYYYYYYY',
'applicationDataTransfers':
[
{'applicationId': 'UUUUUUU'}
]
}
Where:
- "XXXXXXXXXXXXXXXXXXXXX" is old user ID
- "YYYYYYYYYYYYYYYYYYYYY" is new user ID
- "UUUUUUU" is my Google drive Application ID
then I'm running code:
transfer_service.transfers().insert(body=transfer_data).execute()
While running the script there are no errors. After few seconds I recive email that "Data transfer successful" but when I look into new created directory on Drive I see that it is empty. I tested this several times with the same result.
I'm sure that it isn't problem with:
- Credidentials - I'm able to get ID's of users and ID of google drive
- Users and drive ID's - I have checked them via web panel in above link
I tried to do the same thing via https://admin.google.com and result is the same. What cause that problem?