I have a scenario in which access to a record depends on a field of said record. In Sugar 12.0, I've created a BPM that triggers upon creation of update (if that field changes).
I am able to add the "global" team if condition A is met, and a more restricted team if condition B is met.
I know I can either add a team of force a list of teams.
The issue is that in several cases, records could have manually-added teams, which would be lost if I force the restricted team.
Any idea? My current lead is to create a hook that just removes the global team if the record is updated with the matching condition but that's not very elegant :)
Thanks for your help!