I am trying to list all of the sites in a particular tenant simply using https://graph.microsoft.com/v1.0/sites from https://learn.microsoft.com/en-us/graph/api/site-list?view=graph-rest-1.0&tabs=http documentation.
However, when I do a get request, my value fields are empty. There are SharePoint sites on this tenant.
The API has Reports.Read.All and Sites.Read.All with admin permissions granted. This is odd since when I attempt to list all root sites, I get a 403 forbidden error.
enter image description here
enter image description here
enter image description here
Used postman to check my API permissions.
sbg2 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.