You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
You can use Crowd's REST API.
For instance, if you want to get the nested members of the confluence-administrators group:
curl -X GET -u "confluence:********" -H "Accept: application/json" 'http://localhost:8095/crowd/rest/usermanagement/1/group/user/nested?groupname=confluence-administrators'
where confluence and ******** are the application name and application password of the Confluence application as defined in Crowd
Is the app-administrators group name hard coded? or is it possible that the group name be different in wiki/jira/crucible/crowd?
I'm trying to find a solution that would be flexible enough to retrieve the admins even in case an app admin decides to change the admin group name..
Thank you for the prompt reply!
There are actually pre-defined groups when you install those products (e.g. jira-administrators, confluence-administrators, crowd-administrators). However it does not mean that only those groups have administration rights. Other users and groups may have been granted administration rights as detailed in Atlassian's documentation:
As of today, permissions are managed in each of those products. So you will need to rely upon each product's API to retrieve its administrators (provided that such feature is implemented in the APIs)
Atlassian provides the following documentation for Jira: https://confluence.atlassian.com/jira/retrieving-the-jira-administrator-192836.html
In Crucible you can use Crucible's REST API.
As far as I know and after a quick look at Confluence and Crowd's REST APIs, this does not seem to be possible as of today, at least without running SQL queries.
That said, there may be a better way to retrieve such information in the future as Atlassian has announced that Crowd will soon be able to centrally manage the permissions for all those products.