How to Restrict RTC action based on an Attribute value
One answer
See Only Owner Can Close WorkItem Advisor You can find more information about how to find users roles in A Custom Condition to Make Attributes Required or Read-Only by Role. For all I know the only way is an advisor as above.
You can read attribute values using API like this: https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/
You can read attribute values using API like this: https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/