xdmp.groups() as Sequence
Returns a sequence of the IDs of all the groups in the system.
xdmp.groups(); => 12363538320723601865 2350822345151312968 7891965607973455300 2314941134541564752