Skip to main content

List the tenant's SharePoint sites and turn on full sync.

POST/api/v1/sharepoint-sites/{sharepoint_site_id}/discover-tenant-sitesconnectors:write

Lists one page of the tenant's sites the app registration can read, and records that the site has full Graph access (enable_full_sync).

Scopeconnectors:write (sensitive)
AsynchronousNo
MCP tooldiscover_sharepoint_site_tenant_sites
Portal permissionstrigger_sharepoint_discovery, edit_sharepoint_sites

Parameters​

NameInTypeRequiredDescription
sharepoint_site_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonSharePointTenantSitesRequestInput

Responses​

StatusDescriptionBody
200Success.application/json SharePointTenantSites or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

SharePointTenantSite​

FieldTypeRequiredDescription
display_namestringRequired
graph_sitestringRequired
web_urlstringRequired

SharePointTenantSites​

FieldTypeRequiredDescription
enable_full_syncbooleanRequired
has_morebooleanRequired
next_page_tokenstring or nullRequired
sharepoint_site_idstringRequired
sitesarray of SharePointTenantSiteRequired

SharePointTenantSitesRequestInput​

FieldTypeRequiredDescription
page_tokenstring or nullOptionalThe next_page_token of the previous page.