Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to test if an integration user is connecting properly?

iamkurt
Tera Contributor

PFA screenshot

 

I have created a Integration User on User table . In order to mark it as an Integration User, all I have done is clicked the checkbox "Web service access only" on User table. Then I clicked on "Generate Password" and copied the password to Notepad.

 

To check if external tool would be able to connect to ServiceNow using these credentials, I created the below postman call (code snippet/ curl below).

 

 

I noticed that it returns HTTP 200 which means its successful but even if I change the password to some other text , like random string such as 123 or 000, it still returns HTTP 200

 

I have created a Integration User on User table . In order to mark it as an Integration User, all I have done is clicked the checkbox "Web service access only" on User table. Then I clicked on "Generate Password" and copied the password to Notepad. To check if external tool would be able to connect to ServiceNow using these credentials, I created the below postman call (code snippet/ curl below - extreme bottom of this post).

 

I noticed that it returns HTTP 200 which means its successful but even if I change the password to some other text , like random string such as 123 or 000, it still returns HTTP 200

URL I use →  https://companynamedev.service-now.com

I make a POST call here

Would you please advise what am I doing wrong here?

 

 

Code snippet / curl -

curl --location 'https://companynamedev.service-now.com' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic cy1hdmFsb3JfU2VydmljZU5vd0BsaWZlbGFicy5jb206VC4pVyVKMTtuW1dJVk5kZTYtI3tnZzpYfSExaFpMbTZyWTttPUlHMA==' \
--header 'Cookie: BIGipServerpool_lifelabsdev=042697d0cd8f0dab949115250c7fc8da; JSESSIONID=81B45ADF112DF7E2A6E344A49B28EB9D; glide_node_id_for_js=ec9b5680edce04f4e88a8ed12a40ab52fbd53906e294ad2d484105bfd5262bb1; glide_user_route=glide.0ddd39ff76683973956b81e824a302e5' \
--data-urlencode 'username%0A=s-XYZ_ServiceNow@companyname.com' \
--data-urlencode 'password=passwordpasswordpasswordpasswordpassword'

 

 

URL I use →  https://companynamedev.service-now.com

 

I make a POST call here

Would you please advise what am I doing wrong here?

0 REPLIES 0