In Dynamics 365 CRM, we can create On Demand Flows / Workflows, which allows user to execute them manually to perform certain actions as and when required. But what if you do not want specific users to execute these Flows manually?
In such case, follow the steps given below to restrict users from executing Flows manually:
1. Create Custom Security Role.
2. Update Security Role to remove read access for Process entity as shown in below screenshot:
3. Apply the security role to user.
Given below is an example where we have created an On Demand Workflow and Flow for the Account entity:
Once you remove access to process entity, users will get the following pop-up showing access error when they try to execute On Demand Flow/Workflow:
In this way, by following the above steps you can easily restrict users from executing On Demand Flow/Workflow.