Portal Redirection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
'snc_internal' role contains another role like 'x_sap'. Without 'x_sap' role if any 'snc_internal' users login to servicenow instance they are redirecting to portal page. But with 'x_sap' contain role they are redirecting to native dashboard view instead of portal page. 'snc_internal' role with contain role also need to redirect portal page. Anyone please provide valid approach for this to achieve the functionality.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
you can use OOTB script include and update it SPEntryPage()
check this link
Role based redirection with SPEntryPage
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Already tried by modifying OOTB SPEntryPage script include but not working. Will check exactly same like this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
32m ago - last edited 30m ago
it should work fine.
Many customers have used the same OOTB script include.
Since your role "snc_internal" contains another scoped app role and hence hasRole() might not work properly.
you should query sys_user_has_role to check if that user has only that scoped app role and not snc_internal
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11m ago
SPEntryPage is the best way to achieve this? what changes you did?
Also check your system has the property calling SPEntryPage script.
Please mark the answer correct/helpful accordingly.
