Hello
@Darina Hendrychova,
Unfortunately, for a digital worker (using a service account) to work on behalf of another user in GMail you have to have domain-wide delegation. Please refer to the linked Google documentation. The
Delegated User entry is the way you let Google know which user the service account will be acting on behalf of.
https://developers.google.com/identity/protocols/oauth2/service-account#delegatingauthorityCheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
Original Message:
Sent: 06-08-2022 16:11
From: Darina Hendrychova
Subject: Gmail API 1.2 a Google Authentication
Hi
We have major issue regarding e-mail automation and we got stuck and are not able to move forward. We are trying to extract data from company Gmail.
Our task is easy and we want to download email information and email attachmant via Gmail API. To do so, we found packages Gmail API 1.1.2 and Google Cloud Authentication in digital exchange. We have service account and private key to this account to be able to generate token for authorization.
However our biggest problem is that company security team is not able to provide the service account with domain wide authorization, what causes that we can not access data. In package „Google Cloud Authentication" is optional property Delegated User, do not you know if we can use it as workaround?
Do not you have any experience with such a task?
Thank you very much
------------------------------
Darina Hendrychova
consultant
EY
Europe/Podgorica
------------------------------