What Flow indexes from SharePoint Scoped
Selected sites only ingests files and pages from SharePoint sites that an administrator explicitly grants to a dedicated Entra app. It uses Microsoft GraphSites.Selected instead of Sites.Read.All, which grants access to every site in the organization.
Use this when your security team will not approve read access to every SharePoint site in the organization.
Prerequisites
- A Microsoft Entra Privileged Role Administrator or Global Administrator who can grant consent in the Microsoft organization you connect.
- An administrator who can create the dedicated app registration.
- A SharePoint Administrator who can grant the app to specific sites (Graph Explorer, curl, or PnP).
- A Flow admin who can connect providers in Integrations.
Prepare the provider
SharePoint Scoped requires two separate approvals:Sites.Selected limits which sites the app can access. It still requires Entra consent, followed by an explicit grant for each site. Consent alone gives the app no SharePoint site access. See Microsoft’s selected permission model.
Create a dedicated Entra app for SharePoint Scoped.
Grant Microsoft Graph application permissions.
Sites.Selected, User.Read.All, and Group.Read.All (or GroupMember.Read.All).Grant SharePoint (Office 365 SharePoint Online) application permission.
Sites.Selected.Do not add application Sites.Read.All, Files.Read.All, or application Sites.FullControl.All.
Grant admin consent in the Microsoft organization you connect.
For SharePoint site groups whose membership Flow must crawl, set Who can view the membership of this group to Everyone, or use Entra groups instead.
Connect in Flow
The Integrations catalog lists this setup under SharePoint Online. Selected sites only is an option of that connection, not a separate integration.Open Integrations.
Choose teams.
Name the sites.
Sites.Selected.Separate sites with newlines, commas, or spaces. If a URL path contains a space or comma, wrap the whole URL in double quotes, for example "https://contoso.sharepoint.com/sites/HR, Finance". You can also use %20 for a space and %2C for a comma. Keep each Graph site ID together, including its two commas.Authorize the connection.
Grant the app read access to each site.
Sites.FullControl.All, with sufficient SharePoint rights. The scoped app itself must not receive this broad permission. See Microsoft’s site permission API and selected permission model.For each site, the administrator can use Microsoft Graph to resolve its site ID and create the app permission. Replace the placeholders with the selected site’s host and path, its returned ID, and the scoped app’s Client ID:Finish verification.
- Waiting for admin consent: Ask an Entra administrator to approve the listed permissions, then select Check admin consent.
- Waiting for site access: Flow cannot read content from a selected site. Ask a SharePoint administrator to check the app’s site grant and library access, then select Verify site access.
Add a source.
Choose what to index.
- Select the whole site. Selected sites are indexed together in one crawl.
- Browse into the site and select a document library, a folder, a single file, Site pages, or a single site page. Each of these becomes its own source.
Sites.Selected does not include Microsoft Graph search, so SharePoint Scoped setup has no search box. Browse the granted site instead; each folder loads one page of items at a time with Load more.To add more sites, enter a site URL or Graph site ID and select Resolve site. Content already added for this team is marked Already added and cannot be selected again. This label does not mean indexing has finished.Sync and behavior
Flow supports the same file formats and indexing diagnostics as SharePoint Online, including textual CSV and Markdown. This does not require additional Microsoft permissions. Scoped connections behave this way:- Flow polls granted sites on a schedule.
- File permissions use Microsoft Graph item permissions.
- Site pages are indexed with the same page access control list (ACL) model as SharePoint Online knowledge sources.
- Near-real-time webhooks are not available under
Sites.Selected. - A team connection is how you select granted sites. Read access follows the SharePoint permissions Flow crawled, not team membership. Connecting the source does not grant read, and it is not required for org-wide Knowledge or search.
- Allow the whole organization (the default): Every Flow organization member can read pages.
- Restrict pages: Pages get no extra audience from SharePoint permissions.