- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2018 08:45 AM
Hello All,
Actually though I am working on MSP Instance so I have configured one new Service Portal same as OOB Service Portal.
And added some new widgets also I have cloned the homepage and made that SP as default.
I want to set the end user login for that particular domain that when an End User belonging to that Domain once logins to SNOW will redirect to Service Portal Homepage.
Can anyone suggest me how to achieve this.
Thanks,
SNOW@Das
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2018 09:25 AM
The script includes SPEntryPage controls routing to default portal. You can modify script and grab users domain, then based on domain, route to appropriate portal:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-15-2018 09:28 AM
It looks fine to me, except I'm not positive if getDomainID is returning sysID since I don't have domain sep instance to test it out. Otherwise, it looks fine. If you impersonate a user in that domain, are they redirected to accsp portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2018 10:17 AM
Hi Michael,
Sorry for late posting. It really worked for me. When I impersonate an end user it redirects to Service Portal Page. Can you please let me know one more query if I give the user an end user role and how it will redirect to SP Page.
In the same Script Include where do I need to add the condition checking if the user belongs to that particular domain and also has the end user role, then it will redirect to Service Portal Page.
Awaiting for your sweet response on the same.
Thanks,
SNOW@Das

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2018 10:32 AM
Line 69 in the same Script Includes SPEntryPage checks for user to have roles. You would need to change that line to something like:
if (user.hasRoles() && !gs.hasRole('somerole') && !redirectURL && !isServicePortalURL)
as for the domain part, you can probably add on to the same line. && domainID != 'sysID'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2018 11:04 AM
Hi Michael,
Based on your suggestion, I have modified the script.Please find the below screenshots if I am going in the right direction.
I have modified in the domain condition one line added and also in the user role condition as well.
Please review and let me know any thing needs to be changed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2018 11:16 AM
Looks ok to me - but does it work!?