Redirect upon login to Workspace

Kaustubh k
Tera Expert

Hi All,

We have a custom workspace, now whenever a user who has custom role(x) ,should redirect directly to this workspace.

How we can achieve this.

 

 

Thanks in Advance

6 REPLIES 6

@Ankur Bawiskar ,

 

I tried the solution provided and had the below script

var grSHDR = new GlideRecord('sys_homepage_destination_rule');
grSHDR.initialize();
/* set a desired name for the rule */
grSHDR.setValue('name', 'Asset Workspace Redirection Rule');
/* order of execution needs be lower for higher precedence */
grSHDR.setValue('order', '10');
/* set the preferred application scope */
grSHDR.setValue('sys_scope', 'ITEC');
/* set the landing page URL */
grSHDR.setValue('destination', 'now/itec/home');
/* set the sys_id of the user criteria record that was created earlier */
grSHDR.setValue('user_criteria', '78c20265c3530210662bbf0d0501313d');
grSHDR.insert();

But it is not working.

Thanks

@Kaustubh k 

did that record get created properly?

why not create the above record in global scope

it has worked for developers in past using homepage redirect rules

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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