Skip to main content
Solved

Block Non-Company Emails From Outlook on macOS

  • January 9, 2023
  • 2 replies
  • 117 views

Forum|alt.badge.img+1

Hey JAMF Nation Community!

I was exploring with my team and wanted to see if there's a way to block users from adding a personal O365 account to their Outlook via a plist. I've checked around JAMF Nation and online and haven't seen anyone bring this up. Just wanted to see if anyone has implemented a solution in their own environments? 

Thanks!

Best answer by McAwesome

I believe the setting you are looking for is "AllowedEmailDomains"
https://learn.microsoft.com/en-us/deployoffice/mac/preferences-outlook#allow-only-corporate-mailboxes-to-be-added

If you, like me, hate making plists, you can also use this Custom Settings Json to handle configuring things
https://github.com/Jamf-Custom-Profile-Schemas/ProfileManifestsMirror/blob/main/manifests/ManagedPreferencesApplications/com.microsoft.Outlook.json 

2 replies

Forum|alt.badge.img+16
  • Honored Contributor
  • Answer
  • January 9, 2023

I believe the setting you are looking for is "AllowedEmailDomains"
https://learn.microsoft.com/en-us/deployoffice/mac/preferences-outlook#allow-only-corporate-mailboxes-to-be-added

If you, like me, hate making plists, you can also use this Custom Settings Json to handle configuring things
https://github.com/Jamf-Custom-Profile-Schemas/ProfileManifestsMirror/blob/main/manifests/ManagedPreferencesApplications/com.microsoft.Outlook.json 


Mayank
Forum|alt.badge.img+1
  • New Contributor
  • July 27, 2023

Hello, Give a try to below terminal script it. You need to enter only the domains which you want to be added to your test tenant and then check the behaviour.

Terminal script:  defaults write com.microsoft.Outlook AllowedEmailDomains -array "domain1.com" "domain2.com" "domain3.com'

Note: This script will restrict the user to configure a personal mailbox in the Outlook app but it will not restrict a user already configured a personal mailbox in the Outlook app.