REST API OAuth failed for ITIL user and not for admin

Bhargava ram Ch
Tera Contributor

Hi Team,

 

I am working on servicneow to servicenow integration. REST API outbound Basic authentication working for admini user and ITIL user .

Result: SN1 creates the records in SN2 Instance using post...When i tried with OAuth authentication it is working for admin ,not for IYIL User

 

Error: user not authenticated (required to provide auth information).

 

I tried with provide the read acceess on oauth_credentails table  to ITIL user.

 

Please share there is any workaround solution for this issue.

 

Thank you

 

3 REPLIES 3

AshishKM
Kilo Patron
Kilo Patron

Hi @Bhargava ram Ch , 

Are you connecting both instance using service account with all required roles.

SN1 is calling post REST using the SN2's service account ( that account should have required role as per create/write ACL).

 

Check the same using the Postman with basic authentication.

 

-Thanks,
AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Hello Mishra,

 

Thank you for your response. 

 

I test with post working fine. Only inn SN i am getting this issues.

 

Thanks,

Bhargava

 

 

itil user has required role or any ACL is restricting ITIL users.


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution