Redirecting ITIL User to Backend instead Portal

sattar3
Tera Contributor

Hello All,

 

In our instance users are redirecting to portal, now we have requirement that "itil" users must redirect to backend instead portal after login/impersonating.

 

Can someone please help me on this.

 

@Ankur Bawiskar  @Mark Roethof @Aman Kumar S 

 

Thanks.

8 REPLIES 8

so what happens in the line 94, if user has roles, the code suspends there, you need to add check here:

add below line before 94

if(!gs.hasRole("itil")){

if (user.hasRoles() && !redirectURL && !isServicePortalURL)
return;

}

 

Best Regards
Aman Kumar

saurabh_dubey
Kilo Sage

Kishor O
Tera Sage

@sattar3 I have a similar requirement.

How you have done this, can you please give some suggestion?

sattar3
Tera Contributor

@Kishor O  you need to modify your Script Include(SPEntryPage)  function getFirstPageURL if condition like below. 

 

if ((gs.hasRole('admin') || gs.hasRole('itil')) && !redirectURL && !isServicePortalURL && !gs.isMobile())
            return;
For me the above code works.
 
Thanks.