Connect-SPOService : Could not authenticate to SharePoint Online

Occasional Visitor

Hi All!


I am unable to connect to SPO from SharePoint online management shell  using my account.  MFA is enabled.


Connect-SPOService -url https://[URL]


I'm getting the following response:

Connect-SPOService : Could not authenticate to SharePoint Online https://[URL] using OAuth 2.0
At line:1 char:1
+ Connect-SPOService -url https://[URL]
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-SPOService], AuthenticationException
+ FullyQualifiedErrorId : Microsoft.Online.SharePoint.PowerShell.AuthenticationException,Microsoft.Online.SharePoi


Can anyone help with this? 



3 Replies

Hi @ajames950,


Considering [URL] part stands for the organization name, try connecting by using the cmdlet as below:



Connect-SPOService -Url https://[URL]



If it fails too, you can uninstall the module and reinstall it.


Burak V.

We support Ukraine and condemn war. Push Russian government to act against war. Be brave, vocal and show your support to Ukraine. Follow the latest news HERE