cancel
Showing results for 
Search instead for 
Did you mean: 

Gmail API 1.2 a Google Authentication

DarinaHendrycho
Level 2

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
------------------------------

2 REPLIES 2

ewilson
Staff
Staff
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#delegatingauthority

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi,

thank you very much for your reply. 
Do you recommend different effective approach to extract data from company gmail? MAPix,  IMAP or POP3

Thank you

------------------------------
Darina Hendrychova
consultant
EY
Europe/Podgorica
------------------------------