Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

On Demand workflows throw error 'User does not have the privilege to act on behalf another user'

Posted on by 680

Hello team,

   we have a service account under which all our workflows run. The user is system admin in our crm system. The async services also run under the same user. When we logged in with different user(also an admin) to run on demand workflow it throws the error 'User does not have the privilege to act on behalf another user'. But all the other workflows which run in background which also under the same user as of async service do not throw any error and succeeds. Are we missing something?

*This post is locked for comments

  • Suggested answer
    PS Profile Picture
    PS 23,577 on at
    RE: On Demand workflows throw error 'User does not have the privilege to act on behalf another user'

    It seems this workflow is sending out an email

    You can try one of the following:

    1. In the workflow go to set properties of email and change 'from ' to 'owner/modifie by/created by' and then try

    2. Log in to your service account and go to email tab and select ' allow other users to send email on my behalf' as yes

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: On Demand workflows throw error 'User does not have the privilege to act on behalf another user'

    Hi Karthi,

    A workflow can only be activated or deactivated by the workflow owner or by someone with the ‘Act on Behalf of Another User’ privilege such as the system administrator.  The reason for this is that a malicious user could modify someone’s workflow without them being aware of the change. You can reassign a workflow you own by changing the owner. This field is on the ‘Administration’ tab. If you are not the system administrator and you need to edit a workflow that has to owned by another user, you need them to deactivate it and assign it to you. After you finish editing the workflow, you can to assign it back to them and they will need to activate it.

  • Karthik Dayala Profile Picture
    Karthik Dayala 680 on at
    RE: On Demand workflows throw error 'User does not have the privilege to act on behalf another user'

    Hello yes I have checked for all the users and they all have it. I have refererred article before posting here. Still no luck. :(

  • Suggested answer
    Andreas Cieslik Profile Picture
    Andreas Cieslik 9,265 on at
    RE: On Demand workflows throw error 'User does not have the privilege to act on behalf another user'

    Have you checked the user settings if they all have the "Act on Behalf..." permission?

    Also check this article:

    community.dynamics.com/.../138603

    maybe you have similar issue with email send on behalf?

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