understanding the user and group security in developer

Hi,

in Servoy 6.1.3 developer I have set two groups:

Administrators
Users

and some user.
For die “Administrator” group is only one user checked and this user is unchecked for the “Users” group.
All other users are only checked by the “Users” group and unchecked for the “Administrators” group.

Now I would like to get the matching user and group:

var _UID = security.getUserUID(username);
var _userGroups = security.getUserGroups(_UID);
for(var i = 1 ; i <= _userGroups.getMaxRowIndex() ; i++){
	application.output("groupname = " + _userGroups.getValue(i,2));
	if(security.isUserMemberOfGroup(_userGroups.getValue(i,2), _UID)){
		application.output(_userGroups.getValue(i,2) + " = true");
	} else {
		application.output(_userGroups.getValue(i,2) + " = false");
	}
}

The result for a user only set to the “Users” group is:
groupname = Administrators
Administrators = true
groupname = Users
Users = true

How could this be? I don’t understand why the user matches the two groups.

This is relating to Servoy dev on Mac OS X 10.8.2 (Java 1.6.0_37).
A similar function on Win 7 (Java 1.6.0_38) returns a result as I expect. I get only the group where the user is set.

It would be very nice if anybody can make this more clear.

Regards

Thomas,

What happens if you test the same setup in ApplicationServer?

Rob