---
title: "Troubleshoot Microsoft 365 search"
site: admin
version: 1.11
versions: "1.11+"
url: https://docs-new.servicely.ai/admin/1.11/sofi/troubleshoot-microsoft-365-search/
type: troubleshooting
application: sofi_core
last_updated: 2026-10-18
commit: c0e55f26ec7b
---


Use this page when Sofi's Microsoft 365 search does not return what you expect. It is for administrators who completed [Search Microsoft 365 content from Sofi](page:sofi/search-microsoft-365-content).

## A user sees "Microsoft authorization required"

**Cause.** The user's delegated token is missing or has not been captured yet.

**Fix.**

1. Ask the user to sign out and sign in again through Microsoft Entra ID single sign-on. Servicely captures the token at sign-in.
2. If the user does not sign in through Microsoft Entra ID, they follow the consent link Servicely shows, in the form `https://<your-servicely-host>/sso/oauth_outbound_redirect/<token-record-id>`, and complete the Microsoft consent flow.

## Search returns no results

**Cause.** The user has no matching content, or a permission or licence is missing.

**Fix.**

1. Confirm the user has content in SharePoint or OneDrive that matches.
2. Confirm the app registration has the delegated permissions and that admin consent was granted.
3. Confirm the user has a Microsoft 365 Copilot licence.
4. Check the Servicely application logs for errors from `MsGraphSearchService`. The batch response error names the reason.

## Tokens are not stored at sign-in

**Cause.** The OAuth provider is not linked to the identity provider.

**Fix.**

1. Open the Microsoft Entra ID record under **Administration → Authentication → Identity provider**.
2. Confirm the OAuth provider is in **OAuth Providers**.
3. Check the Servicely logs during a sign-in for errors.

## "SystemOAuthProvider for copilot search not defined"

**Cause.** The application property `microsoft.search.oauth.provider.name` is empty or missing.

**Fix.** Set the property to the **Name** of your OAuth provider.

## "No System OAuth Provider found with name"

**Cause.** The value of `microsoft.search.oauth.provider.name` does not match the name of any OAuth provider.

**Fix.** Make the **Name** of the OAuth provider and the property value exactly the same.

## Related

- [Search Microsoft 365 content from Sofi](page:sofi/search-microsoft-365-content)
- [AI tools](page:sofi/ai-tools)
