Login Page redirection

sandeep6
Tera Expert

Hi All,

 

I was wondering how can i redirect non logged in user to SP login page when they are trying to access the KB URL direct. At the moment they get below message

sandeep6_0-1766375359433.png

Ideally i was planning to get user logged in and then send to the KB article they were trying to view.

Thanks

Sandeep

 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@sandeep6 

if user is not logged in then where are they being taken currently?

 

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

sandeep6
Tera Expert

They are taken to the below page

sandeep6_0-1766376610930.png

 

@sandeep6 

it means they are logged in but they don't have access to that KB article

it has nothing to do with login page

check these links

View Article related link causes error "You do not have sufficient privileges to access this knowled... 

KB Articles are not viewable by non-itil users, or any other non-"xyz" role 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Anand2799
Tera Guru

Hi @sandeep6 ,

 

The error occurs because the user does not have the necessary permissions to access the knowledge article.

To verify this, check the Available for and Not available for related lists on both the knowledge base and the knowledge article records.

Additionally, you can confirm the user’s access to the knowledge article by using the Run User Criteria Diagnostics related link available on the article record.

 

Since the user is already logged in, they are not being redirected to the login page.

 

Thanks

Anand