web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

“You cannot send e-mail as the selected user” - Who are “you” and “selected user”?

(0) ShareShare
ReportReport
Posted on by 1,250

Dynamics CRM 2011 on premise.

I have a process that is triggered on close of a case/incident and it sends an email from the owner of the case.

The process is owned by Mick. Andy is the owner of a case and closes it.

A job runs and is stuck at Waiting. There's a warning in the job saying

"You cannot send e-mail as the selected user. The selected user has not allowed this or you do not have sufficient privileges to do so. Contact your system administrator for assistance."

With the following stack trace:

Plugin Trace:

[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
[SendEmailStep7]



Error Message:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: User does not have send-as privilege.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147203059</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>User does not have send-as privilege.</Message>
<Timestamp>2013-09-27T13:55:42.6567419Z</Timestamp>
<InnerFault>
<ErrorCode>-2147203059</ErrorCode>
<ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>User does not have send-as privilege.</Message>
<Timestamp>2013-09-27T13:55:42.6567419Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText>[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
[SendEmailStep7]
</TraceText>
</OrganizationServiceFault>
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Crm.Workflow.Services.SendEmailActivityService.<>c__DisplayClass1.<SendEmailInternal>b__0(IOrganizationService sdkService)
at Microsoft.Crm.Workflow.Services.ActivityServiceBase.ExecuteInTransactedContext(ActivityDelegate activityDelegate)
at Microsoft.Crm.Workflow.Services.SendEmailActivityService.ExecuteInternal(ActivityContext executionContext, SendEmail sendEmail)
at Microsoft.Crm.Workflow.Services.SendEmailActivityService.Execute(ActivityContext executionContext, SendEmail sendEmail)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

It would have been really helpful if Microsoft had used the words "Mick" and "Andy", but naturally they used the ambiguous "you" and "selected user" instead.

So, who are "you" and "selected user"?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Without seeing the workflow and knowing the full scenario, it's difficult to be sure - but if your workflow is running as an automatic workflow (on update etc.) then 'you' and 'user' is most likely to be Mick - so presumably the workflow is trying to send an email from someone other than 'Mick' (perhaps Andy?) but Mick doesn't have the send on behalf of another user privilege.

    If the workflow is being started manually by an interactive user (Run Workflow), then 'You' and 'user' will be the user who is starting the workflow.

    I think that's right! I did a blog post on a related note about the various identieis with Workflows and Plugins that might give you some more information - develop1.net/.../User-Impersonation-in-Plugins-Workflow-and-Dialogs.aspx

    Scott

  • Verified answer
    cja_intgrtch Profile Picture
    1,250 on at

    Mick is "you".

    Andy is "selected user".

    Fixed by Andy going to File > Options in CRM, then clicking the E-mail tab and ticking the top box, "Allow other Microsoft Dynamics CRM users to send e-mail on your behalf.", followed by OK.

    I didn't find a way for an administrator to enable this option on behalf of the user. So if there are many users this would be expensive.

    Sources:  

    My experimentation  

    social.microsoft.com/.../you-cannot-send-email-as-the-selected-user-who-are-you-and-selected-user

  • Suggested answer
    Community Member Profile Picture
    on at

    I had this issue, and I used the User Settings Utility from codeplex to update all users' permissions to allow emails sent on their behalf. This allows the system admin to run the workflow, and have the permissions to send the email on the users' behalf.

    crm2011usersettings.codeplex.com

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans