- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2020 09:58 AM
Hello,
How to check user is logged in or not.
ex - when user receives an email and in that user receives some link and after clicking on that link it should check whether user is logged in or not if yes then it should redirect user to particular service now page else it should redirect user to login page.
Can anyone please help me with this.
Regards,
Nivedita
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2020 11:31 PM
Hi Nivedita,
First i would suggest you to not paste the complete url as you did in your previous since it is taking to your customer Prod instance and anyone can able to order the catalog request. Please try to remove it or at least remove the instance name from the link
Coming to your issue, i use you are using "com.glideapp.servicecatalog_cat_item_view" in your URL which is a UI Page first try to see if this ui page is granted as public for goto ui page and search with the name and if you dont find anyting there goto sys_public table and search in the page field if it is available try to inactive and see if it works.
Next if you dont find anything there go to that catalog item which is "Solicitud Extensión Guad" and look for the field role and see if is public you can remove and try again.
Basically if the ui page or catalog item are set as public which means any user outside servicenow can access that particular page/cat item. if you find that i think you can solve your issue.
Please go through below link where it clearly explain how to make the catalog item as public you just need to follow the steps and and if you find anything try to remove and inactive and try again.
https://hi.service-now.com/kb_view.do?sysparm_article=KB0551300
Note: Please try in Sandbox or Developer instance first before trying to implement in Prod instance.
If my reply was helpful / resolved your issue please mark it as correct / helpful
Regards,
Abdul Azeez

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2020 12:45 PM
Its very difficult to tell how to check without looking at the instance.
From my side i will check the notification which is receives to the user intially that will be notification.
Navigate to Emails under System Logs and try to filter down with the subject of the email you recieve, once you get the right the email logs then open the record you will notification name as shown below
Open the notification and look at the body contect and see what URL it is passing there you will find where it is navigating either to servicenow or some where else
Please mark helpful / correct based on the impact
Abdul Azeez
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2020 01:15 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2020 11:31 PM
Hi Nivedita,
First i would suggest you to not paste the complete url as you did in your previous since it is taking to your customer Prod instance and anyone can able to order the catalog request. Please try to remove it or at least remove the instance name from the link
Coming to your issue, i use you are using "com.glideapp.servicecatalog_cat_item_view" in your URL which is a UI Page first try to see if this ui page is granted as public for goto ui page and search with the name and if you dont find anyting there goto sys_public table and search in the page field if it is available try to inactive and see if it works.
Next if you dont find anything there go to that catalog item which is "Solicitud Extensión Guad" and look for the field role and see if is public you can remove and try again.
Basically if the ui page or catalog item are set as public which means any user outside servicenow can access that particular page/cat item. if you find that i think you can solve your issue.
Please go through below link where it clearly explain how to make the catalog item as public you just need to follow the steps and and if you find anything try to remove and inactive and try again.
https://hi.service-now.com/kb_view.do?sysparm_article=KB0551300
Note: Please try in Sandbox or Developer instance first before trying to implement in Prod instance.
If my reply was helpful / resolved your issue please mark it as correct / helpful
Regards,
Abdul Azeez
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2020 02:36 AM
Hello,
Thank you so much for you help.
I have tried all three things which you have mentioned in above reply.
1. Checked "com.glideapp.servicecatalog_cat_item_view" under ui page but didn't find anything.
2. Checked sys_public table and searched "com.glideapp.servicecatalog_cat_item_view" in the page field and it is available there so i made inactive that and now it is rediercting to login page if user is not logged in.
3. Checked catalog item and field role but i didn't find any field role as public.
I have one doubt..i made inactive "com.glideapp.servicecatalog_cat_item_view" ui page so it will not impact any other things in our system? because i don't have much knowledge in ui pages and also by default this ui pages "com.glideapp.servicecatalog_cat_item_view" should inactive right??
I don't have much knowledge on CMS pages or ui pages..can you please explain me about both CMS pages and ui pages.
Thank you so much for your help.
Regards,
Nivedita

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2020 04:05 AM
Hi Nivedita,
You need to see who created that record in sys_public table and you can check with them the reason of having it. If the same ui page is called in different url's for a similar functionality then it will impact for sure, check in the notification if you have url with that ui page. if you dont find any i hope it will not impact any other funcitonalities.
Reason is Notification is the only place where user clicks and the ui page triggers and all the other places like UI Action user must log in to click the button so it will not impact.
Regarding CMS and UI Page, it is very to difficult to explain in short you need to go through the servicenow docs and you will get to know easily.
In Short:
CMS (Content Managementc System):
CMS is an application that provides users the ability to create a custom interface for the ServiceNow platform and custom interfaces for other applications. The CMS (plugin is com.glide.cms) is automatically in the base instance at no extra charge (OOB) and includes these applications and modules:
- Sites
- Pages
- Blocks - change headers, navigation menus, lists, dynamic and static HTML
- Specialty Content - Flash movies, content links, iFrames
Where in previous Servicenow End users used to have this as a login page before service-now got Service Portal live. Now all the end users are using the Service Portal page.
Go through given blog to know more about CMS:
CMS - Content Management System
UI Page:
UI pages can be used to create and display forms, dialogs, lists and other UI components. Which needs a basic knowledge of HTML, Jelly Script and Javascript.
For the example of "com.glideapp.servicecatalog_cat_item_view
" what it does is,
Service now has a created a page and with just ui page it wont work you need to pass the sys id of the catalog item if you see below example in sysparm_id they are passing a sys id of the catalog id.
com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=3a25637b47701100ba13a5554ee490a0
Same was done in your instance as well they called sys id of Solicitud Extensión Guad catalog item, with that when the user clicks on it calls the ui page and open the catlaog item in that ui page view.
Please Mark it is correct / helpful if it has helped your problem and encourage me to reply more 🙂
Regards,
Abdul Azeez