Groups
Groups
Sign in
Groups
Groups
Google Apps Script Community
Conversations
Labels
About
Send feedback
Help
Difference between gmail.insert & gmail.compose
27 views
Skip to first unread message
Rob Reid
unread,
Dec 18, 2023, 12:23:39 PM
12/18/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
I can't find any documentation explaining the differences between these scopes:
-
https://www.googleapis.com/auth/gmail.insert
-
https://www.googleapis.com/auth/gmail.compose
The following states that
insert
can "
Add emails into your Gmail mailbox" while
compose
can "
Manage drafts and send emails".
https://developers.google.com/identity/protocols/oauth2/scopes
I can't find anything that says how to "add email". I assumed that meant compose a draft without being able to send it. But
GmailApp.createDraft
fails, telling me it needs these:
https://www.googleapis.com/auth/gmail.compose
||
https://www.googleapis.com/auth/gmail.modify
||
https://mail.google.com/
||
https://www.googleapis.com/auth/gmail.addons.current.action.compose
Reply all
Reply to author
Forward
0 new messages