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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Workflow to send email as queue: You do not have sufficient privileges to send email as the selected queue

(1) ShareShare
ReportReport
Posted on by 1,540

I have an async workflow owned by me (Sys Admin) that sends a notification email from a queue (also owned by me).

When the email is triggered by another user we're getting this error: You do not have sufficient privileges to send email as the selected queue

I have checked send on behalf of security settings and the user has this. What other settings should I change on the security role or on the queue?

The Sys Job message details:

User does not have send-as privilege for.

Plugin Trace:

[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
[SendEmailStep10: Notify



Error Message:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: User does not have send-as privilege for.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ActivityId>df4a2b52-76c2-4754-a2a9-20136dfe5bb4</ActivityId>
  <ErrorCode>-2147203057</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiExceptionSourceKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Crm.Common.ObjectModel.EmailService</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiOriginalExceptionKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmException: User does not have send-as privilege for. ---&gt; Microsoft.Crm.CrmException: User does not have send-as privilege for.
   at Microsoft.Crm.ObjectModel.ObjectModelSendManager.CheckSendOnBehalfOf(ActivityParty sender)
   at Microsoft.Crm.Common.ObjectModel.EmailService.&lt;&gt;c__DisplayClass25_0.&lt;Send&gt;b__0()
   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)
   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass2_1.&lt;Execute&gt;b__0()</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiStepKey</d2p1:key>
      <d2p1:value xmlns:d4p1="schemas.microsoft.com/.../Serialization" i:type="d4p1:guid">05cdbb1b-ea3e-db11-86a7-000a3a5473e8</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiDepthKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:int">3</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiActivityIdKey</d2p1:key>
      <d2p1:value xmlns:d4p1="schemas.microsoft.com/.../Serialization" i:type="d4p1:guid">df4a2b52-76c2-4754-a2a9-20136dfe5bb4</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiStepSolutionNameKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>User does not have send-as privilege for.</Message>
  <Timestamp>2018-08-30T09:31:45.4150317Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault>
    <ActivityId>df4a2b52-76c2-4754-a2a9-20136dfe5bb4</ActivityId>
    <ErrorCode>-2147203057</ErrorCode>
    <ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
    <Message>User does not have send-as privilege for.</Message>
    <Timestamp>2018-08-30T09:31:45.4150317Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault i:nil="true" />
    <OriginalException i:nil="true" />
    <TraceText i:nil="true" />
  </InnerFault>
  <OriginalException i:nil="true" />
  <TraceText>[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
[SendEmailStep10: Notify]
</TraceText>
</OrganizationServiceFault>
   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)

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Dynamics365 Rocker Profile Picture
    7,755 on at

    Please follow steps as mentioned in below links:

    worldofitguy.com/.../user-does-not-have-send-as-privilege-for-crm-2015

    community.dynamics.com/.../218619

    Apart from above, Please also check privilege on queue of respective security role. Thanks

  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at

    Hi ,

    It looks like either that user dont have send as privilege or may be don't have send on behalf privilege.

    Please try for above solution:

    www.mscrm-addons.com/.../user-does-not-have-send-as-privilege-to-send-emails-with-documentscorepack

    worldofitguy.com/.../user-does-not-have-send-as-privilege-for-crm-2015

  • ChrisJC Profile Picture
    1,540 on at

    Thanks for the replies. I had seen those articles but it doesn't look like they apply here.

    I have checked the users permissions and they have the 'Send email as another user' permission.

    I don't believe security roles can be applied to queues, only teams and users.

    Does that mean I need to enable the option to allow other users to send email on my behalf as I'm the owner of the queue?

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Yes I guess your understanding is correct , please try with this .

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    Ensure that the users have read permissiosn for teh Quques. Check this article for more details- crmtipoftheday.com/.../recommended-security-for-queues

    Hope this helps.

  • ChrisJC Profile Picture
    1,540 on at

    That was it, many thanks. The users couldn't see the queues they were sending as! Sounds obvious in retrospect.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans