Currently, using the [deprecated] Google-apps APIs I can delegate email from one user's account to another account:
def gmailSettingsService = new GmailSettingsService(/* credentials... */)
gmailSettingsService.addEmailDelegate(userId, delegatedUserId)
// Email is now delegated, to remove:
gmailSettingsService.deleteEmailDelegate(userId, delegatedUserId)
The first time user A's email is delegated to user B, user B receives a confirmation email. Something to the effect of "So-and-so has granted you access to their email account--accept or deny?"
I would like to suppress this notification and bypass it altogether. I know this is possible with GAM. Does anyone know the appropriate code and settings to do this via the Java Apps-for-your-domain API?
Thanks!