0

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!

4

1 回答 1

1

电子邮件设置 API未被弃用。您可能将它与弃用的Provisioning API(被Admin SDK Directory API取代)混淆了。目前没有替代电子邮件设置 API,它已经存在了一段时间,但仍受支持。

为了回答您的主要问题,电子邮件批准流程仅在用户从其 Gmail 网络界面设置启动委派时执行。如果通过 API执行委托,则立即获得批准。

但是,如果两个帐户之间存在现有或过期的用户发起的委托尝试,则必须在通过 API 执行委托之前在用户界面中取消它。

于 2013-11-07T18:45:33.310 回答