# Schedule DND for all users

**URL:** <https://forum.mattermost.com/t/schedule-dnd-for-all-users/6417>\
**Category:** Troubleshooting\
**Created:** [December 26, 2018, 2:20pm UTC](https://forum.mattermost.com/t/schedule-dnd-for-all-users/6417 "2018-12-26T14:20:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yatin](https://avatars.discourse-cdn.com/v4/letter/y/a183cd/32.png) [@yatin](https://forum.mattermost.com/u/yatin)\
**Post date:** [December 26, 2018, 2:20pm UTC](https://forum.mattermost.com/t/schedule-dnd-for-all-users/6417/1 "2018-12-26T14:20:15Z")

</div>

Is there any way by which we can Turn ON/OFF DND status for all the users and we can schedule it.  
So the outcome would be that status of all the users will be changed to Do Not Disturb irrespective of them being Online/Offline/Away.

---

<div class="post-metadata">

**Author:** ![jasonblais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/jasonblais/32/720_2.png) [@jasonblais](https://forum.mattermost.com/u/jasonblais)\
**Post date:** [December 30, 2018, 3:56am UTC](https://forum.mattermost.com/t/schedule-dnd-for-all-users/6417/2 "2018-12-30T03:56:26Z")

</div>

Hey @yatin,

I think a plugin for your Mattermost server would work great here. Here is more information about plugins: [https://developers.mattermost.com/extend/plugins/](https://developers.mattermost.com/extend/plugins/)

With our plugin framework, you can create a plugin which updates user’s status based on custom criteria that you’ve specified. Here is the plugin API call that let’s you update user’s statuses [https://developers.mattermost.com/extend/plugins/server/reference/#API.UpdateUserStatus](https://developers.mattermost.com/extend/plugins/server/reference/#API.UpdateUserStatus)

If you have any questions, don’t hesitate to let us know!
