-
Notifications
You must be signed in to change notification settings - Fork 1k
403 Error from Microsoft Graph - Search for sites API #10284
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
Comments
Hello @shashankpandey2, |
@shashankpandey2, For this endpoint to work, the app typically needs one of the following Application permissions:
|
Hi @Ashlesha-MSFT
This setup consistently returned a successful 200 OK response with the expected site metadata, such as:
But now this request is consistently failing with the following error:
Please let me know if you need any further details or clarification regarding this. |
Hi @shashankpandey2 As mentioned in document? |
Hi @Ashlesha-MSFT |
@shashankpandey2, |
Uh oh!
There was an error while loading. Please reload this page.
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
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"
}
]
}
The text was updated successfully, but these errors were encountered: