Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Required permissions to start a workflow on a user-record

Posted on by 470

Hello

Which privileges are necessary, that a CRM User can start a Workflow on his own User?

Thank you

Raffi

*This post is locked for comments

  • Verified answer
    Raffaele Sorra Profile Picture
    Raffaele Sorra 470 on at
    RE: Required permissions to start a workflow on a user-record

    Dear all

    Thank you for your support and ideas.

    I discussed the situation again with the customer and we decided to leave the write-permission for the users on the user-entity. It is a small company and it is ok.

    regards

    Raffi

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Required permissions to start a workflow on a user-record

    Users always have access to their own user record.

    Best bet would be to use field level security to prevent people changing this checkbox field (allow read access if they need to do things that depend on it, such as display a view or use a lookup where this checkbox is used as a filter).

    Bear in mind that a background workflow (asynchronous) that is run on-demand will always run as the person who initiated it. (A triggered background workflow runs as the owner.) With a real-time workflow you can alter this behaviour, but by the sound of it you will be doing this on-demand, so I would just have this run as a background (asynchronous) one, not real-time.

    That way, if a user does have privileges that let them run workflows (because they have those rights for other workflows they need to run) and they run this one, it will run in their context and not be able to do things like modify other user records, or get round the field security.

    An on-demand real-time workflow set to run as owner, who is admin, is probably asking for trouble.

    Incidentally, how often are you likely to be changing this checkbox for a given user?

  • Raffaele Sorra Profile Picture
    Raffaele Sorra 470 on at
    RE: Required permissions to start a workflow on a user-record

    I have created an instant-workflow. This runs as Owner of the workflow. The owner is a sysadmin.

    The workflow will set a checkbox active or inactive on the user record.

    I do not want allow the users to change their own user. So I thought, this is a practicable way... What do you think?

  • Suggested answer
    vinod shivoor Profile Picture
    vinod shivoor 1,225 on at
    RE: Required permissions to start a workflow on a user-record

    Hi Raffaele,

    It should have write ,create, update (the operation you performing)  permissions to the entity you working with.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Required permissions to start a workflow on a user-record

    It depends what you are doing in that workflow. First of all if the workflow is going to make changes in the user record. Then the user must have read/write permissions on user entity. Then to run a workflow, the user need permissions to read/append/append to the process, may be create process session permission and execute workflow job as well (under customization tab). If there is any plugin involved then read permission for plugin assembly and there are many more permissions based on your requirement. Hope this helps

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