How can we restrict agents to workspace UI only

SANDEEP28
Mega Sage

Hi All,

We have created custom app and workspace. We want to route agent to the custom workspace after they login and even if they try to change the URL path, it should again redirect to same workspace. 

 

is this possible ??

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@SANDEEP28 

this link has solution, it has logic on what should happen when user logins to instance.

Role based redirection with SPEntryPage 

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

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@SANDEEP28 

this link has solution, it has logic on what should happen when user logins to instance.

Role based redirection with SPEntryPage 

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

SANDEEP28
Mega Sage

@Ankur Bawiskar I followed your solution. We are able to redirect user to custom workspace. But if user is changing the URL to /esc then they are able to see ESC portal page.  We don't want user to navigate to ESC portal page because these users are external.

 

Could you please help here

@SANDEEP28 

Glad to know that the link I shared above worked for you.

then you can use a UI script and handle the redirection.

check in that UI script what role the logged in user has and if URL contains other that workspace, show message to them that you are not allowed to navigate here and redirect them to workspace UI.

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

SANDEEP28
Mega Sage

@Ankur Bawiskar Thanks for quick reply.

How to call that UI script on the change of URL path ? I mean how to call the UI script ?

 

can you share one example