Avoid email notification of drive permission on drive

Each change in Drive Permission sends a notification. Is there any way to avoid this?

Thanks a lot in advance, Ridgh

+1
source share
3 answers

Whenever you insert a new permission using the Drive API, you can set the optional sendNotificationEmails parameter to false to avoid sending this message:

https://developers.google.com/drive/v2/reference/permissions/insert

+2
source

Here's what works in Java:

 service.permissions().insert(fileId, newPermission).setSendNotificationEmails(false).execute(); 
0
source

Solution for PHP language:

 $this->service->permissions->create($folder->id, $userPermission, array('fields' => 'id', 'sendNotificationEmail' => false)); 
0
source

Source: https://habr.com/ru/post/1497821/


All Articles