Connect-ExchangeOnline – Unauthorized
I’ve been searching for a solution for this error message for a couple of days now – to no avail.
Connect-ExchangeOnline through certificate always throws ‘Unauthorized’.
UnAuthorized At C:Program FilesWindowsPowerShellModulesExchangeOnlineManagement3.5.1netFrameworkExchangeOnlineManagement.psm1:766 char:21
$tenant = ” $appId = ” $thumbprint = ” Connect-ExchangeOnline -CertificateThumbprint $thumbprint -AppId $appId -Organization $tenant
I tried:
multiple machinescerts in Cert:CurrentUsermy and Cert:LocalMachinemyCerts are installed in the Azure AD Appmultiple networksPS 5.1 and 7.2ExchangeOnlineManagement Module versions 3.4.0 through 3.5.1
And I tried the following Graph API permissions:
As mentioned Exchange.ManageAsApp API permission does not exist any longer hence the issue.
Has anyone figured it out yet?
I’ve been searching for a solution for this error message for a couple of days now – to no avail.Connect-ExchangeOnline through certificate always throws ‘Unauthorized’.UnAuthorized At C:Program FilesWindowsPowerShellModulesExchangeOnlineManagement3.5.1netFrameworkExchangeOnlineManagement.psm1:766 char:21$tenant = ” $appId = ” $thumbprint = ” Connect-ExchangeOnline -CertificateThumbprint $thumbprint -AppId $appId -Organization $tenantI tried:multiple machinescerts in Cert:CurrentUsermy and Cert:LocalMachinemyCerts are installed in the Azure AD Appmultiple networksPS 5.1 and 7.2ExchangeOnlineManagement Module versions 3.4.0 through 3.5.1And I tried the following Graph API permissions:As mentioned Exchange.ManageAsApp API permission does not exist any longer hence the issue.Has anyone figured it out yet? Read More