userActions->userUpdate() and userActions->userAdd() gets called too early
Above mentioned methods get called after the user has been added/modified, but before the extra roles and extra groups are saved.
To quickly test, add the following code to userActions-
$user = $this->user;
$userGroups = $user->
$userRoles = $user->
Now modify the extra groups or roles of a user.