Dear now developers, I'm facing "User authentication error" for the Integration User ID "IOSBUILDTEAM" while creating SNOW tickets via API Calls.

Koushik Ningara
Tera Contributor

Hello, we are trying to create ServiceNow tickets through API calls. When trying to create the ticket we are getting the following error.

{
"error": {
"message": "User Not Authenticated",
"detail": "Required to provide Auth information"
},
"status": "failure"
}

Is it related to MFA configuration, If yes where to disable that MFA??

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Koushik Ningaraju ,

If you have SSO enabled make sure that the account you are providing to authorize with is a local instance account and not one with which you normally use SSO to authenticate. API in ServiceNow does not work with SSO accounts only local accounts.

Then,

  1. Start off by confirming the username and password you have exactly matches the one on the user record.
  2. Check if the user is active and not locked out (Could be locked out if you attempted too many incorrectly)
  3. Is allow access to this table via web services checked?

  4. Does the user have snc_platform_rest_api_access?

 

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

View solution in original post

8 REPLIES 8

Community Alums
Not applicable

Hi @Koushik Ningaraju ,

If you have SSO enabled make sure that the account you are providing to authorize with is a local instance account and not one with which you normally use SSO to authenticate. API in ServiceNow does not work with SSO accounts only local accounts.

Then,

  1. Start off by confirming the username and password you have exactly matches the one on the user record.
  2. Check if the user is active and not locked out (Could be locked out if you attempted too many incorrectly)
  3. Is allow access to this table via web services checked?

  4. Does the user have snc_platform_rest_api_access?

 

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Hi Sandeep, 

I can confirm that SSO source field is empty, the user account is not locked, snc_platform_rest_api_access is allocated, But Password field is empty.

Community Alums
Not applicable

Check the credentials again. 

Like do we need put some password instead of leaving it empty for Basic User auth API calls?