one that is without groupIds and register UserGroupCallback that will retrieve user groups on demand when querying.
"There is a method which doesnt take groupids as parameter but takes a registered userGroupCallBack". Is that what you meant? I could not find the method you are talking about. Or may be I misunderstood.