A cloud-based identity and access management service for securing user authentication and resource access
Hi Jyoti,
Sites.Selected requires two separate steps.
1. Grant admin consent
In the Entra admin center, go to App registrations > your app > API permissions.
For Microsoft Graph application permissions, ask a Privileged Role Administrator or Global Administrator to grant consent if you don't have the required privileges.
2. Grant access to the specific SharePoint site
Sites.Selected alone doesn't give the app access to any site.
An authorized administrator can grant access using the Microsoft Graph API or PnP PowerShell:
Grant-PnPEntraIDAppSitePermission `
-AppId "<app-id>" `
-DisplayName "<app-name>" `
-Site "<site-url>" `
-Permissions Write
This requires an authenticated PnP connection with the delegated Microsoft Graph Sites.FullControl.All permission and sufficient administrative rights.
Use Read instead of Write if the app doesn't need to modify files.
Your application's Sites.Selected permission can then be limited to the approved site. Make sure the app doesn't also have broader SharePoint permissions.
Microsoft references: