
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 05:50 PM
Current setup - OOTB end users are taken to Service Portal and users with roles are taken to the backend of the platform. |
We would like to redirect approvers as well to the portal by default. But we want them to be able to come to backend. End users should always stay at Service Portal - Are there any best practice recommendations to achieve this? |
Note: Users will always login via SSO |
Observation: Modifying the SPEntryPage forces the approver to stay in portal and doesn't allow the approver to come to backend.
Solved! Go to Solution.
- Labels:
-
Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 07:38 PM
Managed to achieve the solution for the problem statement presented above.
Its a 3 step process
Step 1 - Force approvers to portal by modifying the SPEntryPage
Step 2 - Create a menu under self service for Service Portal
Step 3 - Create a menu in Service Portal to take user to fulfiller view.
Step 1: Force approvers to portal by modifying the SPEntryPage
// Modify the SPEntryPage script include to enable redirection upon login. In Line 69 you can find the below code that is setup to take users who have a role to backend. This need to be modified.
/*
if (user.hasRoles() && !redirectURL && !isServicePortalURL)
return;
*/
// New Code below - Purpose: Want approvers to be taken to portal along with end users.
if((!user.hasRole('approver_user') || user.hasRole('admin')) && !redirectURL && !isServicePortalURL){
return;
}
Step 2: Create a menu under self service for Service Portal
Step 3: Create a menu in Service Portal to take user to fulfiller view.
Portals > Choose your Service Portal > Header Menu > Create a Menu Item and set an order based on your need.
While creating menu item please note below recommendation:
The key here is to redirect user to /?.do (Do not redirect users to navpage.do or nav_to.do - The OOB script include (SPEntryPage) checks if user is in navpage or nav_to and pushes them back to Service Portal. So as highlighted redirect users to /?.do
Please mark helpful if this explanation helped you.
Best Regards,
Vivek Anand

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 06:37 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 07:32 PM
Dear
We did already provide an option to take approvers or fulfillers to backend.
Problem here is, SPEntryPage changes to force approver to portal and forces approver to stay in portal (i.e. doesn't allow approver to goto backend view.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 07:38 PM
Managed to achieve the solution for the problem statement presented above.
Its a 3 step process
Step 1 - Force approvers to portal by modifying the SPEntryPage
Step 2 - Create a menu under self service for Service Portal
Step 3 - Create a menu in Service Portal to take user to fulfiller view.
Step 1: Force approvers to portal by modifying the SPEntryPage
// Modify the SPEntryPage script include to enable redirection upon login. In Line 69 you can find the below code that is setup to take users who have a role to backend. This need to be modified.
/*
if (user.hasRoles() && !redirectURL && !isServicePortalURL)
return;
*/
// New Code below - Purpose: Want approvers to be taken to portal along with end users.
if((!user.hasRole('approver_user') || user.hasRole('admin')) && !redirectURL && !isServicePortalURL){
return;
}
Step 2: Create a menu under self service for Service Portal
Step 3: Create a menu in Service Portal to take user to fulfiller view.
Portals > Choose your Service Portal > Header Menu > Create a Menu Item and set an order based on your need.
While creating menu item please note below recommendation:
The key here is to redirect user to /?.do (Do not redirect users to navpage.do or nav_to.do - The OOB script include (SPEntryPage) checks if user is in navpage or nav_to and pushes them back to Service Portal. So as highlighted redirect users to /?.do
Please mark helpful if this explanation helped you.
Best Regards,
Vivek Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2023 12:02 AM - edited 04-21-2023 12:03 AM
Hello @VIVEK ANAND
I have used the script which you provided and its working fine. But I am facing a little issue. I will explain it below.
So we have given all the users these three role:
1. sn_request_approver_read
2. approver_user
3. snc_internal
So we want the user who have only these 3 role to be redirected to the esc and shoudn't have access to platform view.
And for other user who have additional roles along with these three roles need to be redirected to the platform/backend view.
The script is working fine for the users who have admin role, but not working for the users who don't have the admin role, but has many other roles and are forced to redirected to the esc.
Please let me know what changes should be made to the script. I appreciate your help in advance.
Best Regards,
Manish kale