add user and group as sudoers code example
Example 1: add user to sudoers
usermod -aG sudo username
Example 2: show users in sudo group
grep -Po '^sudo.+:\K.*$' /etc/group
usermod -aG sudo username
grep -Po '^sudo.+:\K.*$' /etc/group