The limited-rights version of the Power-user Connector for SharePoint lets Power-user download files only from the SharePoint sites your IT team grants, one by one, instead of from every site your users can open. It uses the delegated Microsoft Graph permission Sites.Selected, for organizations whose security policy does not allow a third-party app to read all SharePoint sites.
This article covers only the limited-rights version. For the standard version, see SharePoint Connector: give the Power-user Library access to SharePoint.
In short
- First: ask us to switch your account to the limited-rights connector
- Permission: Sites.Selected (delegated), with Read access on the sites you grant only
- Setup: one admin consent, a one-time PnP PowerShell app, then two commands per site
- Privacy: a file downloads only if its site is granted and the user can open it in SharePoint
In this article
Standard vs limited-rights connector
| Standard connector | Limited-rights connector | |
|---|---|---|
| Entra ID app | Power-user Connector | Power-user connector (limited rights) |
| Application (client) ID | 427e8ab0-d35f-4661-b2c4-870071e7c63c | bd8bd440-0424-41f0-a102-2b9f8999eabf |
| Microsoft Graph permission | Sites.Read.All (delegated) | Sites.Selected (delegated) |
| Sites reachable | Every site the user can open | Only the sites you grant, one by one |
| Setup effort | One admin consent | Admin consent, a one-time PnP PowerShell app, then two commands per site |
In both versions, Power-user never stores or sees your files: they are downloaded to the user's computer on the user's behalf. Power-user signs in as the user (delegated permission), so a file downloads only when the site is granted to the limited-rights app and the user can open the file in SharePoint.
Before you start
- Contact us to switch your account to the limited-rights version of the SharePoint Connector.
- Check that you have:
| You need | Used for |
|---|---|
| A Global Administrator (or Privileged Role Administrator) | Admin consent in Steps 1 and 2 |
| A SharePoint Administrator who can sign in to each site to grant | PowerShell commands in Steps 3 and 4 |
| PowerShell 7.4 or later (tested with 7.6), on Windows, macOS or Linux | Download PowerShell |
| The PnP.PowerShell module (tested with 3.4.1) | Installed once with the command below |
Install-Module -Name PnP.PowerShell -Scope CurrentUser
How to set up the limited-rights connector
Step 1: grant admin consent to the limited-rights app
A Global Administrator opens the consent link once. This adds Power-user connector (limited rights) to your Enterprise applications, with the delegated Sites.Selected permission only.
- Replace <yourdomain.com> with your verified domain and open the link in a browser:
https://login.microsoftonline.com/<yourdomain.com>/adminconsent?client_id=bd8bd440-0424-41f0-a102-2b9f8999eabf&scope=https://graph.microsoft.com/.default&redirect_uri=https://www.powerusersoftwares.com/sharepoint-connector-microsoft-entra
- If your domain is not verified, use your tenant ID instead of the domain (Entra admin center > Overview > Tenant ID).
- Sign in with the administrator account and click Accept. The browser opens the Power-user page "SharePoint Connector Microsoft Entra": the consent is saved.
- Check the result in Entra admin center > Enterprise applications > Power-user connector (limited rights) > Permissions. The Admin consent tab lists Microsoft Graph Sites.Selected, type Delegated, with openid, profile and offline_access.
At this point, the app can reach no site at all: access is granted site by site in Step 3.
Optional check with PowerShell (Microsoft Graph PowerShell module):
Install-Module Microsoft.Graph.Applications -Scope CurrentUser Connect-MgGraph -TenantId "<tenant ID>" -Scopes "Application.Read.All" -UseDeviceCode $sp = Get-MgServicePrincipal -Filter "appId eq 'bd8bd440-0424-41f0-a102-2b9f8999eabf'" Get-MgServicePrincipalOauth2PermissionGrant -ServicePrincipalId $sp.Id | Select-Object ConsentType, Scope
Expected result: one line with ConsentType AllPrincipals and Scope offline_access openid profile Sites.Selected. No application permission is listed.
Step 2: register a PnP PowerShell app in your tenant (one-time)
PnP PowerShell needs its own app registration in your tenant to sign you in. Skip this step if your IT team already has one with the delegated Microsoft Graph permission Sites.FullControl.All.
- Open PowerShell 7 and run this command, replacing the tenant name:
Register-PnPEntraIDAppForInteractiveLogin -ApplicationName "PnP.PowerShell" ` -Tenant contoso.onmicrosoft.com ` -GraphDelegatePermissions "Sites.FullControl.All"
- A sign-in window opens. Sign in with the administrator account and accept the consent prompt. This consent covers only the signed-in administrator: if another administrator runs Steps 3 and 4, a Global Administrator clicks Grant admin consent in Entra admin center > App registrations > PnP.PowerShell > API permissions.
- Copy the ClientId shown at the end: you need it in Steps 3 and 4.
Expected result:
App PnP.PowerShell with id <ClientId> created. App created. You can now connect to your tenant using Connect-PnPOnline -Url <yourtenanturl> -ClientId <ClientId>
Why Sites.FullControl.All? Microsoft requires it to grant site-level permissions to another app (see the PnP documentation). It is delegated, so it only works while an administrator is signed in, and Power-user never uses this app. This one permission is enough for Connect-PnPOnline and the four site-permission commands of Steps 3 and 4: no SharePoint (AllSites.*) permission is needed, and the command adds none.
Step 3: grant read access to each SharePoint site
A SharePoint Administrator runs two commands per site. Read is the only permission Power-user needs.
- Connect to the site, with the ClientId from Step 2. A sign-in window opens; the command shows nothing when it succeeds.
Connect-PnPOnline -Url "https://contoso.sharepoint.com/sites/Templates" ` -Interactive -ClientId "<ClientId from Step 2>"
- Grant the limited-rights app read access to that site:
Grant-PnPEntraIDAppSitePermission ` -AppId "bd8bd440-0424-41f0-a102-2b9f8999eabf" ` -DisplayName "Power-user connector (limited rights)" ` -Permissions Read ` -Site "https://contoso.sharepoint.com/sites/Templates"
Expected result:
Id : <PermissionId>
Roles : {read}
Apps : {Power-user connector (limited rights), bd8bd440-0424-41f0-a102-2b9f8999eabf}- Repeat steps 1 and 2 for every site in your list.
Important: grant the site that hosts the files, not a subfolder. Permissions apply to the whole site collection.
Step 4: verify, update or revoke site access
Check each site once after Step 3. The same commands let you change or remove access later. Connect to the site first, as in Step 3.
List the apps granted on a site (expected result: one entry per app: Id (the PermissionId), Roles, Apps. Nothing when no app is granted):
Get-PnPEntraIDAppSitePermission -Site "<site URL>"
Show only Power-user's entry (expected result: one entry with Roles {read}):
Get-PnPEntraIDAppSitePermission -Site "<site URL>" -AppIdentity "bd8bd440-0424-41f0-a102-2b9f8999eabf"
Change the permission level (expected result: the entry with its new Roles. Power-user needs Read only):
Set-PnPEntraIDAppSitePermission -Site "<site URL>" -PermissionId "<PermissionId>" -Permissions Read
Remove Power-user's access to a site (expected result: no output. The first command no longer lists the app):
Revoke-PnPEntraIDAppSitePermission -Site "<site URL>" -PermissionId "<PermissionId>" -Force
Without -Force, Revoke asks for confirmation. Granting the site again after a revoke gives back the same PermissionId.
Frequently asked questions about the limited-rights SharePoint Connector
What is the difference between the standard and limited-rights Power-user SharePoint Connector?
The standard Power-user Connector uses Sites.Read.All (delegated) and reaches every site the user can open. The limited-rights connector uses Sites.Selected (delegated) and reaches only the SharePoint sites your IT team grants, one by one.
Which Microsoft Graph permission does the limited-rights connector use?
The limited-rights Power-user connector uses the delegated Microsoft Graph permission Sites.Selected, with openid, profile and offline_access, and Read access only on the sites you grant.
Can Power-user read SharePoint sites that were not granted?
No. After admin consent, the limited-rights Power-user app can reach no site. It can download files only from sites granted with Grant-PnPEntraIDAppSitePermission, and only when the user can open the file in SharePoint.
Why does the PnP PowerShell app need Sites.FullControl.All?
Microsoft requires Sites.FullControl.All to grant site-level permissions to another app. The permission is delegated, works only while an administrator is signed in, and the Power-user app never uses it.
How do I remove Power-user's access to a SharePoint site?
Connect to the site with Connect-PnPOnline, find the PermissionId with Get-PnPEntraIDAppSitePermission, then run Revoke-PnPEntraIDAppSitePermission with that PermissionId and -Force.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article