Enabling Modern Auth for Outlook – How Hard Can It Be?
Published Apr 19 2021 01:52 PM 110K Views

Since we announced in 2019 that we would be retiring Basic Authentication for legacy protocols we have been encouraging our customers to switch to Modern Authentication. Modern Authentication, based on OAuth2, has a lot of advantages and benefits as we have covered before, and we’ve yet to meet a customer who doesn’t think it is a good thing. But the ‘getting there’ part might be the hard part, and that’s what this blog post is about.

This post is specifically about enabling Modern Authentication for Outlook for Windows. This is the client most widely used by many of our customers, and the client that huge numbers of people spend their day in. Any change that might impact those users is never to be taken lightly.

As Admin, you know you need to get those users switched from Basic to Modern Auth, and you know all it takes is one PowerShell command. You took a look at our docs, found the article called Enable or disable Modern Authentication for Outlook in Exchange Online | Microsoft Docs and saw that all you need to do is read the article (which it says will take just 2 minutes) and then run:

Set-OrganizationConfig -OAuth2ClientProfileEnabled $true

That sounds easy enough. So why didn’t you do it already?

Is it because it all sounds too easy? Or because there is a fear of the unknown? Or spiders? (We’re all scared of spiders, it’s ok.)

We asked some experts at Microsoft who have been through this with some of our biggest customers for their advice. And here it comes!

Expert advice and things to know

“Once Exchange Online Modern Authentication is enabled for Outlook for Windows, wait a few minutes.”

That was the first response we got. It was certainly encouraging, but wasn’t exactly a lot of information we realized, so we dug in some more, and here’s what we found.

One thing you need to remember that enabling Modern Authentication for Exchange Online using the Set-OrganizationConfig parameter only impacts Outlook for Windows. Outlook on the Web, Exchange ActiveSync, Outlook Mobile or for Mac etc., will continue to authenticate as they do today and will not be impacted by this change.

Once Modern Authentication is turned on in Exchange Online, a Modern Authentication supported version of Outlook for Windows will start using Modern Authentication after a restart of Outlook. Users will get a browser-based pop up asking for UPN and Password or if SSO is setup and they are already logged in to some other services, it should be seamless.

If the login domain is setup as Federated, the user will be redirected to login to the identity provider (ADFS, Ping, Okta, etc.) that was set up. If the domain is managed by Azure or set up for Pass Through Authentication, the user won’t be redirected but will authenticate with Azure directly or with Azure on behalf of your Active Directory Domain Service respectively.

Take a look at your Multi-Factor Authentication (MFA)/Conditional Access (CA) settings. If MFA has been enabled for the user and/or Conditional Access requiring MFA has been setup for the user account for Exchange Online (or other workloads that have a dependency on Exchange Online), then the user/computer will be evaluated against the Conditional Access Policy.

  • Here is an example of a CA policy with Condition of Client App “Mobile apps and desktop clients”. This will impact Outlook for Windows with Modern Authentication whereas “Other Clients” would impact Outlook for Windows using Basic Authentication, for example.
  • enablingmaol01.jpgNext is Access Control Grant in CA requiring MFA. If Outlook for Windows was using Basic Authentication, this would not apply since MFA depends on Modern Authentication. But once you enable Modern Authentication, users in the scope of this CA policy would be required to use MFA to access Exchange Online.

enablingmaol02.jpg

The Modern Authentication setting for Exchange Online is tenant-wide. It’s not possible to enable it per-user, group or any such structure. For this reason, we recommend turning this on during a maintenance period, testing, and if necessary, rolling back by changing the setting back to False. A restart of Outlook is required to switch from Basic to Modern Auth and vice versa if roll back is required.

It may take 30 minutes or longer for the change to be replicated to all servers in Exchange Online so don’t panic if your clients don’t immediately switch, it’s a very big infrastructure.

Be aware of other apps that authenticate with Exchange Online using Modern Authentication like Skype for Business. Our recommendation is to enable Modern Authentication for both Exchange and Skype for Business.

