Default dashboard to member of group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 06:26 AM
Hello Experts,
I wanted to set the default dashboard to the user based on the group membership. i.e. If a user is added to the group 'A' the user preference of user should be set to "dashboards" from "homepages" and he/she should see a Dashboard 'A' when they login.
Any help with the script is much appreciated.
Thanks,
Rocky.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 06:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 06:33 AM
Hi Rocky,
You could create a business rule on the sys_user_grmember table to run after an insert or update. In the script field (Advanced), set the user's homepage preference to be the homepage or dashboard you want based on the group.
Here is the code :https://community.servicenow.com/community?id=community_question&sys_id=7f078be5db1cdbc01dcaf3231f96...
Also, refer to this :https://community.servicenow.com/community?id=community_question&sys_id=f6bae89fdb9f8550fd8d2b691396...
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep