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

Sorted by: Reset to default

ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJobm9vZ26Fc4GOoJytZaCjvbWxzZqlrWWZqHq1tNGorqKml2LCr63UrZ%2BoqpmvsqV5xKupqKo%3D