Crowd Rest API return HTTP 404 Error

I try to script querying user info in Crowd with Rest API. 

I used 

curl -k -u USERNAME:PASSWORD https://MYIP:MYPORT/crowd/rest/usermanagement/1/user?username=SOMEONE

It returned "HTTP Status 404" error

I could access Crowd console and find this user's info. I could also use Rest API with JIRA and Stash successfully.

 

I doubt if RESTful Service provided in Crowd. How can I check if the Crowd is installed with RESTful Service successfully? If so, is that possible the RESTful service is provided with different port number other than the Crowd console?

 

2 answers

You need to provide application credentials to authenticate your HTTP request, not username credentials.

Make sure the directory that contains the user is mapped to the application that you use.

@Diego Berrueta, thanks for your answer!

I found the application name and password for Crowd in crowd.properties file, and replaced them with USERNAME and PASSWORD above. It still cannot get through.

But it return different "HTTP Status 403" error said: 

type Status report

message Client with address "XX.XX.XX" is forbidden from making requests to the application, crowd.

description Access to the specified resource has been forbidden.

 

 

You need to whitelist the IP address of you client for that application. Please follow the instructions at https://confluence.atlassian.com/display/CROWD/Specifying+an+Application%27s+Address+or+Hostname

Thanks It works

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

239 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot