How to get SiteID of a SharePoint Online Site
To get a SharePoint Online Site id, append the URL with "_api/site".
Example: https://mytenant.sharepoint.com/sites/xyzsite/_api/site.
you can use the SharePoint REST API to get the SiteID:
Open the SharePoint Site:
- Navigate to the SharePoint site in your web browser.
Modify the URL:
- Append
/_api/site
to the site’s URL. For example, if your site URL ishttps://yourdomain.sharepoint.com/sites/yoursite
, change it tohttps://yourdomain.sharepoint.com/sites/yoursite/_api/site
.
- Append
Retrieve the SiteID:
- Press Enter. This will display the site’s information in JSON format. Look for the
Id
field, which contains the SiteID
- Press Enter. This will display the site’s information in JSON format. Look for the
Post a Comment