How to determine what groups a user belongs to?
The IRoleFactory has this handy method:
public java.lang.String getRolesOfUser(java.lang.String uniqueIdOfUser, boolean recursive)
However, the IGroupFactory has no similar method for fetching all the groups a user belongs to. Is there an easy way to do this?
I suppose I could get all groups, and remove the user from each one, but this isn't very efficient.
Is there a better way?