Troubleshoot Federated User Sign-In to Office 365 with AD FS
Question details
Identify why federated or synchronized users cannot sign in to Office 365 services.

- Product
- Microsoft 365 and Active Directory Federation Services (AD FS)
- Device & OS
- not provided
- Scenario
- Users whose identities are federated or synchronized from an on-premises directory need to access Office 365.
- Observed behavior
- Affected users cannot access Office 365, and AD FS events may indicate an internal service or LDAP attribute-store failure.
Confirm whether affected accounts use AD FS for sign-in; synchronized accounts are not necessarily federated. Note the approximate failure time and check whether a cloud-only account can sign in, to help narrow the scope.
Investigate AD FS events and LDAP connectivity
Use this approach when federated users cannot sign in and AD FS may be unable to retrieve directory attributes.
On an AD FS server, open Event Viewer and go to Applications and Services Logs > AD FS > Admin. Find events around the time of a failed sign-in.
Look for event IDs 364, 377, 111, and 1000, and inspect their details for MSIS3173, POLICY3808, POLICY3814, or LdapAttributeStoreSchemaManager messages. Record the full error and any related event details.
Review the AD FS attribute-store configuration and use the server's DNS and network diagnostic tools to check connectivity to the configured LDAP or Active Directory servers. Verify that the relevant service account has the required directory access.
Open Services on the AD FS server and check the Active Directory Federation Services service. Review recent configuration changes and updates that coincide with the failures.
In the AD FS Management console, review the certificates under Service > Certificates and check their validity and configuration. Treat certificate issues as one possibility, not the assumed cause.

Restart AD FS as a temporary recovery measure
Use a controlled restart if service health checks indicate that AD FS is unresponsive.
Work with Office Documents in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with Office documents and moving existing files. It does not repair AD FS or restore access to Microsoft 365 services.

Frequently Asked Questions
Where can I find AD FS sign-in errors?
On an AD FS server, open Event Viewer and go to Applications and Services Logs > AD FS > Admin. Check events around the time the user attempted to sign in.
Do AD FS event IDs 364 or 377 mean a certificate has expired?
Not necessarily. Open the event details and inspect the full error message and related events. Verify certificates as part of the diagnosis, but also check AD FS configuration and directory connectivity.
Are all synchronized Microsoft 365 accounts federated?
No. Directory synchronization and federation are separate configurations. Confirm the affected domain's sign-in method before treating AD FS as the cause.
Will restarting AD FS permanently fix the sign-in problem?
A restart may temporarily restore access, but the issue can recur. After restarting the Active Directory Federation Services service in Services, review the AD FS Admin log and investigate any remaining errors.




