Occasionally, when working with .NET and the Dynamics CRM SDK, you’ll find a need to see if the current user has a particular security role. This is helpful before performing any operation that may result in a security exception. Here is a small method to handle that call: public bool UserHasSecurityRole(OrganizationService service, string securityRoleName) { […]
↧