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

@Runjay Patel 

I couldn't find any script associated to that URL?

It would be nice if you could explain & provide your guidance for the same so that it helps other community members as well including me.

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

Hi @Ankur Bawiskar ,

 

Which url are you talking about?

i can see the details like below.

RunjayPatel_0-1736770534917.png

 

@itspezi1 

you suggested to write a script but couldn't find any script field

Can you please help regarding that where to write that script?

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

Hi @Ankur Bawiskar ,

 

As i had mentioned login script, you can make changes here.

 

RunjayPatel_0-1736771486237.png

 

@itspezi1 

can you please help regarding these 2 records? what needs to be done with these?

I am trying to perform something similar in my PDI;

 

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   

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