I think he meant the
group scripting command and not the gorups "menu" in the editor..
Anyway, the command returns the group the given unit belongs to so you can for example store it into a variable.
Simple sample code:
_var = group player;
hint format ["%1",_var];
Running that code (in a script) will show a hint message on the screen showing the group the player belongs to.