Get-PnPTenant is throwing unauthorized error

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

3 Related questions 0 Get-SPOTenant and Get-SPOTenantSyncClientRestriction using Connect-PnPOnline 1 PnP Powershell Sharepoint with app permissions: The remote server returned an error: (403) Forbidden 0 Why does using the PnP.PowerShell cmdlet Enable-PnPFeature to enable multilingual support add all languages on a SharePoint site? Related questions 0 Get-SPOTenant and Get-SPOTenantSyncClientRestriction using Connect-PnPOnline 1 PnP Powershell Sharepoint with app permissions: The remote server returned an error: (403) Forbidden 0 Why does using the PnP.PowerShell cmdlet Enable-PnPFeature to enable multilingual support add all languages on a SharePoint site? 0 Powershell connecting to Sharepoint online using Active directory 0 PNP PowerShell Connect-PnpOnline with -AccessToken is not setting connection in Azure Functions 0 Getting a 403 Forbidden error accessing the SharePoint _api/Web/SiteUsers 0 Connect-PnPOnline from Azure App and Runbook 0 How to follow a Sharepoint site with PowerShell 0 PnP - Powershell - Purview - Sensitivity labels - Unable to get results from Get-PnPAvailableSensitivityLabel - Access Denied Load 6 more related questions Show fewer related questions Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like