Here is something rare, but we have seen it… After you enable Modern Authentication in an Office 365 tenant, Outlook for Windows cannot connect to a mailbox if the user’s primary Windows account is a Microsoft 365 account that does not match the account they use to log in to the mailbox. The mailbox shows “Disconnected” in the status bar.

This is due to a known issue in Office which creates a miscommunication between Office and Windows that causes Windows to provide the default credential instead of the appropriate account credential that is required to access the mailbox.

This issue most commonly occurs if more than one mailbox is added to the Outlook profile, and at least one of these mailboxes uses a login account that is not the same as the user’s Windows login.

The most effective solution to this issue is to re-create your Outlook profile. The fix was shipped in the following builds:

  • For Monthly Channel Office 365 subscribers, the fix to prevent this issue from occurring is available in builds 16.0.11901.20216 and later.
  • For Semi-Annual Customers, the fix is included in builds 16.0.11328.20392 (Version 1907) and later.

You can find more info on this issue here and here.

That’s a list of issues we got from the experts. Many customers have made the switch with little or no impact.

How do you know Outlook for Windows is now using Modern Auth?

When using Basic Auth, the Outlook Connection Status “Authn” column shows “Clear*”

enablingmaol03.jpg

Once you switch to Modern Auth, the Connection Status in Outlook showing Modern Authentication “Authn” column shows “Bearer*”

enablingmaol04.jpg

And that’s it!

The biggest thing to check prior to making the change are your CA/MFA settings, just to make sure nothing will stop access from happening and making sure your users know there will be a change that might require them to re-authenticate.

Now you know what to expect, there is no need to be afraid of enabling Modern Auth. (Spiders, on the other hand… are still terrifying, but that’s not something we can do much about.)

Huge thanks to Smart Kamolratanapiboon, Rob Whaley and Denis Vilaca Signorelli for the effort it took to put this information into a somewhat readable form.

If you are aware of some other issues that might be preventing you from turning this setting on, let us know in comments below!

The Exchange Team

26 Comments
Copper Contributor

What about exchange on-premises? Edge use cases where mailboxes are disconnected for a period of time. List can go on. 

Steel Contributor

We were finding that on occasions enabling Modern Authentication also caused Outlook to hang on startup when also using Skype for Business.

The registry key in this article helped us out and is also worth a mention https://docs.microsoft.com/en-us/skypeforbusiness/troubleshoot/hybrid-exchange-integration/allowadal...

Imho There's nothing wrong to enforce MFA, perferably with Microsoft Authenticator, on Office 365, and not using an static app password. 

 

The config can also be found in admin.office.com without PowerShell

 

If you use Outlook 2016, 2019,(2022),365 they don't need manual config, except from the setting in the Admin portal settings. 

Copper Contributor

Can we enable SMTP only with Modern Auth (and with Basic Auth) disabled. If so, how do we do thsi?

Copper Contributor

I still see Clear* in Connection Status for my Office 365 email in July 2021.  Does my administrator need to manually enable/require modern authentication for Office 365?

Copper Contributor

We are being told by support staff that for Schedule Free/Busy to work EWS must be enabled.   Schedule Free/Busy is not being addressed in the series of articles on disabling basic auth.

Silver Contributor

If Modern Authentication is enabled in the M365 Admin Center, is running the above powershell command still needed?

@Dean Gross nope it will work with modern Office Apps. 

Copper Contributor

If I missed this I apologize. Our Organization is currently set with basic auth in O365. All users have 2 MFA set and use Outlook 2016 on the PC and varies on their mobile devices. Right now they activate Office applications with their user / pwd and receive a text code to type in. In Outlook on a PC they use the App Password to add the account. 

 

My Question: Once I enable Modern Auth, what is the experience each user in the org will have? Will they need to go back to the O365 Portal and login, setup a new auth method? Or will Outlook just prompt them to re-authenticate using user/pwd? Do the users now all have to download and install the Microsoft Auth app? I've been trying to get them to do that over the years, but no luck so far.

 

