A company is integrating ServiceNow with an external system using REST API. The integration is failing with a 401 Unauthorized error. The integration user's credentials are correct and the user has the 'rest_service' role. What is the most likely cause of the failure?
Trap 1: The password for the integration user does not meet complexity…
Password complexity does not affect API authentication if credentials are correct.
Trap 2: The integration user does not have the 'rest_api' role.
'rest_service' is the correct role; 'rest_api' does not exist.
Trap 3: The integration is hitting a table ACL that denies read access.
ACL denial typically returns 403 Forbidden, not 401.
- A
The password for the integration user does not meet complexity requirements.
Why wrong: Password complexity does not affect API authentication if credentials are correct.
- B
The integration user does not have the 'rest_api' role.
Why wrong: 'rest_service' is the correct role; 'rest_api' does not exist.
- C
The OAuth token used for authentication has expired or is invalid.
401 Unauthorized indicates authentication failure; expired/invalid OAuth token is a common cause.
- D
The integration is hitting a table ACL that denies read access.
Why wrong: ACL denial typically returns 403 Forbidden, not 401.