Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Programmatically get a list of admin users in Crowd connected apps

The apps vers:

Crowd v3.2.5
Jira v7.5.2
Wiki v6.6.4
Crucible v4.5.2

Thanks!

1 answer

1 accepted

0 votes
Answer accepted
Bruno Vincent Community Leader Feb 04, 2019

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

Hi,
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!

Bruno Vincent Community Leader Feb 05, 2019

Hi @Raya Geimanson

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

You can also use Jira's REST API though you might face the following issue: https://jira.atlassian.com/browse/JRASERVER-47372

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.

Suggest an answer

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

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

306 views 9 7
Read article

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