Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

setting up permissions by "Client Status" field on Client entity

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

like image 311
user1231231412 Avatar asked Mar 16 '26 01:03

user1231231412


1 Answers

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, ...

like image 77
ccellar Avatar answered Mar 17 '26 14:03

ccellar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!