Usually you do it like the following.
To assign a primary group to an user:
$ usermod -g primarygroupname username
To assign secondary groups to an user:
$ usermod -G secondarygroupname username
From man-page:
...
-g (primary group assigned to the users)
-G (Other groups the user belongs to)
...