Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Nested groups: how get parent groups

Frank Eppink
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 30, 2018

when using nested groups and given a group XY, how do I get all parent groups, i.e. all groups which include the group XY?

Remark: I know that when navigating to Direct members I can see the included groups and users, but I need the other direction.

1 answer

1 accepted

1 vote
Answer accepted
Bruno Vincent
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.
November 2, 2018

Hi @Frank Eppink

As of today this is not something you can get in Crowd's UI. However you can use Crowd's REST API to retrieve that information.

You can get the direct parent groups with:

curl -X GET -u "<application_name>:<application_password>" -H "Accept: application/json" "http://localhost:8095/crowd/rest/usermanagement/1/group/parent-group/direct?groupname=<child_group_name>"

For instance:

Screen Shot 2018-11-02 at 09.59.20.png

And you can get the nested parent groups with:

curl -X GET -u "<application_name>:<application_password>" -H "Accept: application/json" "http://localhost:8095/crowd/rest/usermanagement/1/group/parent-group/nested?groupname=<child_group_name>"

For instance:

Screen Shot 2018-11-02 at 10.00.02.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events