Need to pull out all sharepoint site id using Graph API

M, Rajeshwaran 0 Reputation points
2024-12-11T14:51:42.4866667+00:00

I’m just trying to construct the Graph URI for the trim existing version delete job. In the location variable, I’m just trying to pull out all the sites that match the $hostname. I really have no idea what command I need to use on the $loc variable to pull out all the sites ID across the geo's

$URI = https://graph.microsoft.com/beta/sites/$hostname`:/$loc

Could any one advise on this ?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,264 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.