block access to emails on weekends

Flavio Mildemberger 0 Reputation points
2023-06-12T15:44:47.29+00:00

I have 3 domains in the office 365 portal and I would like to configure one of them so that users do not have access to emails on weekends. How do I do it?

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Kai Yao 37,776 Reputation points Moderator
    2023-06-13T07:11:20.16+00:00

    Hi @Flavio Mildemberger

    To my knowledge there is no built-in method to block access to mailboxes based on specific time period.

    It is possible with running scheduled scripts to disable access on weekends then re-enable access on workdays in Exchange Online, but it is very complicated and may sometimes have delay to take effect.

    If the main concern here is to prevent users from accessing their mailboxes data from home or other places (outside office), I would suggest using conditional access policy to create ip based policy to block access from other locations.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.