How to Globally Set Default User Preference to Enable System Notifications?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
Kaushal Kumar Jha - ServiceNow Technical Consultant - ServiceNow Class of Legends 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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);
})();
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
Select All the record and right click on column field and select updated selected
Form will open, notification field set it to Enable and click Update
The records will be updated:
If you find this answer helpful, please mark it as helpful
Thanks and Regards,
Mohammed Zakir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
..👍
