What exactly do you call a user role? When it changes, what exactly happens except for adding/removing the user from groups? Do specific properties of the user account get changed? If so, which exactly?
This is a manual trigger today that the "new" manager submits via our ticket system (unfortunately).
In your initial request, you mentioned that after a role update a user is added to new groups. We understand the part about removing from current groups (including the part regarding the group that contains groups for the previous user role), but what about the groups for the new role? How do you indicate the a specific user role requires the user to be a member of a specific group(s)?
We receive a request via our ticket system with a copy person (similar to our Onboarding process) and then use the script here to "Copy" there group membership.
Really the piece we're missing is the ability to copy the group membership of a user object and then "paste" those into a group object.