Reference

user.changeRole:after

$newUser, $oldUser

Example

/site/config/config.php
return [
    'hooks' => [
        'user.changeRole:after' => function ($newUser, $oldUser) {
            // your code goes here
        }
    ]
]