adaptive authentication

eyal abu hamad
Mega Sage

Hello community,
I have a Task to make spesfic user use API that I create in servicenow based on his IP.

but for now I wana try at least to make it work with basic things

1)I started by creating the IP filter criteria

eyalabuhamad_0-1712845521337.png


2) created the condition 

eyalabuhamad_1-1712845606223.png

3)created all policy and added the relevant records

eyalabuhamad_2-1712845685118.png

4)created API Access Policies

eyalabuhamad_4-1712846257767.png

5)created Standard Authentication Profile and added the relevant police 

eyalabuhamad_5-1712846305638.png

PHOTOS FOR UNDERSTANDING WHERE I CREATED THE RECORDS! NOT THE ACTUAL RECORDS

 

when I try to access using postman,  it doesn't work

eyalabuhamad_6-1712846437535.png

 

 

1 ACCEPTED SOLUTION

Randheer Singh
ServiceNow Employee
ServiceNow Employee

Hi @eyal abu hamad ,

You have to do a little bit of digging to check the root cause.

 

1. You have specified OAuth as an authentication method in the Authentication profile. Are you able to call the API successfully using the OAuth token after deactivating the API access policy?

2. is your IP address within the range that you have specified in the authentication policy? Your first three screenshots are unrelated to each other. The first screenshot shows the IP criteria with the employee IP address, second one shows the condition with contractor IP filter criteria. The 3rd policy screenshot is showing eyal test filter criteria.


Thanks,

Randheer

View solution in original post

1 REPLY 1

Randheer Singh
ServiceNow Employee
ServiceNow Employee

Hi @eyal abu hamad ,

You have to do a little bit of digging to check the root cause.

 

1. You have specified OAuth as an authentication method in the Authentication profile. Are you able to call the API successfully using the OAuth token after deactivating the API access policy?

2. is your IP address within the range that you have specified in the authentication policy? Your first three screenshots are unrelated to each other. The first screenshot shows the IP criteria with the employee IP address, second one shows the condition with contractor IP filter criteria. The 3rd policy screenshot is showing eyal test filter criteria.


Thanks,

Randheer