Thank you for any guidance you offer.

 

Wade

Copper Contributor

@FMAAdmin 

Same situation here: MFA, Outlook 2016 and app passwords. If you enable Modern Authentication the users will have to re-authenticate when they restart Outlook. They'll have to use their "normal" username and password and use their MFA code that they will receive in the Authenticator or via text/sms or... They don't need to go to the portal to set up a new auth method.

Note: if they already have another Microsoft product with modern authentication running on their pc like Teams, they won't have to re-authenticate so they won't even notice you enabled it!

@Stroomtang @FMAAdmin if you enable modern authentication you do not need any app password and if your GPO are set correctly for Azure AD SSO (IE settings etc.) then theres a seemless SSO and no further ado for the user.

Copper Contributor

Hi everybody, new at this group :)

Outlook today blocked all connections to my several Gmail accounts.

I see in this thread how to activate the modern Auth for Outlook, but I have just switched to Outlook 2021 and so I expected that Oauth was automatically included/active in it.

Nevertheless, I can't find Oauth so I'll have to activate it, I suppose.

Can somebody please confirm a correct/simple procedure to activate the modern Auth on Outlook 2021, and confirm that this will fix the problem with my Gmail accounts?

I really thank you for any help with this :stareyes:

Ciao from Rome,

Rita

@rita1957 - Outlook didn't block access to your Gmail accounts - Google did. Less secure apps & your Google Account - Google Account Help 

Copper Contributor

Thanks a lot Greg!

In the end I could solve it without Oauth, but through the two-steps verification and the activation of the App password. Everything repeated for each of my Google accounts.

I think Google should have supplied clear, easy instructions on how getting rid of the problem they created.

Not all users are familiar with this kind of settings, it's not something you use everyday... Google should have spread a step-by-step procedure that anyone could follow.

And Microsoft, knowing that all their Outlook users are affected by Google's policy, should simply do the same - to prevent anybody to panic like it happened to me :(

So I really thank you for helping, I wish you all the best!

Ciao,

Rita

 

 

Maybe you are the only person using Gmail? ;) 

 

Being practical - as the client app (Outlook) - we can't possibly keep our users informed for whatever server or service they choose to connect it to. Sorry. 

Microsoft

Is there any documentation that points to Modern Authentication being enabled and available when a user leverages the Windows Mail and Calendar App for Email?

@alojukwu - Just make sure the account type is Office 365 and it will use modern auth. If the account is using basic now, remove and add it back. 

Microsoft

Thank you. @Greg Taylor - EXCHANGE. That's one step in the right direction. What would be most beneficial is to have a reference to an article that clearly confirms the use of Modern Authentication as a function within the Windows Mail and Calendar app. From what I can tell, the app 100% supports it, which implies that it is not a function of the app but a function built into the exchange backend. The app allows for the use of MFA etc. But is there a doc reference that points to the Windows Mail app being built accordingly? (Similar to the Outlook app supporting Modern Authentication. Thanks.

@alojukwu I don't know if/where that is documented, but have you actually tried it? I did, it works. It's all client side, there's nothing specific on the back end to support this client, I'm not sure why you would think there is. That's now how these flows work. 

Microsoft

@Greg Taylor - EXCHANGE  - I was referring to the Windows Mail client connecting to a mail server that supports modern auth, like Exchange. So, if they are using a different mail server it’s up to them if that mail server supports it. In other words, it can’t be turned on in Windows Mail if the Server itself doesn’t make it available. Correct?

Oh, sorry, now I understand. :) And yes, it takes two, client and server to both support it. Quite right. 

Copper Contributor

This really is abakadabra to me.

 

We normally receive our email on our computers and it is stored in *.pst files.

But that doesn't work anymore suddenly. We constantly get a pop up with the question if we can give our username and password. The field next to "Server" is still pop.outlook.com and isn't changeable.

 

Sending email from our computers is still working.

 

