【发布时间】:2011-05-02 12:40:14
【问题描述】:
我正在尝试在我的应用程序中使用模拟来连接到用户邮箱并添加/删除约会。
我创建了一个名为“EWSAdmin”的帐户并在其上运行了以下 EMS 命令:
New-ManagementScope -Name:"MyEWSImpersonation" -RecipientRestrictionFilter
{memberofgroup -eq "cn=My User Container,DC=MyDomain,DC=local"}
New-ManagementRoleAssignment -Name:"MyEWSImpersonation" -Role:ApplicationImpersonation
-User:"EWSAdmin@MyDomain.local" -CustomRecipientWriteScope:"MyEWSImpersonation"
为了混淆这个问题,我也将我的作用域称为 EWSImpersonation。
当我尝试连接到用户的邮箱查看约会时(使用第三方 DLL),我收到以下错误:
Throwing GeneralException e=The account does not have permission to
impersonate the requested user.
如果有人能帮我诊断一下,我将不胜感激。
谢谢
尼克
【问题讨论】:
标签: exchange-server exchangewebservices