How to redirect user to login page when user is not logged in to portal?

Justine Mae Ruf
Tera Expert

Hello, I've been trying to do this by unticking the public option so that anyone who isn't logged in will go to the login page by default
find_real_file.pngIt sure works for admin users but not sure why it won't do the same for customer roles. Is there any other way to do that?

find_real_file.png

4 REPLIES 4

Allen Andreas
Administrator
Administrator

Hi,

Can you give a bit more information?

By default, if a user is trying to access a portal, like CSM, if they are not authenticated, they will automatically be diverted to the login page.

What type of URL, etc. are you simulating the user using? Unfortunately, you don't have much provided in your response. If there's a 404 error showing, then it means they can't see it. You shouldn't need to mess with the public checkbox on that page, as again, by default, that is checked.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi, Allen. It's because even if they are logged out or no user is logged in the csm portal they are automatically redirected to the homepage then have to click the login on the menu. By default, if user is not logged in, they want it to redirect to the login page wherein user will type the username and password to login. 

find_real_file.png

Hi,

Ah, ok, I understand now.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0748640

So you can navigate to sys_public.list and press enter in left-hand navigation and then create an entry for csm_index, with the active box marked false, and see if that resolves your issue?

Much like what you were doing before, but it should work for everyone. If they aren't logged in, the platform won't know which role they have (admin or otherwise).

When I made the above change, it directed me to the login page when trying to go to https://instancename.service-now.com/csm, for example.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi, Allen. I did what you advised but it is still redirecting to the homepage csm_index and not the login page 😞