C# Code to Find Security Roles which use a Specific Privilege


The other day I was debugging a security error and I wanted to find which security roles implemented a specific privilege.


Normally I would use the Privileges Discovery plugin in the Xrm Toolbox however the plugin was not working.


My solution! I wrote the below early bound code to find the security roles that the specific privilege used. Below is the code, please feel free to reuse it as needed.




13 views0 comments

Recent Posts

See All

There are a number of tricks that can help improve the speed of data migrations. I have bullet pointed them below and included links and references at the bottom of the page. Turn off all workflows (i

Power Platform storage seems to get consumed very quickly. I have had to come up with capacity management strategies for numerous clients over the years. I really do wish Microsoft would increase the