Use `id -G` rather than `groups` to get a list of groups for this