Unable to connect the SharePoint Online sites using the PnP Management Shell App ID registered with Enterprise apps

tamilarasan l 41 Reputation points
2025-12-04T08:02:40.0933333+00:00

Hello,

I'm trying to connect SharePoint Online sites with PnP Management shell registered as an enterprise app in Azure and it is giving me the below error.

Sign in

Sorry, but we're having trouble signing you in

AADSTS700016: Application with identifier ' ' was not found in the directory ' '. This can happen if the application has not been installed by the administrator of the tenant or consented to by user in the tenant. You may have sent you authorization request to the wrong tenant.

The permissions provided only for the Microsoft Graph scopes. Please let me know whether any SharePoint scope permissions needs to be added. If yes, please provide me the SharePoint scope to add it in the App ID.

Thanks & Regards,

Tamil

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.