exchange 2019 block user group from OWA

David McBride 301 Reputation points
2021-08-18T14:55:29.077+00:00

I’m working on an on-prem Exchange 2019 farm that is multi-tenant. I am being asked to find a way to block OWA for just some of the tenants. The tenants are separated by OU, GAL and domain space and etc…. I have browsed to the file system path C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy and set permissions on the OWA directory by adding a test user and setting the explicit Deny on all severs. That user can still log into OWA. Any other ideas?
Thanks!!

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,342 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kael Yao-MSFT 37,491 Reputation points Microsoft Vendor
    2021-08-19T02:18:09.593+00:00

    Hi @David McBride

    If you would like to disable OWA access for users in specified OUs, I suppose you may use the following command in Exchange Management Shell:

    Get-mailbox -OrganizationalUnit "Contoso.com/Tailspintoys" | Set-CASMailbox -OWAEnabled:$false  
    

    It would disable OWA for all users in the Tailspintoys OU.

    When users enter their credentials to log in OWA, they would see the following error:
    124466-10.jpg

    You may also do it in Exchange Admin Center.
    Here is a link on this topic for your reference: Enable or disable Outlook on the web access to mailboxes in Exchange Server


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.