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?

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,030 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,579 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 107.7K Reputation points MVP
    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.

0 additional answers

Sort by: Most helpful

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.