add user with group id code example
Example 1: add user to group
usermod -a -G examplegroup exampleusername
Example 2: Adding users to groups
sudo usermod -a -G <groupname> <username>
e.g.
sudo usermod -a -G wonderland alice
usermod -a -G examplegroup exampleusername
sudo usermod -a -G <groupname> <username>
e.g.
sudo usermod -a -G wonderland alice