0

We are using the Connect-PnPOnline, to connect with sharepoint using the CBA(application Id and secret). And the app has the necessary permissions and SharePoint admin role too. image

enter image description here

While running the Get-PnPTenant it is giving the following error: image

enter image description here

can somebody please help us why this is happening.

Thanks

  • You are connecting to the server but you do not have the authorization to access the data. You need to setup the proper authorization on the server, See : https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/grant-admin-consent?pivots=portal – jdweng Jul 27 '23 at 13:32
  • @jdweng, I had given the necessary consent to the application. But still it is giving this error – Ananda Bhavani Gedela Jul 31 '23 at 13:12
  • See Next-Steps at bottom of the link. – jdweng Jul 31 '23 at 13:33

0 Answers0