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)

User does not have the privilege to act on behalf another user

(0) ShareShare
ReportReport
Posted on by

hello,

when I assign a task to another user I get an error, the process stucks on this system job "SendEmailWhenTaskAssigned"

and here is the details of the error :

"Workflow paused due to error: Unhandled Exception: Microsoft.Crm.CrmException: User does not have the privilege to act on behalf another user.

at Microsoft.Crm.BusinessEntities.SecurityLibrary.VerifyUser(Guid user, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.ExecutionContext.SetCaller(Guid callerId, Boolean setCallerLanguage, Boolean verifyUser)
at Microsoft.Crm.BusinessEntities.ExecutionContext.OnBeginRequest(Guid userId, Boolean startTransaction, IsolationLevel isolationLevel, ExecutionOperationContext operationContext, CallerOriginToken originToken)
at Microsoft.Crm.Workflow.WorkflowTransactionContext.OnBeginRequest()
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) ".

I am admin on crm and " act on behlaf of onther user " option is enabled.

Thank You 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ManoVerse Profile Picture
    760 Super User 2026 Season 1 on at

    Error comes when a user does not allow the other user to send email on his behalf , so you need to allow with user you want to send email

    File ->option -> Email -> check the below option -> click ok

  • Community Member Profile Picture
    on at

    It's already checked and it's not working

  • Royal King Profile Picture
    27,686 on at

    Does user Role has Act on behalf privilege ?

  • Community Member Profile Picture
    on at

    yes he has it.

  • Royal King Profile Picture
    27,686 on at

    Does workflow runs on logged in user or some service account?  If  workflow runs under common user account may be that account missing "Act on behalf" privilege.

  • Community Member Profile Picture
    on at

    i checked CRM Asynchronous Processing Service, it runs under logged in user ( admin user)  who has " act on behalf" and member of PrivUserGroup.

    Mohamad

  • Community Member Profile Picture
    on at

    Check to see if the user is assign to any Teams and Security Roles.

    Make sure that user only has one Security Role and  one Team.

    Otherwise CRM sometime get confused in which Security Roles or team to use.

    -damon

  • Community Member Profile Picture
    on at

    Thank you all for your answers.I am close to find the solution.

    the admin user who runs Asynchronous Processing Service can successfully  run the process which sends the email to (assigned to )user.

    the problem still persist to other users.

    any ideas ??

  • Suggested answer
    Community Member Profile Picture
    on at

    If this hasn't been resolved already, I'm guessing the delegate permissions would also need to be set at the Exchange level for the mailbox?

  • Community Member Profile Picture
    on at

    I would think twice about configuring CRM Service Accounts to be CRM users as well:

    Microsoft Dynamics 365 services and application pool (CRMAppPool) identity accounts must not be configured as a Microsoft Dynamics 365 user. Doing so can cause authentication issues and unexpected behavior in the application for all Microsoft Dynamics 365 users:

    https://technet.microsoft.com/en-us/library/hh699825.aspx#BKMK_AsyncPerms

    https://technet.microsoft.com/en-us/library/hh699825.aspx

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans