Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to restrict an on-demand workflow to group of users or system admins

Posted on by 1,680

Hello,

We have a requirement for our administrative purposes to change status outside the defined process(on demand) for group of users or system admins. I tried to implement user scope workflows, but scope is limited to the automated process and not the on demand process. Kindly an experts can input their ideas for this. 

Thanks

Dw

*This post is locked for comments

  • RE: How to restrict an on-demand workflow to group of users or system admins

    [quote user="Scott Durow"]

    Hi  - You could always use security by obscurity by hiding the standard run workflow button and add custom buttons?

    [/quote]But if you follow this approach you are preventing any other given Workflow that can be run without the protecting logic. Am I wrong?

  • RE: How to restrict an on-demand workflow to group of users or system admins

    [quote user="siba_sankar"]

    HI, You can use check condition in your process that modified by is not you or specific team, then stop workflow. it helps me.

    [/quote]Hi,

    i have tried to do this in CRM 365 online with no luck, the closest I can get is to do a compare on:

    Owning User (User Name): User Name does not equal [Modified By (User): User Name]

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to restrict an on-demand workflow to group of users or system admins

    HI, You can use check condition in your process that modified by is not you or specific team, then stop workflow. it helps me.

  • epark06 Profile Picture
    epark06 1,320 on at
    RE: How to restrict an on-demand workflow to group of users or system admins

    [quote user="LearningCRM"]

    I'd like to know if there was a workaround for this, that didn't require changing the security roles of all users or adding custom buttons. I need to restrict the on-demand workflow to a certain group (from multiple BUs). Would it be possible to add a "Stop Workflow" step if user updating certain field does not equal x,y,z?

    [/quote]

    Never mind, I just added the users to the field level security profile.

  • epark06 Profile Picture
    epark06 1,320 on at
    RE: How to restrict an on-demand workflow to group of users or system admins

    I'd like to know if there was a workaround for this, that didn't require changing the security roles of all users or adding custom buttons. I need to restrict the on-demand workflow to a certain group (from multiple BUs). Would it be possible to add a "Stop Workflow" step if user updating certain field does not equal x,y,z?

  • Suggested answer
    ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: How to restrict an on-demand workflow to group of users or system admins

    Hi  - You could always use security by obscurity by hiding the standard run workflow button and add custom buttons?

  • Drew Inc. Profile Picture
    Drew Inc. 1,680 on at
    RE: How to restrict an on-demand workflow to group of users or system admins

    Ah! Isn't there any easy solution for this? Thanks for the help Scott.

  • Suggested answer
    ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: How to restrict an on-demand workflow to group of users or system admins

    Hi,

    Ok - got it - since CRM security is addative and not restrictive - you'll need to restrict access to all workflows first and then give access accordingly. You can do this by normal user roles only having 'user' access to processes and then sharing the workflows with Business unit teams or other teams that need access.

    Hope this helps!

  • Drew Inc. Profile Picture
    Drew Inc. 1,680 on at
    RE: How to restrict an on-demand workflow to group of users or system admins

    Well sorry for the confusion. I just want give access to an on-demand workflow for group of people. But other workflows should work as is for all the users.

    Thanks

    Dw

  • Suggested answer
    ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: How to restrict an on-demand workflow to group of users or system admins

    You can give users permissions to workflows (Processes) in the same way as other records - so if you gave a user only BU access to Process they will only see workflows in their own business unit.

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans