To disable bulk edit for a particular security role for all entities, we simply modify the Bulk Edit privilege under Miscellaneous Privilege on the Business Management Team of the security role.
When we want to disable access to Bulk Edit on a particular entity there are a couple of choices.
var formType = Xrm.Page.ui.getFormType();
if (formType == FORM_TYPE_BULKEDIT)
The second alternative is to modify the Bulk Edit button, so that it only shows based on a particular security or privilege. We can easily do this using Ribbon Workbench. All that is necessary is to add to the Bulk Edit command Display or Enable rules, so that the button will only show up when the user that is planning to do Bulk Edit has the appropriate privileges. The following screenshots demonstrates this:
Note that this process will have to be done on every entity individually (either option 1 or option 2) that you would like to customize the Bulk Edit permissions.