Prevent Auto Redirect to IDP for External Users on ServiceNow Portal

Puneet Hegde1
Tera Guru

Hi Community,

We’re facing an issue with our ServiceNow external portal where the Auto Redirect to IDP is triggering for external users as well, which is not the desired behaviour.

Here’s our setup:

  • Internal users are connected via Active Directory (AD) and should be redirected to the IDP automatically.
  • External users log in using username and password and should not be redirected to the IDP.

Currently, when anyone visits the external portal, the auto-redirect kicks in regardless of whether they are internal or external. We want to ensure that:

  • Auto-redirect to IDP only applies to internal users
  • External users can access the login page without being redirected

Has anyone implemented a solution or workaround for this? Is there a way to conditionally disable auto-redirect based on user type?

Any guidance or best practices would be greatly appreciated!

Thanks,
Puneet

1 ACCEPTED SOLUTION

@Puneet Hegde1 

easy solution here

Bypassing SSO in the Customer Service Portal 

also check these links

Disabling the Service Portal SSO auto redirection 

Disable SSO auto redirection for some Portals to local login while still keeping SSO authentication ... 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

9 REPLIES 9

Daniel Madsen
Kilo Sage

Hi Puneet

 

You need to navigate to Service Portal - Portals, and then locate your service portal. Open the record and find the "Login page" field. It should be set to a widget that allows external login. You should have an out of the box widget called "Login". 

 

Best regards

Daniel Madsen

Ankur Bawiskar
Tera Patron
Tera Patron

@Puneet Hegde1 

external users means snc_external users?

what role they have?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,
Yes, it is an external user who has the snc_external role. Currently, we have auto redirect activated, so when they try to log in, instead of the login widget, it redirects to the IDP directly. is there any way to just bypass the auto-redirect only for those users?

Thank you,
Puneet

@Puneet Hegde1 

which endpoint they are hitting?

is this for CSM portal?

If yes then they should open CSM portal and not login.do

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader