I think the following code will work. You can use
import com.atlassian.crowd.search.query.entity.restriction.NullRestrictionImpl; List<String> groupList = client.searchGroupNames(NullRestrictionImpl.INSTANCE, startIndex, maxResults) ;
You'll need to use the search API: https://developer.atlassian.com/display/CROWDDEV/Crowd+REST+Resources#CrowdRESTResources-SearchResource
Using the CrowdClient, that would be com.atlassian.crowd.service.client.CrowdClient#searchGroups .
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Do you own more than one Server or Data Center product? Do you have challenges provisioning users across your Atlassian products? Are you spending a lot of time integrating each Atlassian product wit...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs