I have set up SonarQube 5.2 installation, and I want to enable notifications for new users by default. What I mean is these checkboxes in user profile. I couldn't find an answer in the documentation, the available plugins, the Internet, if anybody had a similar question. What I have found so far is user properties in the SQ database:
sonar=# select * from properties where user_id=6;
id | prop_key | resource_id | text_value | user_id
----+-------------------------------------------------------------+-------------+------------+---------
85 | favourite | 3260 | | 6
91 | notification.ChangesOnMyIssue.EmailNotificationChannel | | true | 6
92 | notification.NewFalsePositiveIssue.EmailNotificationChannel | | true | 6
93 | notification.SQ-MyNewIssues.EmailNotificationChannel | | true | 6
94 | notification.NewIssues.EmailNotificationChannel | | true | 6
95 | notification.NewAlerts.EmailNotificationChannel | | true | 6
(6 rows)
I have even searched through the source code, but haven't found how to set user properties on user registration. What is the best way to achieve that?
The documentation has been updated to be specific on this case: no functionality is provided to subscribe another user to notifications. Each user must choose to receive notifications himself.