Crowd REST client : Get all groups under an application

Mohiuddin Ahmed May 14, 2014

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
Shun Hirayanagi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2014

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
Caspar Krieger
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 14, 2014

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
AUG Leaders

Atlassian Community Events