Send an email when the roles are changed
To detect 'any' change to the users roles, you can use the following PHP via the condition "Use PHP code"

return (count(array_diff_key($account-&gt;roles, $account_unchanged-&gt;roles)) + count(array_diff_key($account_unchanged-&gt;roles, $account-&gt;roles))) &lt;&gt; 0;


The other PHP answers will not necessarily fire when a user has been 'removed' from a role.