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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How do you query Crowd for list of groups and their members?

I'm new to Crowd so I don't even know how to connect to the DB to run the queries?  Does this have to be done on the server or is there a remote connector?  If someone could give me a simple step by step on how to connect, I can bang out the query I believe from this information.  I just don't know how to go about connecting to the DB from a Windows box. Please pardon my ignorance.

https://confluence.atlassian.com/crowdkb/how-do-i-generate-a-csv-export-of-users-and-memberships-from-a-specific-directory-in-crowd-442271568.html

The Crowd CLI has been discontinued, I assume I could have done it from there before.  We are on 2.8

https://bobswift.atlassian.net/wiki/display/CRDCLI/Crowd+Command+Line+Interface

1 answer

1 accepted

1 vote
Answer accepted
Steven Behnke Community Leader Aug 02, 2016

If you are trying to connect to the database directly, you need access to the database server and whatever credentials you can get that will let you run those queries. 

A better alternative would be to use the REST apis – https://developer.atlassian.com/display/CROWDDEV/Crowd+REST+APIs

Thank you Steven.  I was able to use the following query using the rest APIs and obtained a list of users in each group.

http://mycrowdserver:8095/crowd/rest/usermanagement/latest/group/membership

It returned the group and username which was very helpful.  Is there a way to obtain all of the user information, not just the username with the query?  I could not seem to find a way to do so here:

https://docs.atlassian.com/atlassian-crowd/latest/REST/#usermanagement/1/

 

Steven Behnke Community Leader Aug 04, 2016

Sorry, what user information specifically?

The fields from the View User>Details tab in the crowd console.

Username, Directory, Email address, Active or Not, First Name, Last Name.

 

Thanks again Steven.

Jim

 

Super late but i use this:

 

/crowd/rest/usermanagement/1/group/user/direct?groupname=$group&expand=user

gives me all the user details for members of the group in the $group variable

Hi @Jeffrey Engleman

This command cannot output data via json?

User in the header:

[{"key":"Accept","value":"application/json","description":""}]

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Opsgenie

Opsgenie and Amazon team up to launch new DevOps Guru integration - now available!

We’re proud to announce that our integration with Amazon DevOps Guru is now live. The Amazon and Opsgenie product teams have worked together to build a deep integration between Opsgenie and the new...

309 views 0 13
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