SharePoint / SharePoint/sp-dev-docs

403 Error from Microsoft Graph - Search for sites API

Open
#10,284 6 comments 0 reactions 1 assignee View on GitHub

@Ashlesha-MSFT is already working on this.

Since May 22, 2025.

area:csom/rest/api sharepoint-developer-support type:bug-confirmed type:bug-suspected
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

Description

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Describe the bug / error

The following Microsoft Graph endpoint, retrieves the App Catalog site data:

https://graph.microsoft.com/v1.0/sites?search={AppCatalog}
This request is now consistently failing with the following error:

Status: 403
StatusText: Forbidden

Steps to reproduce
  1. https://learn.microsoft.com/en-us/graph/api/site-search?view=graph-rest-1.0&tabs=http

Refer the link - to hit the endpoint - https://graph.microsoft.com/v1.0/sites?search={AppCatalog}, getting the 403 error

Expected behavior

HTTP/1.1 200 OK
Content-type: application/json

{
"value": [
{
"id": "contoso.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,712a596e-90a1-49e3-9b48-bfa80bee8740",
"name": "Team A Site",
"description": "",
"createdDateTime": "2016-10-18T03:05:59Z",
"lastModifiedDateTime": "2016-10-18T10:40:59Z",
"webUrl": "https://contoso.sharepoint.com/sites/siteA"
},
{
"id": "contoso.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,0271110f-634f-4300-a841-3a8a2e851851",
"name": "Team B Site",
"description": "",
"createdDateTime": "2016-10-18T03:05:59Z",
"lastModifiedDateTime": "2016-10-18T10:40:59Z",
"webUrl": "https://contoso.sharepoint.com/sites/siteB"
}
]
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.