Hi Partner,
To control who can access restricted or sensitive data and resources and what they can do with them, assign users to security roles.
If you want to control the security role of the record by the value of the field, perhaps you need to do some customization.
Please refer to the following thread:
--Using plugin to achieve it.
Alternatively, you could consider that using
business unit to achieve it.
Business units, security roles, and users are linked together in a way that conforms to the role-based security model. Use business units together with security roles to control data access so people see just the information they need to do their jobs.
Users can securely access data in their own business unit, but they can't access data in other business units unless they're assigned a security role from that business unit.
--Creating different business units.
--Putting users into different business units, as well as setting the User security role to allow Business Unit visibility of Cases.
What is the 'case file' you refer to in your second point?
I hope you can mark my answer verified if it is helpful! If you have any questions, please feel free to contact me.
Regards,
Leah