Default dashboard to member of group

Rocky5
Kilo Sage

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.

2 REPLIES 2

Jaspal Singh
Mega Patron
Mega Patron

You need to create entries for the Users in User Administration >> User preferences

find_real_file.png

 

Where you pass sys_id of dashboard & user name accordingly in user field.

I doubt this can be set dynamically unless there are some UI Scripts that is in place.

Community Alums
Not applicable

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