# Notification default settings for new users

**URL:** <https://forum.mattermost.com/t/notification-default-settings-for-new-users/15378>\
**Category:** Troubleshooting\
**Created:** [March 15, 2023, 3:29pm UTC](https://forum.mattermost.com/t/notification-default-settings-for-new-users/15378 "2023-03-15T15:29:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![brrrr66](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/brrrr66/32/6544_2.png) [@brrrr66](https://forum.mattermost.com/u/brrrr66)\
**Post date:** [March 15, 2023, 3:29pm UTC](https://forum.mattermost.com/t/notification-default-settings-for-new-users/15378/1 "2023-03-15T15:29:17Z")

</div>

Hello!  
Tell me, how can I set the default settings for new users?  
Specifically interested in notification settings.

 ![image3](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/5/5bf0bc38a697008b653a8e31418d47b16c6238e4.png)  
 ![image2](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/2/22645fd68bce6210e5dc21bd730fbc92d74499da.png)  
 ![image1](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/0/086e4f8d06f6dcf6da6f006c2687d494780562c7.png)

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [March 15, 2023, 4:02pm UTC](https://forum.mattermost.com/t/notification-default-settings-for-new-users/15378/2 "2023-03-15T16:02:56Z")

</div>

Unfortunately, this is not possible at the moment, since these are user settings. You would have to set the preferences and user properties manually in the database or via the API after user creation.

If that’s something you control (like you are the ones who create the new accounts) then you can also add this additional information and set these additional settings. If your users are signing up for theirselves and you have no control over when they log in, it’s a bit trickier.

There might be plugins out their in the wild that support things like that, but I’m not aware of one, sorry.

---

<div class="post-metadata">

**Author:** ![brrrr66](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/brrrr66/32/6544_2.png) [@brrrr66](https://forum.mattermost.com/u/brrrr66)\
**Post date:** [March 15, 2023, 6:09pm UTC](https://forum.mattermost.com/t/notification-default-settings-for-new-users/15378/3 "2023-03-15T18:09:52Z")

</div>

Understood. There is full access to the system, I [found a solution on the forum](https://forum.mattermost.com/t/disabling-user-email-notifications-by-default/3901/11) to change other settings, it remains to find what to change. 🙂

---

<div class="post-metadata">

**Author:** ![brrrr66](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/brrrr66/32/6544_2.png) [@brrrr66](https://forum.mattermost.com/u/brrrr66)\
**Post date:** [March 15, 2023, 6:12pm UTC](https://forum.mattermost.com/t/notification-default-settings-for-new-users/15378/4 "2023-03-15T18:12:07Z")

</div>

It is not solved through mmctl?

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [March 16, 2023, 5:35am UTC](https://forum.mattermost.com/t/notification-default-settings-for-new-users/15378/5 "2023-03-16T05:35:46Z")

</div>

No, mmctl does not allow to set user preferences at the moment.  
I cannot find a solution in the issue you linked - it’s just talking about queries to read the notification properties, but what you could do is you create a new user and make sure the settings look exactly like you want them to have with regards to the Notifications and all other things and then you can make a note of the `NotifyProps` as well as of the user preferences and apply them to every new user, either via the API or directly via the database.

---

<div class="post-metadata">

**Author:** ![brrrr66](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/brrrr66/32/6544_2.png) [@brrrr66](https://forum.mattermost.com/u/brrrr66)\
**Post date:** [March 16, 2023, 3:22pm UTC](https://forum.mattermost.com/t/notification-default-settings-for-new-users/15378/6 "2023-03-16T15:22:55Z")

</div>

Changed the settings for their users like this:

```auto
update Users set NotifyProps = jsonb_set(NotifyProps, '{desktop}', '"all"') where Email like '%domain.my';
update Users set NotifyProps = jsonb_set(NotifyProps, '{email}', '"false"') where Email like '%domain.my';
update Users set NotifyProps = jsonb_set(NotifyProps, '{push}', '"all"') where Email like '%domain.my';
update Users set NotifyProps = jsonb_set(NotifyProps, '{push_status}', '"online"') where Email like '%domain.my';

```

Thanks!

PS  
Logoff/login is required to apply the settings

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [March 17, 2023, 5:00am UTC](https://forum.mattermost.com/t/notification-default-settings-for-new-users/15378/7 "2023-03-17T05:00:52Z")

</div>

Thanks for sharing the solution with us! I’m marking this issue as resolved now.

---

<div class="post-metadata">

**Author:** ![Michal-Mikolas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/michal-mikolas/32/8258_2.png) [@Michal-Mikolas](https://forum.mattermost.com/u/Michal-Mikolas)\
**Post date:** [September 24, 2024, 1:34pm UTC](https://forum.mattermost.com/t/notification-default-settings-for-new-users/15378/8 "2024-09-24T13:34:54Z")

</div>

Hello, please how to do it via API ?

EDIT: Never mind, I’ve just figured out:

```auto
fetch(`https://{{SERVER_URL}}/api/v4/users/${userId}/patch`, {
    method: 'PUT',
    headers: {
        'Content-Type': 'application/json',
        'Authorization': `Bearer {{MATTERMOST_TOKEN}}`
    },
    body: JSON.stringify({
        "notify_props": {
            "desktop": "all",
            "desktop_sound": "true",
            "push": "all",
            "push_status": "online"
        }
    })
})

```
