Redirect upon login to Workspace
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader