The way I did (thanks Steve):
- Code: Select all
AdministrationServiceClient asm = null;
asm = new AdministrationServiceClient("myServer", 80, "eu@eu.com.br",
"xxx", "/services/AdministrationService");
AdministrationPerson person = new AdministrationPerson();
person.setUserId("someUser@xxx.com.br");
person.setPassword("xxx");
AdministrationGroup[] grupos = asm.listGroups();
for(AdministrationGroup grupo: grupos){
AdministrationGroupMember[] members = grupo.getGroupMembers();
for(AdministrationGroupMember member : members){
if (member.getLoginId().equals("someUser@xxx.com.br")){
System.out.println("Member of " + grupo.getGroupDescription());
}
}
}
There is no specific method for this action in the YF web services API. I think there should be one.
Leonardo