- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 03:50 AM
Hi Team,
After logging in, users with the ITIL role are forwarded directly to the Operational Workspace. Who has an idea for implementing this?
BR
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 04:00 AM
Hi @itspezi1 ,
You can make changes in login script like below.
https://<instance_name>.service-now.com/nav_to.do?uri=sys_homepage_destination_rule.do?sys_id=6b596e79ed801110f877faea558f694a
Disable below script
https://<instance_name>.service-now.com/nav_to.do?uri=sys_ux_screen.do?sys_id=7c2ed69dc3bb3010965e070e9140dd4c
var user = gs.getUser();
var itilRole = 'itil'; // Role name for ITIL users
if (user.hasRole(itilRole)) {
// Redirect URL for Operational Workspace
var operationalWorkspaceURL = '/now/workspace/operational';
action.setRedirectURL(operationalWorkspaceURL);
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 03:51 AM
Hi @itspezi1
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 03:58 AM
you want to achieve this functionality or this functionality is already there and would like to find where it has been implemented?
you will have to check/update the SPEntryPage script include
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 04:34 AM
Thank you for marking my response as helpful.
As per new community feature you can mark multiple responses as correct.
If my response helped please mark it correct as well so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 04:00 AM
Hi @itspezi1 ,
You can make changes in login script like below.
https://<instance_name>.service-now.com/nav_to.do?uri=sys_homepage_destination_rule.do?sys_id=6b596e79ed801110f877faea558f694a
Disable below script
https://<instance_name>.service-now.com/nav_to.do?uri=sys_ux_screen.do?sys_id=7c2ed69dc3bb3010965e070e9140dd4c
var user = gs.getUser();
var itilRole = 'itil'; // Role name for ITIL users
if (user.hasRole(itilRole)) {
// Redirect URL for Operational Workspace
var operationalWorkspaceURL = '/now/workspace/operational';
action.setRedirectURL(operationalWorkspaceURL);
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------