Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Hello @Daniel Klobnak !
I understand you need to block Web Access to Exchange Online!
Conditional Access Policy is the best fit
Create a Policy with Cloud App set to Exchnage Online
Then you can select the User APP , so in this Case Web Client :
Also there is a link for your issue exaclty ( i think )
Limit access to Exchange Online from Outlook on the web
You can restrict the ability for users to download attachments from Outlook on the web on unmanaged devices. Users on these devices can view and edit these files using Office Online without leaking and storing the files on the device. You can also block users from seeing attachments on an unmanaged device.
Here are the steps:
Connect to Exchange Online PowerShell.
If you don't already have an OWA mailbox policy, create one with the New-OwaMailboxPolicy cmdlet.
- If you want to allow viewing of attachments but no downloading, use this command:
PowerShellCopy
Set-OwaMailboxPolicy -Identity Default -ConditionalAccessPolicy ReadOnly
- If you want to block attachments, use this command:
PowerShellCopy
Set-OwaMailboxPolicy -Identity Default -ConditionalAccessPolicy ReadOnlyPlusAttachmentsBlocked
In the Azure portal, create a new Conditional Access policy with these settings:
Assignments > Users and groups: Select appropriate users and groups to include and exclude.
Assignments > Cloud apps or actions > Cloud apps > Include > Select apps: Select Office 365 Exchange Online
Access controls > Session: Select Use app enforced restrictions
Let me know whether this covers you or you need more help !
I hope this helps!
Kindly mark the answer as Accepted and Upvote in case it helped!
Regards