We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

REST API Integrations

dharmarajb1
Tera Contributor

Hi All,

I'm trying to integrate the ServiceNow with the postman while pushing the code and the data was not getting from the postman, the issue was the user was not authenticated and I thought from the MFA and SSO authentication, it was Secure but i don't have any proof for that one. could you please help me to understand that issue from the SSO login. we have utilized the Basic Auth.

1 ACCEPTED SOLUTION

Bhargavi Patel
Tera Expert

Hi @dharmarajb1 

If you are using Basic Auth from Postman, the SSO and MFA login flow generally will not be involved. Basic Auth directly validates the ServiceNow username and password, so the API user must be active and have the required access.

Please check:

  • The user account is active and not locked.

  • The user has the required roles for the API operation.

  • Basic Authentication is enabled/allowed in the instance.

  • Check System Logs > Security for the exact authentication failure reason.

If your organization requires SSO/MFA for users, it is better to use OAuth 2.0 for integrations instead of Basic Auth.

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.



View solution in original post

3 REPLIES 3

Rafael Batistot
Kilo Patron

Hi @dharmarajb1 

 

One of these links might help you 

 

https://www.servicenow.com/community/developer-forum/oauth-2-0-error-missing-response-type-parameter...

 

https://www.servicenow.com/community/workflow-data-fabric-forum/postman-to-servicenow-using-oauth-2-...

 

 

 

If this response was helpful, please mark it as Helpful and, if applicable, as Correct.
This helps other users find accurate and useful information more easily

Bhargavi Patel
Tera Expert

Hi @dharmarajb1 

If you are using Basic Auth from Postman, the SSO and MFA login flow generally will not be involved. Basic Auth directly validates the ServiceNow username and password, so the API user must be active and have the required access.

Please check:

  • The user account is active and not locked.

  • The user has the required roles for the API operation.

  • Basic Authentication is enabled/allowed in the instance.

  • Check System Logs > Security for the exact authentication failure reason.

If your organization requires SSO/MFA for users, it is better to use OAuth 2.0 for integrations instead of Basic Auth.

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.



Tanushree Maiti
Tera Patron

Hi @dharmarajb1 

 

  • Ensure your integration user is not locked out and Active
  • Check the Web Service Access Only box on the user record. This prevents the account from ever logging into the browser portal, isolating it safely for API use only.

  • Assign the specialized integration role: snc_platform_rest_api_access or snc_basic_auth_api_access.

  •  
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti