-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APICategory: SharePoint Client Side Object Model SDK / REST APIarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devtype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active worktype:questionQuestion... if answered, will be tagged as such.Question... if answered, will be tagged as such.
Description
I am using this graph API "https://graph.microsoft.com/v1.0/sites" in order to fetch all the sites but when I am using SharePoint API "https://{tenant-name}.sharepoint.com/_api/v2.0/sites" I am getting empty array in value
"@odata.context": "https://abc.sharepoint.com/_api/v2.0/$metadata#sites",
"value": []
}
I am not sure what is the issue. Do I need to fetch token in a different way for SharePoint version 2 API?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: accadff1-1b70-6a67-4465-d66245aa3a09
- Version Independent ID: 8e108e60-9c50-0856-712c-f85e64c9813a
- Content: Operations using SharePoint REST v2 (Microsoft Graph) endpoints
- Content Source: docs/apis/sharepoint-rest-graph.md
- Product: sharepoint online
- GitHub Login: @spdevdocs
- Microsoft Alias: spdevdocs
fowl2
Metadata
Metadata
Assignees
Labels
area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APICategory: SharePoint Client Side Object Model SDK / REST APIarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devtype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active worktype:questionQuestion... if answered, will be tagged as such.Question... if answered, will be tagged as such.