Microsoft O365 Office Applications Log in with a random or wrong email address

Starting around the August time frame, I started having an issue where I would start up Word or Excel office application and find that it had logged in with a random, usually wrong, email address.

I have an office subscription through my business and get updates to office apps periodically.

In my subscription, I have two domains, with several emails in each. For instance, on one domain, I have emails with:

  • jack@domain.com
  • support@domain.com
  • wifisupport@domain.com

On another domain, I have similar addresses:

  • jack@domain2.com
  • support@domain2.com

My computer account is logged into an old email address I used to have on live.com, Microsoft’s older, but still in use Azure Active Directory system.

So naturally, I have all these emails in my Outlook client. I have seen no documentation from Microsoft, but as a developer, it appears that the authentication method may have changed from having each office app handle the authentication internally, to having these credentials now cached in the Windows operating system. Since there is currently no way to mark any credential as “primary”, it seems that the office application may log in using the last credential it sees had been used.

Now, I’m not talking about the last credential you purposely used to log in somewhere. It seems that whatever order Outlook checked my emails could cause a shuffle in credential priority. The result is that if I start an Office application that is licensed using my jack@domain.com, it may automatically connect as wifisupport@domain.com and not allow me to edit my documents.

The main way to tell this is happening is that there is a “Privacy” popup that you’ll get when the app is trying to log in with a credential that does not have a license.

You’ll also get the following:

Sign in to get started with Office. Sign in or create account | I have a product key.

The problem I had, was when I clicked on the “Sign in or create account”, the legitimate account was not in the list. If I tried to log in as a different user, I received:

Error: Another account from your organization is already signed in on this device. Try again with a different account.

Well, this is a quandary.

I opened a ticket with Microsoft. I was told that “Yeah, lots of people are having this issue”. Well guess what, he didn’t have any simple resolution.

SOLVED:

Here’s what I found. You can’t really stop this from happening at this point. However, even though most Office apps will not let you change to the correct credential, Outlook will. So the current workaround is:

  1. When you start your computer, always log into Outlook first
  2. Check the credential by clicking on “File” > “Office Account”
  3. Click on “Switch Account” if needed

Once you have Outlook set to the correct account, the other Office apps seem to take it’s lead.

I hope Microsoft will come up with a better solution than this in a future release.

Author: Jack Yasgar

Jack Yasgar has been developing software for various industries for two decades. Currently, he utilizes C#, JQuery, JavaScript, SQL Server with stored procedures and/or Entity Framework to produce MVC responsive web sites that converse to a service layer utilizing RESTful API in Web API 2.0 or Microsoft WCF web services. The infrastructure can be internal, shared or reside in Azure. Jack has designed dozens of relational databases that use the proper primary keys and foreign keys to allow for data integrity moving forward. While working in a Scrum/Agile environment, he is a firm believer that quality software comes from quality planning. Without getting caught up in analysis paralysis, it is still possible to achieve a level of design that allows an agile team to move forward quickly while keeping re-work to a minimum. Jack believes, “The key to long term software success is adhering to the SOLID design principles. Software written quickly, using wizards and other methods can impress the business sponsor / product owner for a short period of time. Once the honeymoon is over, the product owner will stay enamored when the team can implement changes quickly and fix bugs in minutes, not hours or days.” Jack has become certified by the Object Management Group as OCUP II (OMG Certified UML Professional) in addition to his certification as a Microsoft Certified Professional. The use of the Unified Modeling Language (UML) provides a visual guide to Use Cases and Activities that can guide the product owner in designing software that meets the end user needs. The software development teams then use the same drawings to create their Unit Tests to make sure that the software meets all those needs. The QA testing team can use the UML drawings as a guide to produce test cases. Once the software is in production, the UML drawings become a reference for business users and support staff to know what decisions are happening behind the scenes to guide their support efforts.

Leave a Reply

Your email address will not be published. Required fields are marked *