Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,240
Community Members
 
Community Events
165
Community Groups

Crowd REST client : Get all groups under an application

How can I get all groups within an aplication in crowd using crowd REST client?https://bitbucket.org/atlassian/crowd-rest-client

- thanks

2 answers

1 accepted

0 votes
Answer accepted

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

import com.atlassian.crowd.search.query.entity.restriction.NullRestrictionImpl;

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

1 vote

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 .

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

146 views 0 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you