Get Groupname?

Is there a way to get the groupname from the user? (not the ID…)

A user can be associated to more user groups, one way can be:

var groupUserVector = security.getUserGroups()
for ( var i = 1 ; i <= groupUserVector.getMaxRowIndex() ; i++ )
{

	var group_name  = groupUserVector.getValue(i,2) // group name
	var group_id = groupUserVector.getValue(i,1) // group id

}

hope this helps, ciao

It did help! Thanks a lot Enrico! :P