Gmail API 403 Insufficient Permissions domain global
private static final String[ ] SCOPES = { GmailScopes.GMAIL_LABELS, GmailScopes.GMAIL_COMPOSE,
GmailScopes.GMAIL_INSERT, GmailScopes.GMAIL_MODIFY, GmailScopes.GMAIL_READONLY, GmailScopes.MAIL_GOOGLE_COM };
Using these scopes instead of the default with only GMAIL_LABELS worked for me.
You may also need to delete your previous credentials file after changing permissions. This is usually in $HOME/.credentials/