To change a user's primary group in Linux:
usermod -g new_group user_name- terminate all user_name's active sessions
To test your change login back,changes run id and look at the value of gid=
If the command runs without errors but the gid doesn'thasn't change you've missed the bold part of step 2.