id groupids

Part of the TclX package.

id groupids

This command returns the current group access list of the current process as a list of ids.