How can we solve this in easy language please ??

 

@MarcusGoldsteen - sorry this is a bit hard for you Marcus, I know it's all pretty technical. 

 

Best thing to do I suggest is open a support ticket - comments here on the blog are hard to work with, so a support ticket is usually better. You can open a support ticket directly from within the admin center. it's easy. 

 

That said, what you're doing now, isn't a great solution to be honest. Taking all the data out of the mailbox and pushing it into a PST means it's only available on that one machine, and very easily lost. So, you can't even switch to the web client and see it. I don't know why you want to do that, but there are rarely good reasons to do it these days. If it's because your mailbox is too small and you want to keep pulling mail out, or because you are only paying for a service that offers POP (like a kiosk plan) - then you are going to have to change something on your side. 

 

Outlook won't work with POP3 with basic auth. It's insecure, and we're turning it off. If you want to keep using Outlook you'll have to pay for a plan that allows you to use something other than POP to connect, then you can keep using Outlook. I'd also suggest then uploading all those PST files to us. We'll look after the data and you can get to it from any machine you want. 

 

If you want to keep using POP, then you'll have to find another email client like Thunderbird to use. But... it probably can't read and use your PST files. 

 

So - bottom line - pay for a better plan where you can use Outlook and MAPI. Then upload all the PSTs to us and just leave them there. 

 

if you don't want to pay for a better plan, then go and re-enable POP following the steps and blog here, then upload all the PSTs to us, and switch to browser based mail, or Thunderbird and IMAP (IMAP won't remove mail from the server). 

 

If all of that makes sense great. If not - open a support ticket and have someone help you. But bottom line is, you need to change the way you are working, sorry. 

 

 

Copper Contributor

Thank you for your answers. 

I get it a little, and specifically that we can't go back to our old way of working.

 

We've had some frustrating trouble with Outlook over the years, starting with overflowing data and crashing mailboxes because of that.

The solution for that was storing our email per year in different pst files, one for every year since 1998.

By opening all these files simultanuously in Outlook, we were able to view and search through all our mails since then.

Which comes in handy for a small company as ours : a well organised database.

Backups we make weekly on different systems like for example USB sticks which are stored in different places. 

 

I've tried to start a ticket in the admin center, but if I look for example on "backup" or "export email" I don't get the right hits.

I don't see it.

 

Is it possible to export our Outlook-online-emails to a pst file ?

 

 

 

 

@MarcusGoldsteen - if you want to export any email that is currently in your online mailbox to pst, using the good old way you've always done it - then you will need to re-enable POP in your tenant, get connected, and then do it. Basic Authentication Deprecation in Exchange Online – September 2022 Update - Microsoft Community Hu... 

 

Then do something else. 

 

Again, doing this, because of 'overflowing data and crashing mailboxes' honestly, seems like a bad idea. As someone who has many years of email in his mailbox, and gets quite a lot of email - without issue... I'll say your issue isn't common. Update your process, copying emails to USB keys in different locations isn't a solution anyone should really be doing in the 21st century. 

Copper Contributor

@The_Exchange_Team 

Hello Experts,

We have "Modern Authentication"enabled. And are using a very recent version of Microsoft 365 desktop apps.
License is Microsoft 365 Business Standard.
 
We are trying to roll out a custom built in house Identity Provider.
We have implemented both SAML 2.0 and WS-Federation passive flow in the same.
Done all the steps from federating a domain to taking care of the UPN and the ImmutableID.
In both (SAML/WS-Fed) cases, we are able to get a user in the domain to successfully do the Web Authentication and login to OWA/Microsoft 365 portal (office.com). Basically, all browsers work great. (Edge, Firefox, Chrome)
 
But, adding the user to the Outlook thick client (Windows, MAC and IOS APP) does not prompt and stays at an empty login page.
What are we missing ?
Any help, pointers is appreciated.
Co-Authors
Version history
Last update:
‎Apr 19 2021 01:52 PM
Updated by: