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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,977
Community Members
 
Community Events
176
Community Groups

Unable to fetch all users with an api

Edited

Hi All,

I'm trying to fetch the user count in crowd with the api - GET /rest/usermanagement/1/user

the command here i'm using:

curl -s https://my-crowd-server/crowd/rest/usermanagement/1/user

and when I try hitting the url "https://my-crowd-server/crowd/rest/usermanagement/1/user" recursively  asking to enter username & Password.

Please suggest if this is the correct api i've landed or let me know the correct way to fetch the user count. 

crowd version : 3.2.6

 

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Marcin Kempa Atlassian Team Dec 27, 2019

Hi @Saquib Fraz ,

 

Thanks for asking this question on the community. My I ask you what do you need this number of users for? Perhaps you want to count how many users are using your products that are connected to Crowd?

When it comes to the API you've mentioned, this is an API that is being used by applications connected to Crowd, which means that in order to use that you will have to authenticate to that API using your application credentials not your admin ones.

For example when you configure Jira with Crowd and you create Jira application in Crowd you need to provide app name and password that Jira will be using to connect to Crowd. Those are username and password you need to provide in this REST API call. Please note that you will see results as the application on which behalf you are logging in. This means that if you do curl -s https://my-crowd-server/crowd/rest/usermanagement/1/user and provide Jira's application name and password you will only see users that are in directories that are mapped to this Jira application not all users from all directories that are defined in Crowd.

 

Hope that helps,

Marcin Kempa

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events