The add group action is remarkably similar to the add user function. Copy the entire 'getNameForNewUser' action from the edit function into the 'menu' element.
This time, instead of embedding the form in a 'CDATA' tag, we will use a pre-defined form, located in [your_TE_folder]/tableDefinitions/Db2auth/addGroup.xml