security.getGroups()

Is there a way to get all the groupnames??

yes :lol:

You want to enlighten this poor guy??
I only see:

security.changeGroupName(Object groupid, String groupname)
security.createGroup(String groupname)
security.getGroups() —>>>only ID’s
security.getUserGroups(number [userid])

Sure, was just kiddin’

Here it is:

var Groups = security.getGroups();
var showArray = new Array(Groups.getMaxRowIndex());

for ( var i = 0 ; i < Groups.getMaxRowIndex() ; i++ )
showArray = Groups.getValue(i + 1, 2);

Thankx…i got it working…
There is one part I don’t understand…

Groups.getValue(i + 1, 2);

GetValue from where? …If I understand correctly (problably not) Groups only has ID’s of the group…

There is a second value and that is the name…