AADSTS90072 When Opening Excel or Word Files

Microsoft Excel logo

Short answer: AADSTS90072 when you open an Excel or Word file means Office is trying to sign your account in to another organisation’s Microsoft 365, and you are not a guest there. Most often an old account from that organisation is still connected to Office on your computer. Go to File > Account, sign out of every account, sign back in with only your own work account and restart Office. If the files really belong to the other organisation, their IT team has to invite you as a guest.

An early learning centre’s administrator contacted us because every Excel file she opened from her synced OneDrive folder showed a warning. When she clicked to fix it and entered her password, Microsoft rejected her with an error naming a completely different organisation. She was sure these were her own in-house spreadsheets. They were. The real problem was an old sign-in from that other organisation that had been left connected to Office on her computer, and Office kept trying to use it. Here is what we found and how to fix it.

Fixed by Ellen Sawa-an and Kenn Cruz at GCIT. Written up by Elliot Munro, CISO.

Symptoms

Excel, Word or PowerPoint shows a warning or Fix me prompt in the top corner when you open a file. Selecting it opens a Microsoft sign-in page, and after you enter your password you see:

Sorry, but we’re having trouble signing you in.
AADSTS90072: User account ‘[your account]’ from identity provider ‘https://sts.windows.net/[tenant ID]/’ does not exist in tenant ‘[other organisation]’ and cannot access the application ‘d3590ed6-52b3-4102-aeff-aad2292ab01c'(Microsoft Office) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account

Microsoft sign-in error AADSTS90072: user account does not exist in tenant and cannot access the application Microsoft Office in that tenant

The organisation named in the error is not yours. Staff often describe this as “Excel asking for a password”, “Excel warning on every file” or “Office signing in to the wrong organisation”. The application ID d3590ed6-52b3-4102-aeff-aad2292ab01c is Microsoft Office itself.

Affected Software

  • Application: Microsoft 365 Apps (Excel, Word, PowerPoint, Outlook)
  • Platform: Windows and macOS
  • Related Services: Microsoft Entra ID, OneDrive, SharePoint, sensitivity labels and Information Rights Management

Cause

AADSTS90072 means your account comes from one Microsoft 365 organisation (tenant) but is trying to get into a different one where it does not exist as a guest. Office will only try that if something points it at the other organisation. We see two triggers:

  1. An old connected account. Office remembers every work account that has signed in under File > Account and in Connected Services. If someone once signed in with an account from a partner, a former employer or a previous shared arrangement, Office can keep trying to refresh that account’s access when files open. Once that old account is disabled or its token expires, every file shows a warning. This was the cause for the early learning centre. All of the files were safely in her own OneDrive.
  2. Files protected by another organisation. If a file was encrypted with a sensitivity label or Information Rights Management by another organisation, Office has to check your permission with that organisation. If you are not a guest there, you get AADSTS90072. Only that organisation can grant access.

Resolution

Step 1: Remove old accounts from Office

  1. Save your work and open Excel.
  2. Go to File > Account.
  3. Under User Information, select Switch account to see every account Office has stored. Note any account from another organisation.
  4. Select Sign out and confirm. Repeat until no accounts are signed in.
  5. Under Connected Services, select Remove next to any OneDrive or SharePoint service that belongs to the other organisation.
  6. Close every Office app, including Outlook and any open files, so nothing is still holding the old account.
  7. Open Excel and sign in with only your own work account.
  8. Open a file from your OneDrive or SharePoint again. The warning should be gone.

Step 2: Remove the account from Windows if it keeps coming back

  1. Open Settings > Accounts > Access work or school.
  2. If an account from the other organisation is listed and you no longer need it, select it and choose Disconnect. Do not disconnect your own organisation’s account, as that can remove the computer from your company’s management.
  3. Restart the computer and sign in to Office again.

Step 3: Check whether the file is protected by another organisation

  1. Open the file and look under the ribbon or in File > Info for a sensitivity label or a message such as “Restricted Access”.
  2. If the file is protected by another organisation, ask them to invite your work email as a guest in their Microsoft 365, or send an unprotected copy. Your own IT team cannot change their settings.
  3. If you have an account in that organisation, you can open the file with it, copy the content into a new file and save it to your own OneDrive.

Step 4: Clear the leftover warning on older file types

If one or two files still show a warning after Step 1, check their format. In our case some files were .csv, which cannot use AutoSave. Saving them as Excel Workbook (.xlsx) with File > Save As cleared the remaining warning. Restart Excel after changing accounts, because files left open keep the old warning until they are closed.

Important Notes

  • Your files are not lost. Signing out of Office does not delete synced OneDrive files. Check they are still there after you sign back in.
  • Do not keep entering your password. The error is about which organisation Office is asking, not your password. Repeated attempts will not help.
  • Shared or reused computers. If a computer came from another business, or a contractor signed in to Office on it, remove their accounts during setup to prevent this.
  • Guest invitations expire if not accepted. If you were invited as a guest but never accepted, ask the other organisation to resend the invitation.

Sharing files with partner organisations and running into sign-in errors? Book a free consultation and we will set up guest access the right way.

If the document opens correctly but one colleague cannot be @mentioned, check whether their mailbox is hidden from the address list.

Was this article helpful?
Ready to secure and simplify your IT? Talk to a GCIT expert today.