sendNotificationEmail doesn't work with service account (Drive API v3)

我与影子孤独终老i 提交于 2021-02-08 09:36:06

问题


I can't send an email notification when I add permission in a file with the drive API v3, before May, it works fine but since 14/05/2020 doesn't send an email with node v10.16.3.

I do this to authenticate:

enter image description here

and then when I add permission:

enter image description here

Response from drive service

enter image description here


回答1:


This issue has been reported on Google's Public Issue tracker

  • Basically, Service acocunts seemed temporarily not be able to send notification emails on their own behalf.
  • The notification emails are however sent and received as expected if you use impersonation.
  • This issue seemed to be fixed, but if it reappeared again, you should mention it in a comment of the issue.
  • In the meantime, use impersonation as a workaround.
  • Impersonation is in general a good practice when using service accounts.


来源:https://stackoverflow.com/questions/62025965/sendnotificationemail-doesnt-work-with-service-account-drive-api-v3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!