Connect-SPOService : Could not authenticate to SharePoint Online

Copper Contributor

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].sharepoint.com

 

I'm getting the following response:

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

 

Can anyone help with this? 

 

Thanks. 

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]-admin.sharepoint.com

 

 

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

 

Regards,
Burak V.