How to Bulk Set Post-Login Landing Pages for Users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello community,
As a system administrator, do you know how to set the post-login landing page for multiple users at once, based on their group or role?
For example, I would like users in the Sales department to be taken directly to the Project Workspace after logging in.
Similarly, I want users in the Materials Management department to land on the CSM/FSM Configurable Workspace upon login.
I already understand how to set the start page individually for each user, such as by using the method shown in the link below or by clicking the icon and setting the start page from User Experience:
https://www.servicenow.com/docs/ja-JP/bundle/washingtondc-platform-user-interface/page/administer/na...
However, I would like to know how to set the post-login landing page in bulk for dozens or hundreds of users, based on their organization or role.
Thank you,
- Labels:
-
CSM Configurable Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi!
You can set post-login landing pages in bulk using either of these approaches:
1. Bulk update homepage field
Use a background script to set the start page for users in a role or group:
var gr = new GlideRecord('sys_user');
gr.addQuery('groups', 'GROUP_SYS_ID'); // or filter by role
gr.query();
while (gr.next()) {
gr.setValue('homepage', 'WORKSPACE_SYS_ID');
gr.update();
}2. Dynamic redirect at login
Use a login script to redirect users based on role/group:
if (gs.hasRole('sales_role')) {
gs.getSession().setRedirectURL('/project_workspace');
} else if (gs.hasRole('materials_role')) {
gs.getSession().setRedirectURL('/csm_fsm_workspace');
}Roles are easier to maintain than individual users, and this ensures users always land on the correct workspace.
@keisuke miya - Please mark as Solution Accepted and Thumbs up if you find helpful!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
you can handle this using Homepage Destination Rule, create those many User Criteria you want
Homepage Redirect Rules in Next Experience
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Matthew_13 @Ankur Bawiskar ,
Thank you for the helpful information—it was very informative.
Ideally, I would like to implement this out-of-the-box without using scripts, but I will also consider the background script approach you suggested.
Thanks again,
Keisuke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I will recommend to use homepage redirect rules as that's what ServiceNow has offered OOTB
Thank you for marking my response as helpful.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
