Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

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

  • ChrisJC Profile Picture
    ChrisJC 1,540 on at
    RE: Workflow to send email as queue: You do not have sufficient privileges to send email as the selected queue

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

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Workflow to send email as queue: You do not have sufficient privileges to send email as the selected queue

    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.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Workflow to send email as queue: You do not have sufficient privileges to send email as the selected queue

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

  • ChrisJC Profile Picture
    ChrisJC 1,540 on at
    RE: Workflow to send email as queue: You do not have sufficient privileges to send email as the selected queue

    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
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: Workflow to send email as queue: You do not have sufficient privileges to send email as the selected queue

    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

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Workflow to send email as queue: You do not have sufficient privileges to send email as the selected queue

    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

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans