Disable local login i.e. login.do for non-admin users which have SSO enabled

Dinesh90
Tera Contributor

Hello ServiceNow Community,

 

I have a requirement to disable local login i.e. login.do for non-admin users which have SSO enabled.

Please help me with the solution to implement to restrict local login(login with username & password) that is login.do for non-admin users and allow admins and integration users to have local login.

 

I have SSO enabled in the instance already for the same we want to restrict users to use local login(login.do).

please help with solution to implement 

 

Thanks

23 REPLIES 23

Ambuj Tripathi
ServiceNow Employee
ServiceNow Employee

Hi @HS7 

 

Can you please check if the above filter criteria is present in the sys_role_filter_criteria table?
If not present, then you can create a new record in role filter criteria and add "admin" as role here.

If already present, come to the post auth policy context page - Adaptive Authentication -> Post Auth Policy.

On the policy context page, select allow policy in "default policy" field dropdown, and whatever policy is there, you need to edit the inputs list to add the new filter hasAdminRole into it by swapping towards right.

Once the filter is part of the input, you can save the policy, switch to next - "condition" tab, edit the condition and create it as per your requirements.

Thank you @Ambuj Tripathi 

 

 

 

I have set it up exactly as you instructed, but it still doesn't show up. Is there anything else I should be aware of?

Ambuj Tripathi
ServiceNow Employee
ServiceNow Employee

Hi @HS7 , @Dinesh90 

 

FYI - I have just created an article with a recorded demo just for this use case. Please do checkout as it might be useful for your use case of disabling the local logins.

 

https://www.servicenow.com/community/platform-privacy-security/how-to-block-local-logins-and-allow-o...

 

Cheers!

Ambuj Tripathi
ServiceNow Employee
ServiceNow Employee

Hi @HS7 

This is part of the Adaptive Auth plugin and gets installed if you select to install the demo data. This role filter criteria should be added into the policy input first and then only it will be shown in while creating the policy condition.

 

Please check in this table - sys_role_filter_criteria.

This record - "has Admin Role" should be present in this above table. if its not present, you can either repair the Adaptive Authentication plugin by loading the demo data or you can create your own filter criteria which will work like the OOB one.

 

Once you create the criteria, you need to use it as an input into the required policy. Then only it wiill be shown as policy input while creating the condition.

 

Please refer to my demo video regarding the similar use case - 

https://youtu.be/WH3jQh-OY-0?list=PLz3uBEja_oGWkIbQQs9wzW7AhsHweKmiA

 

Thanks!