groups [ user... ]
The command groups prints on standard output the groups to which you or the optionally specified user belong.