How do I redirect agents to the HR Agent Workspace?

miro2
Mega Sage

Hi

How can agents be redirected to the HR Agent Workspace landing page when they log in to the instance, so that the workspace is their first page? Also, how can they be redirected to "/now/hr/agent/home" when they click on Homepage at the top left corner? These redirects should be controlled via user rules, ensuring that each HR agent with a basic HR role is redirected to the HR Agent Workspace.

The user clicks homepage logo , then should be redirected to /now/hr/agent/home

miro2_0-1709061522449.png


and see HR agent workspace. The same landing page user should see when they log in to the instance.

miro2_2-1709061124910.png

 

I tried to modify script include SPEntryPage, getLoginURL() but it still doesn't work. 
 

miro2_0-1709060714318.png


Has someone worked on similar use case? 

2 ACCEPTED SOLUTIONS

Hi @miro2 ,

 

I am not sure SPEntrypage work on agent workspace. But try below approach:

 

https://www.servicenow.com/community/now-platform-blog/6-ways-to-set-up-your-service-portal-for-redi...

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

View solution in original post

@Sumanth16
I also found information that the script including 'SPEntryPage' is dedicated for Service Portal only.

In the meantime, I found a way to redirect agents to the HR agent workspace using this script include SPEntryPage. This modification works, but I forgot to create the system property glide.entry.first.page.script and set it to new SPEntryPage().getFirstPageURL(). Now, users with the HR role will be redirected to the workspace when logging into the classic instance.

View solution in original post

7 REPLIES 7

Hi @miro2 ,

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

 

I'm marking my post as a solution, so that others will understand what was missing in my initial implementation.

miro2
Mega Sage

@Sumanth16 
I'm still looking for a solution to redirect agents to '/now/hr/agent/home' when they click on the homepage logo.

Any suggestions?

Edit:
I found system properties "glide.banner.image.url" to control URL used when clicking the banner image and property "glide.login.home". But my question is how to use it only for users with HR basic role? I don't want redirect all users to workspace.