End User login to Service Portal

SNOW46
Tera Contributor

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

1 ACCEPTED SOLUTION

Michael Fry1
Kilo Patron

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:

 

find_real_file.png

View solution in original post

16 REPLIES 16

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?

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

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'

 

find_real_file.png

Hi Michael,

Based on your suggestion, I have modified the script.Please find the below screenshots if I am going in the right direction.

find_real_file.png

find_real_file.png

 

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.

 

Looks ok to me - but does it work!?