It's all about the answers!

Ask a question

Getting role assignments for members of a RAM community


Andrew Freed (21311114) | asked Jun 14 '10, 4:44 p.m.
JAZZ DEVELOPER
I need to find the role assignments for all members of a RAM community. I would prefer to use the Java API but I can't find a suitable method there. The web service appears to return this method via getRoles, however I never find any role assignments this way. What API should I be using?


RAMClient client = new RAMClient(...);
RAM1 ramWS = client.getRAM1Webservice();
RoleSO[] allRamRoles = ramWS.getRoles(communityId);
for(RoleSO ramRole : allRamRoles) {
String[] assignedUsers = ramRole.getUserIDs(); //always String[0]
}


Thanks,
Andrew

One answer



permanent link
Rich Kulp (3.6k38) | answered Jun 14 '10, 5:14 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi,

There is no API to return such information. The Webservices aren't API.
They change all of the time.

Webservices getRoles() doesn't return the users. It only returns the
list of roles.


Rich

Your answer


Register or to post your answer.