Anyone had experience of assigning a user group when saving or registering a user via a plugin?
Tried various combinations of
$user->group = 1,
$user->group = ,
$user->setGroups($group) (where $group is the group I want to assign the user to) but whilst the user is being saved fine the user group is not assigned.
Any thoughts appreciated!