The CreatorCon Call for Content is officially open! Get started here.

Redirecting user

Steve2000
Tera Contributor

Hello,

 

I used the docs regarding to "redirecting user to Service Portal"

I followed the instructions, but when I impersonate a user on my instance, it doesn´t redirect me to the ServicePortal site instead I´m landing on the SOW page. I can´t figure out why this happens.

 

I set the value in the sys_property glide.entry.first.page to new SPEntryPage().getFirstPageURL()

In the Script Include SPEntryPage I changed this.logVariables to "true"

 

If the impersonate user has no roles, he should be redirected to the SP, shouldn´t he?

 

1 ACCEPTED SOLUTION

Hi @Steve2000 ,

If you want  itil users to be redirected to portal then modified condition in script include "SPEntryPage" as below.

if (user.hasRoles() && !user.hasRole("itil") && !redirectURL && !isServicePortalURL)
            return;
 
Please mark my answer as helpful if you find this is helpful.

View solution in original post

11 REPLIES 11

I want another option, that when the user has only one specific role or no role at all, that he redirects to the service Portal

Community Alums
Not applicable

Hi Steve , Are you able to get the requirement (the user has only one specific role or no role at all, that he redirects to the service Portal) done . please share the steps what was done to achieve this . i have similar requirement and not able to figure it out.