How to create a user with group in image

Hello, I’d like to know how to create a user with a group, and that group does not have that root privileges, just a normal user who can only access their own home directory

/home/user1

Example:
USER user1:group1

Thanks