Route user to a custom portal after login

tpeleg
Tera Expert

Hello experts,

 

I'm trying to route a user to an custom portal, based on a user attribute (domain - sys_domain).

Using SPEntryPage script, I found a limitation to retrieve logged in user domain by quering sys_user table with

gr.get(gs.getUserID());
It's always returns the 'guest' user details.
 
any suggestions?
 
Thanks,
 
Tomer
3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@tpeleg 

check these links

6 ways to set up your Service Portal for redirection SUCCESS! 

How to configure redirection for Service Portal 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

tpeleg
Tera Expert

Hello and thank you @Ankur Bawiskar ,

in the end I solved it using 

getFirstPageURL function in SPEntryPage
there is an option to get user's attribute.
 
Thanks,
 
Tomer.

@tpeleg 

Glad to help.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader