Getting 401 error when ITIL User tries to ebond Incident

mr_zia
Giga Guru

Dear Team,

 

I am calling REST API using script include and when submitting Incident with admin role ebonding to partner Servicenow is working fine and returning 200 status code, but when ITIL user is submitting Incident ebonding is not happening and giving 401 error, when I am providing ITIL user with admin role it is working fine.

 

Could anyone please suggest what could be the issue and how to fix it please?

1 ACCEPTED SOLUTION

Hi,

I got this issue fixed, just in case anyone want to refer in future.

401 is a permission issue, ITIL User's were not able to see record entry on the oauth_credential table, so when they try to ebond tickets they never ebonded to the 3rd party.

 

To fix this create acl both on the table and field level with role itil, now test the ebond it should work!

 

Thank You!

 

View solution in original post

4 REPLIES 4

Tony Chatfield1
Kilo Patron

Hi, unfortunately without clear details of your configuration or payloads from both scenarios there is little to evaluate.
Is your API using a single integration account for authentication? or are you authenticating with details from individual users? If using 1 auth account have you confirmed that the individual users have access to the underpinning data\records and that the payload they generate is complete and aligned with a payload generated by an admin user?

Hi Tony, Yes my API is a single integration account with Auth 2.0 authentication type.

Our User has all the rights to access the data of incident table.

 

 

Hi,

 

This is the payload that we have been sending over.

 

mr_zia_0-1717568616692.png

 

Hi,

I got this issue fixed, just in case anyone want to refer in future.

401 is a permission issue, ITIL User's were not able to see record entry on the oauth_credential table, so when they try to ebond tickets they never ebonded to the 3rd party.

 

To fix this create acl both on the table and field level with role itil, now test the ebond it should work!

 

Thank You!