id groupid

Part of the TclX package.

id groupid ?gid?

Queries the current group id or, if gid is given, sets it. Setting the group id may require root permission.