Oct 22 2019 08:12 PM
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.
Oct 23 2019 12:54 PM - edited Oct 23 2019 12:56 PM
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.
Nov 16 2019 10:44 PM
Nov 16 2019 10:44 PM