Good Morning,
Can anybody offer any tips or solutions on how they got this issue fixed for ServiceNow integration? This issue specifically shows up when we try to authenticate a connection for a bot user. When we try to integrate using personal users, it works fine, so we know it’s not an OAuth issue on the UiPath connection creation, but maybe just the settings we have on our bot user.
I’ve tried tweaking around with these features, primarily password, web services access only,y and internal integration user
I will be working with a ServiceNow dev today to try and get this sorted, as I don’t have the role “security_admin” to make any changes. My thinking was that the bot user just needed to be removed and recreated, but I wasn’t too sure what setting or feature was making it impossible to authenticate. Also, we do not see any failed connections in the ServiceNow logs, so if anyone has any suggestions or solutions, I’d love to hear them. Thanks
Thanks, We have already created this connection and as stated, it works fine for personal users, just our bot user that is having this error access denied
Yes, i can manually log in to service now using the bot credentials. for the connection I am using client id and secret. Would anyone happen to know where oauth failed connection logs would be in service now
okay. i changed grant type to client credentials, changed the Get endpoint to https://cloud.uipath.com/provisioning_/callback. still getting the Error: server_error, description: access denied
We’ve also tried recreating the UiPath Application in ServiceNow. We still see the same issue
This is the error message we see in ServiceNow, if anyone is familiar Exception on token flow - invalid_scope: The provided OAuth token is not valid: no thrown error
Hello Sonali. This was the solution. Our ServiceNow admin had to recreate a new UiPath Application Registry with the scope: useraccount. He then created a new bot user for me to use. I tested this user in POSTMAN using
POST: https://myinstance.servicenow.com/oauth_token.do
I got the same error again and checked my request body to make sure I was sending the right info and saw two random spaces at the end of my password. Removed them, reran, and it authenticated. I was certain that a wrong password would’ve given a different error, like invalid password error, instead of an access denied server error, but the issue has been solved now. Thank you and @Anil_G for your help.