Connect-SPOService : No valid OAuth 2.0 authentication session exists ?

Matthias 20 Reputation points
2024-11-01T12:21:58.72+00:00

I have not been able to connect using the command “Connect-SPOService -Url https://company-admin.sharepoint.com” for several months now.
I pick account
Pick account_sm

Enter password
Enter password_sm click "Next"
More information_sm

And get this empty "working..." window then.
working empty

Then I get error: We couldn't sign you in. Please try again.
sign in again_sm

I get this error in powershell:

Powershell_errorI tried out different devices. The last one was a newly installed computer with Windows 11.

I get the error with Powershell 5 and 7.
How to solve that problem?

Microsoft 365 and Office | SharePoint | Development
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 119.7K Reputation points MVP Volunteer Moderator
    2024-11-01T17:39:20.79+00:00

    Is your account by chance enforced for per-user MFA? I run into a similar issue and had to reset the per-user MFA status, details are here: https://www.michev.info/blog/post/6242/the-strange-case-of-a-login-loop-caused-by-phantom-proofup-requirements

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Jaden Dossous 5 Reputation points
    2025-03-12T14:23:17.7133333+00:00

    Hello Mattais,

    I know this post is a bit old but I ran into this same issue and the fix for me was using the options -UseWindowsPowerShell when importing the module. It also needs to installed in Powershell five as well.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.