Redirect users to Workspace directly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi All,
How can we redirect certain users on the basis of roles directly to a custom workspace as soon as they log in.
Thanks in Advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
You can redirect users to a specific Workspace based on their role at login using the glide.entry.page.script system property.
Step 1: Create a Script Include
Navigate to:
System Definition → Script Includes
Create a new Script Include:
Name:
RoleBasedWorkspaceRedirectAccessible from: All application scopes
Client callable: Unchecked
Add the following script:
RoleBasedWorkspaceRedirect.prototype = {
getRedirectURL: function() {
var user = gs.getUser();
if (user.hasRole('admin')) {
return '/now/workspace/admin';
}
if (user.hasRole('itil')) {
return '/now/workspace/agent';
}
if (user.hasRole('sn_hr_core.basic')) {
return '/now/workspace/hr';
}
return '/now/nav/ui/home'; // Default fallback
},
type: 'RoleBasedWorkspaceRedirect'
};
Step 2: Set the System Property
Navigate to: System Properties → Security
Open property: glide.entry.page.script
Set its value to: new RoleBasedWorkspaceRedirect().getRedirectURL();
Save the property.
If this solution resolved your issue, please consider marking it as Helpful or Correct so others can benefit from it as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @Kaustubh k ,
1) Navigate to System properties > "glide.ux.user_criteria_enabled"
-> check if it is enabled or not
2) Then navigate to User Criteria Records > search "ITIL non-admin"
-> Add the Users, Groups or Roles you want redirect to the workspace
If my response helped mark as helpful and accept the solution.
