Automatic workflow transition based on modifier’s user group

Good morning,

I want to set-up an automatic state transition that that only triggers if specific users (based on their role in the organisation) modify an object.

I know that I can achieve this easily by specifying the condition "Last modified by" and then manually selecting individual users.

However, this is not practical as users are constantly moving around the organisation (changing roles) and they leave or new users come, so quite quickly this becomes difficult to manage.

Is there another way to achieve the automatic state transition trigger based on the role of Last Modified? (e.g. Last modified by the users within a User Group) - this doesn't seem to exist.

Thank you.

Patrick.