Mac OS X, Mac OS X Server Mac OS X Server: Finding Users with a Primary Group ID April 2, 2008 dscl localhost search /Search/Groups PrimaryGroupID <GroupNumber>