Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How to Find UID, GID, and any groups I belong to ?
The command that you must use for you is:
and for any other user:
To get a list containing all group membership use id -a
Required, but never shown