- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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 ??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@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