Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OneDrive/SharePoint Search api deprecation #4864

Open
2 tasks done
berndverhofstadt opened this issue Jan 23, 2025 · 0 comments
Open
2 tasks done

OneDrive/SharePoint Search api deprecation #4864

berndverhofstadt opened this issue Jan 23, 2025 · 0 comments

Comments

@berndverhofstadt
Copy link

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
The Microsoft Graph API endpoint /sites?search= is deprecated and no longer returns results in certain Microsoft Tenants, Microsoft does not want to resolve this issue as it is being deprecated. This API is used in the applications to list all SharePoint sites. It might be good to have the naming changed to "Teams & SharePoint sites" as SharePoint is more positioned as a technical component and Teams is the front end for end users. Or even split Teams and Sharepoint.

Describe the solution you'd like
The current situation can be resolved by replacing the existing api call GET https://graph.microsoft.com/v1.0/sites?search=*. By the new equivalent, which looks as followed:

POST https://graph.microsoft.com/v1.0/search/query
{
    "requests": [
        {
            "entityTypes": [
                "site"
            ],
            "query": {
                "queryString": "*"
            }
        }
    ]
}

More information can be found here

Describe alternatives you've considered
n/a

Additional context
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant