Crowd REST client : Get all groups under an application

How can I get all groups within an aplication in crowd using crowd REST client?

- thanks

2 answers

1 accepted

I think the following code will work. You can use client.searchGroup too.


List<String> groupList = client.searchGroupNames(NullRestrictionImpl.INSTANCE, startIndex, maxResults) ;

You'll need to use the search API:

Using the CrowdClient, that would be com.atlassian.crowd.service.client.CrowdClient#searchGroups .

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Maggie Roney
Published Feb 27, 2018 in Crowd

The Crowd team is looking for feedback on Server & Data Center customers' identity strategies!

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...

849 views 6 13
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you