Users with snc_internal and cmdb_read role should navigate to esc portal

Kishor O
Tera Sage

We added cmdb_read role to snc_interanl role after that end users are navigating to platform UI instead of esc portal.

Now end users always should redirected to esc portal

How we can achieve this requirement?

*Please refer screenshot we added snc_internal role contains cmdb_read role to give end users read access to cis.

KishorO_0-1698940049268.png

 

1 REPLY 1

Anand Kumar P
Giga Patron
Giga Patron

Hi @Kishor O,

Here we can implement a custom Global UI script as below

UI Type: Desktop
Global = true

addLoadEvent(function()
{
if(!g_user.hasRoleExactly('itil') && document.URL.indexOf('.do')!= -1)
{
window.location='/sp';
}
else
{return}

});


The script here checks if the user has 'itil' role or not.
You can replace this role as per your business requirement.

https://www.servicenow.com/community/now-platform-blog/6-ways-to-set-up-your-service-portal-for-redi... 

Please mark this as solution proposed and helpful if its serves your purpose.

Thanks,

Anand