I am receiving the below error when trying to use REST API to list the properties of a user. Can some one please help.
Below is the command used:
curl -D- -s -S -k -u abcd@xyz.com:1234 https://example.jira.com:8081/jira/rest/api/2/user/search?username=abcd@xyz.com no-check -H Content-Type: application/json
Error:
Regards,
Pavan.
Your curl call does not actually indicate what kind of REST call you are making (GET, PUT, POST, etc). But I am also concerned that your headers are not in quotes like they are in the examples on https://developer.atlassian.com/server/jira/platform/basic-authentication/
Could you try to make your call look more like this example:
curl -D- -u username:password -X GET -H "Content-Type: application/json" http://localhost:8080/rest/api/2/issue/createmeta
Perhaps try this:
curl -D- -u username:password -X GET -H "Content-Type: application/json" https://example.jira.com:8081/jira/rest/api/2/user/search?username=abcd@xyz.co
And see if you get back some better results that way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.