How to redirect agent to different page(custom workspace landing and UI16 homepage based on role

PVJShareKnowled
Tera Guru

We created a custom workspace using app engine studio for a custom app. We have 2 group of users(GroupA and GroupB) with 2 different roles(RoleA and RoleB). 

 

Requirement: 1. Auto redirect users of GroupA to landing page of custom workspace right after logging in. 

2. Auto redirect users of GroupB to home page of UI16 right after logging in.

 

how to achieve this. Please help

 

#Workspace #redirect #customapp #appenginestudio #landingpage

If this input helped you, please give a thumbs up. It encourages me to answer more questions and support our community.

Regards,


Priyanka Jeganathan
4 REPLIES 4

Dibyaratnam
Tera Sage

You might need to take help of SPEntrypage script include where you can set the first page after login.

Hi @Dibyaratnam ,

I tried to modify the SPEntrypage script like below still it takes all the user to "intance.service-now.com/now/nav/ui/home". Please let me know what else am missing or is this not correct.

PVJShareKnowled_0-1715354357286.png

 



If this input helped you, please give a thumbs up. It encourages me to answer more questions and support our community.

Regards,


Priyanka Jeganathan

Go to system property and check if glide.entry.first.page.script property is present or not. If not then you need to add this property and make changes accordingly in spentrypage.

Follow the below article.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0746730

Ben_G
Tera Expert

Look at how the Landing Page works for Unified Navigation Landing Page - Service Operations Workspace Audience in the Unified Navigation app.

I've copied it's functionality before.

General idea it to create a new landing page, put an audience on it and then have the page run a redirect to the right URL.