oauth 2.0 - Gmail API read metadata only scope -


i using service account , domain wide delegation access email accounts under client's domain read-only scope https://www.googleapis.com/auth/gmail.readonly in message get request use format option "metadata" fields='payload/headers' returns email headers not content of message.

is there way restrict app access metadata , not content of emails? ensure application can not read sensitive email content information , have access metadata only.

thanks!

set scope https://www.googleapis.com/auth/gmail.metadata. see https://developers.google.com/gmail/api/auth/scopes

https://www.googleapis.com/auth/gmail.metadata
read resources metadata including labels, history records, , email message headers, not message body or attachments


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -