This article provides step-by-step instructions to retrieve the GUID (Globally Unique Identifier) for a SharePoint site and its subsites

How to Retrieve SharePoint Site and Subsite GUID

This article provides step-by-step instructions to retrieve the GUID (Globally Unique Identifier) for a SharePoint site and its subsites

Retrieve the SharePoint Site GUID
To get the GUID of a SharePoint site, use the following URL structure and copy and paste the URL into your web browser:
https://<tenant>.sharepoint.com/sites/<sitename>/_api/site/id
  • Replace <tenant> with your SharePoint tenant (e.g., your organization’s domain).
  • Replace <sitename> with the name of your SharePoint site.
The XML response will include the site GUID within the <d:Id> tags, as shown in the example below. The GUID is highlighted yellow for reference:

 Retrieve the SharePoint Subsite GUID

To retrieve a SharePoint subsite, you can use Microsoft Graph Explorer, a tool provided by Microsoft to interact with Microsoft Graph APIs directly in your browser.

  1. Open Microsoft Graph Explorer:
    https://developer.microsoft.com/en-us/graph/graph-explorer

  2. Sign in with your Microsoft account.

  3. Use the following endpoint:

    /v1.0/sites/{hostname}:/sites/{relative-path-of-your-subsite}
    • Replace {hostname} with your SharePoint host (for example, contoso.sharepoint.com).

    • Replace {relative-path-of-your-subsite} with the relative path of your subsite.

    Example:

    /v1.0/sites/contoso.sharepoint.com:/sites/Marketing/Sales
  4. Click "Run Query" to retrieve the subsite details, including the site GUID and other metadata.

  5. You can now use this GUID for further operations in COZYROC Microsoft Graph Rest Connection Manager.


    Book a Presales Call


    Are you new to COZYROC and evaluating our solutions? 
    Book a Presales Call with us now and get 5% off SSIS+.