Configure Office 365 SSO for Multiple Trusted Active Directory Forests
Question details
Configure Office 365 sign-in for users whose accounts are merged from two trusted Active Directory forests.

- Product
- Microsoft 365, Microsoft Entra Connect, and Active Directory Federation Services
- Device & OS
- not provided
- Scenario
- One Microsoft 365 tenant synchronizes accounts from two trusted Active Directory forests and matches them by email address.
- Observed behavior
- Users from the secondary forest cannot sign in to Office 365, Outlook, or Skype for Business with their own domain credentials.
Identify the affected user's Microsoft 365 sign-in name, on-premises accounts, authentication method, and primary SMTP address. Confirm which forest is intended to provide the user's password and involve your Microsoft Entra Connect or AD FS administrator.
Verify the secondary domain and the merged account's sign-in source
Use this approach to investigate a sign-in name mismatch without assuming that a forest trust or email-based account match selects the correct password source.
A Microsoft 365 sign-in name and a mailbox's primary SMTP address can be different. Matching accounts by email does not by itself establish which on-premises account supplies the credentials.
Test the synchronization and authentication design with Microsoft or AD FS support before changing production accounts or federation settings.
In the Microsoft 365 admin center, open Settings > Domains. Add and verify the secondary forest's sign-in domain if it is not already verified.
In the Microsoft Entra admin center, open Identity > Users > All users and select the affected user. Record the user principal name and compare its domain with the name the user enters at sign-in.
On the Microsoft Entra Connect server, open Synchronization Service and inspect the connected accounts and attribute flows for a test user. Check whether password hash synchronization, pass-through authentication, or federation is in use, and verify which account supplies the password.
With your synchronization administrator, test using the verified secondary domain in the appropriate source account's user principal name and allow the change to synchronize. Retain the existing primary SMTP address if users should keep their current email addresses, then test sign-in with the intended credentials.
If the domain uses AD FS, review the multi-domain federation configuration with your AD FS administrator and Microsoft support before making changes. Test Office 365 and the affected client applications with a pilot account.

Work with Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with Office files. Its format compatibility helps you move existing documents, spreadsheets, and presentations into your workflow. It does not repair Microsoft 365 or AD FS sign-in.

Frequently Asked Questions
Why does the secondary forest's domain name fail at sign-in?
The user's Microsoft 365 user principal name may use a different domain from the name entered. Check Identity > Users > All users in the Microsoft Entra admin center and compare the user's sign-in name with the verified domains in Microsoft 365 admin center > Settings > Domains.
Can a user keep their existing email address after their sign-in name changes?
Yes. A user principal name and primary SMTP address can differ. Plan the sign-in name change in the synchronized source directory and confirm that the mailbox's primary SMTP address remains correct.
Does matching accounts by email decide which password is used?
No. Email matching joins directory objects, but the credential source depends on the synchronization and authentication configuration. Inspect the connected accounts and attribute flows in Synchronization Service and verify the active authentication method.
Should I convert both domains to federated authentication?
Not without reviewing the existing design. Federation changes can affect all users in a domain. If you use AD FS, consult current Microsoft guidance and support, then test the multi-domain configuration before making production changes.




