How to reset all users preference?


How to reset all users preferences?

I mean I can go to admin->user management-> reset user preferences

But what if I do some crucial or not changes and wanna all users can see those updates immediately?

For example cases, I faced just now

I modify the Global Search Module list - enable some module and those modules will appear as ‘disable module’

Every user should manually enable it

I think it will be good if will be a way to manually rest all users preferences at on click (SuiteCRM can be stored more 100 users…)

This will copy one user’s saved search for all other users:

This one is a more elegant code-based solution for the same:

This is not exactly what you need, but you can get insights from that: the user preferences are base64-encoded in the same way, only they are found in the user_preferences table.