A Crowd REST API user-management call fails with 401 Unauthorized error
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
A user receives a 401 error when running Crowd REST API usermanagement methods.
Environment
Crowd
REST API methods
Postman
cURL
Diagnosis
After running REST API, the user returns a 401 error: Application failed to authenticate.

1
2
3
4
5
(base) GLQC6P379N:~ mmadrid$ curl -v --location 'http://localhost:8095/crowd/rest/usermanagement/1/user?username=admin' \
Accept: application/json
Content-Type: application/json
HTTP/1.1 401 Unauthorized
The REST API method is using the Crowd administrator username/password.
Cause
REST API usermanagement
calls
- intended for applications to interact with the Crowd server for user management operations. This means authentication requires the applications name/password. It's common to use a username and password for the administrator.
Example | ||
---|---|---|
Application | name | password |
Solution
In this case, we want to use the application name and password we're querying.

Was this helpful?