Start a conversation

401 Unauthorized Error when Executing API Operations

Overview

You are using a Jive user to call APIs in background processes. You are getting a 401 Unauthorized error message.

mceclip5.png

The below conditions are true:

  • The User is not Federated via SSO or LDAP.
  • You previously were able to authenticate with the same credentials and got no such error.
  • You get the same error for GET, PUT, DELETE and POST operations on various API endpoints.

Solution

401 errors are related to bad credentials. Chances are that the API User's password was changed by another user or by a background job. You can simply reset the user's password, and you should no longer see this error.

 

Note: Usernames in Jive are NOT case sensitive.

 

<supportagent>

You can query the jiveauditlog table using magicquery to see when changes were made to a user, and who made those changes. See the Authentication Troubleshooting Article for details.

</supportagent>

 

Testing

You can try accessing the API endpoint again using the newly set password. This should give you a 200 OK message.

Below is an example of this, done using the Insomnia API query tool:

mceclip4.png

 

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments