After logging in, users with the ITIL role are forwarded directly to the Operational Workspace

itspezi1
Tera Guru

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

1 ACCEPTED SOLUTION

Runjay Patel
Giga Sage

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

-------------------------------------------------------------------------

 

View solution in original post

11 REPLIES 11

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @itspezi1 

https://www.servicenow.com/community/next-experience-forum/not-able-to-redirect-user-to-sow-landing-...

*************************************************************************************************************
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]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@itspezi1 

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.

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

@itspezi1 

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.

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

Runjay Patel
Giga Sage

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

-------------------------------------------------------------------------