Share via

exchange 2019 block user group from OWA

David McBride 306 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 | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Kai Yao 37,791 Reputation points Moderator
    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.

    Was this answer helpful?


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.