How to set notification preferences for all users are same as per their role.

mmr
Tera Contributor

Hi Team,

We would like to set same notification preferences for all users based on their role. When I checked in Roles and groups forms, did not find any option to configure preferences in roles or groups. So here do we need to achieve this by writing some scripting? please suggest on this.

11 REPLIES 11

Ashish Nahar
Kilo Guru

UI page for notification preferences is "notification_preferences" you can perform certain task in the processing script. You can define your steps here.



below is the current glide call it makes.



var messageSysId = notifs[i];
var notif = new GlideRecord('cmn_notif_message');
              notif.get(messageSysId);
if (notif.notification.mandatory == true)

continue;


Hello Ashish,

 

i need to hide the notifications based on roles .

for ex- i have test user which have pps_resource role and also checked the cmn_notif_message table ,only 4 records(rejected,cancelled,estimated and Submitted )  are there it means he will receive only those 4 notifications  but when i checked the Notification by clicking on Settings option - he is able to see all default notification under Notification by category .

How can i achieve this ? kindly suggest .

find_real_file.png

 

Regards,

Namrata