We have a few "Clients" marked as "Employee" in our CRM 2011 system.
How would we create a security role to only allow certain users to access client records that have the above criteria?
Thanks, Jon
This is not possible with the built-in security system. The security roles grant access based on record level, not on value level.
It should be possible to create a plugin, which handles the PreRetrieve message for this entity. This plugin could check your custom criteria and if the user is not allowed to open the record, you could throw an exception to cancel the operation.
Keep in mind that, for a 100% solution, you would also have to handle RetrieveMultiple, Execute, ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With