Thursday 19 August 2021

Set security role permissions on a BPF - Dynamics CRM

 Sometimes there are cases where you might need to restrict certain users from seeing or using particular Business Process Flow in Dynamics CRM. I know that this is a quite simple process, but you will as much surprised as I was when you notice that this is not actually working the way most of the articles in the network are saying.

We are starting with selecting our business process flow, we all know they are located in Settings > Customizations > Customize the System > Processes

image

You will notice the button on the top of the form named "Enable Security Roles" dah......, but here comes the tricky part! In Dynamics 365, this is how it looked like when clicking on the button.

image

Straight forward, we select the desired roles and click................... Wait, what! We don't have any button to confirm the selected roles, so we hit the red X, eventually, Save the changes in the BPF and Publish All Customization........, and nothing will happen! People will still be able to see and use the above BPF that we are trying to hide so badly.

In Dynamics 365 for Business Process Flows which already existed in Dynamics CRM 2016, when clicking the Enable Security Roles button, it opens an incorrect window instead of displaying the Modal/Dialog box which allows us to select the security roles. The issue seems to exist for new and old Business Process Flows.

This is actually how the Permissions window should look like

image

I know, looks quite different and very promising. This time we select Enable for the selected security roles, select the desired security roles, CLICK ok, and then the rest (Save the changes in the BPF and Publish All Customization), but how we actually can get to this permissions window?

There are two workarounds:

  • You can use the direct URL to get to Security Role configuration dialog.

https://.crm.dynamics.com/tools/dialogs/RoleAssignment.aspx?dType=1&oid=%7b%7d

Replace , and  with your specific values.

  • Navigate to Settings > Security > Security Roles.

Open the security role you would like to configure.

Click Business Process Flows tab.

Select appropriate permission for each Business Process Flow.

image

Keep in mind that you might not be able to always see all of your customer workflows here. In this case, move to Solution 1.

Hope this will help you one day.

No comments:

Post a Comment

Use Word templates to create standardized documents

  Use Word templates to create standardized documents In this article Step 1: Create a Word template Step 2: Enable the Developer tab Import...