Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

Missing Impersonation Role when configuring Email Server Profile with supplied credentials

Posted on by 5

Hello

I'm experiencing an odd issue when attempting to configure a mailbox in MS Dynamics.  We're using version Dynamics 365 8.2.10.24.  Here is the behaviour i see:

- I attempt to configure an email server profile for my mailbox
- I select Server type "Exhange Server", enter the locations then select "Credentials Specified in Email Server Profile" for authentication
- I then enter the email address, username and password it should use

Result:
- I attempt to configure a user mailbox for that same email address to use that Email Service Profile i receive this Impersonation error:

"ActivityId: 19bf8511-92ad-4e74-baf0-b1569ada65ad
>Error : Microsoft.Exchange.WebServices.Data.ServiceResponseException: The account does not have permission to impersonate the requested user.
   at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ProcessWebException(WebException webException)
   at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
   at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request)
   at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
   at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalCreateItems(IEnumerable`1 items, FolderId parentFolderId, Nullable`1 messageDisposition, Nullable`1 sendInvitationsMode, ServiceErrorHandling errorHandling)
   at Microsoft.Exchange.WebServices.Data.Item.InternalCreate(FolderId parentFolderId, Nullable`1 messageDisposition, Nullable`1 sendInvitationsMode)
   at Microsoft.Exchange.WebServic..."

At this point I wanted to test a different setup:
-I instead set the Email Service Profile authentication settings to: Credentials Specified by a user or Queue
-I configured the user email box with the email address and supply the same user name and password as before
-I am then able to successfully test and enable the user email box

My question is:
Why is a missing impersonation role error encountered when supplying the email address, username and password in the Email Server Profile but not when supplied in the user email box.

  • RE: Missing Impersonation Role when configuring Email Server Profile with supplied credentials

    Thanks for the reply Adrian however this doesn't really answer my question.  

    This is what I'm trying to determine:

    Why does my user account need to have impersonation permissions for the exchange mailbox when I supply the credentials in the Email Server Profile but not when supplied in a User Mailbox?

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Missing Impersonation Role when configuring Email Server Profile with supplied credentials

    Hi Nickolas Boucher,

    This error can appear if the user account specified in the Email Server Profile record does not have impersonation permissions for the Exchange mailbox. Make sure the user account provided in the Email Server Profile record has impersonation permissions to each associated Exchange mailbox.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans