Page 1 of 1

Enable a users global notifications

Posted: Wed Nov 03, 2021 8:53 am
by HIINNS
All,

I am trying to enable a users global notifications without having to logon as that user. Is there a way to do this?

Re: Enable a users global notifications

Posted: Wed Nov 03, 2021 3:21 pm
by benjaminsmith
Hi HIINNS,

You can do this directly in the database, but right now it's not possible to update user settings from the REST API.

Sample Commands:

Code: Select all

mysql -u root -pnagiosxi
use nagiosxi;
select user_id, username from xi_users;
UPDATE xi_usermeta SET keyvalue=1  WHERE user_id = 2 AND keyname='enable_notifications';
Let me know if that works for you.

--Benjamin

Re: Enable a users global notifications

Posted: Thu Nov 04, 2021 5:26 am
by HIINNS
Benjamin, got it to work. Thanks for your help.

Re: Enable a users global notifications

Posted: Thu Nov 04, 2021 9:11 am
by benjaminsmith
Hi,

Your welcome. We'll go ahead and close this out, but feel free to open another if you have any new questions.