Skip to content

403 Error from Microsoft Graph - Search for sites API #10284

Open
@shashankpandey2

Description

@shashankpandey2

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"
}
]
}

Metadata

Metadata

Assignees

Labels

area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APIsharepoint-developer-supportsharepoint-developer-supporttype:bug-confirmedConfirmed bug, not working as designed / expected.type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions