How to Globally Set Default User Preference to Enable System Notifications?

AnaLucíaR
Tera Contributor

I need to massively enable System Notifications for all users in my ServiceNow instance.

 

This setting should apply as the default value for all users who have not yet configured this preference personally.

I previously achieved a similar task for Show help tips on forms by modifying the relevant User Preference record where the User field was empty and the System field was set to true.

I am looking for the exact Name of the User Preference record (or property) that controls the "Allow Notifications" setting, so I can set its default Value to true globally.

Could you please provide the correct Name of the preference for system notifications?

4 REPLIES 4

kaushal_snow
Giga Sage

@AnaLucíaR ,

 

User preference that controls whether a user receives system notifications isn’t controlled by a special notification user preference record but rather by the notification field on the user record (sys_user.notification), which is the backend field that the allow notifications toggle in the user preferences ui maps to,.......so to globally set the default for all users who haven’t set their own preference you would create or update a default sys_user_preference record with the name matching that preference (effectively replicating the notification attribute for users when the user is empty and system is true), because default preferences only apply to users who haven’t configured their own settings......

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Technical Consultant - ServiceNow Class of Legends 2025

Ankur Bawiskar
Tera Patron
Tera Patron

@AnaLucíaR 

for this there is no user preferences, it's controlled from Notification field on user table

you can run a fix script to enable that

(function executeFixScript() {
    // Enable notifications for all active users that have them disabled
    var grUser = new GlideRecord('sys_user');
    grUser.addActiveQuery(); // only active users
    grUser.addQuery('notification', '2'); // 2 = Disable
    grUser.query();

    gs.info('Starting user notification enablement. Records found: ' + grUser.getRowCount());

    var count = 0;
    while (grUser.next()) {
        grUser.setValue('notification', '1'); // 1 = Enable
        grUser.update();
        count++;
    }

    gs.info('User notification enablement completed. Records updated: ' + count);
})();

AnkurBawiskar_0-1765693028048.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Mohammed8
Giga Sage

Hi @AnaLucíaR ,

I have gone through documents, I didn't find one for notification user preference you are asking for like you did for tool tips.

If you want to enable notification for all , One way i would recommend is go to sys_user table, In list view get records where notification is Disabled.

 

Mohammed8_0-1765701137176.png

 

Select All the record and right click on column field and select updated selected

 

Mohammed8_1-1765701244638.png

 

Form will open, notification field set it to Enable and click Update

 

Mohammed8_2-1765701351479.png

 

The records will be updated:

 

Mohammed8_3-1765701437005.png

 

If you find this answer helpful, please mark it as helpful

 

Thanks and Regards,

Mohammed Zakir

JoelNichoA
Giga Contributor

..👍