Skip to main content
5 votes
Accepted

The sign-in name or password does not match one in the Microsoft account system

If you are using PnP powershell you can use the below code, When using the Connect-PnPOnline cmdlet without any additional authentication parameters, we are prompted for username and password, which ...
Karthik Jaganathan's user avatar
4 votes
Accepted

Use App Password to Authenticate with PowerShell PnP

Yes. You can use app password to authenticate SharePoint Online site using PowerShell PnP. Hit below URL: Connect-PnPOnline -Url https://contoso.sharepoint.com It will open a pop-up like below where ...
Ganesh Sanap - MVP's user avatar
3 votes
Accepted

Modern Authentication, do we need to change something in C# CSOM?

If Multi-factor authentication (MFA) is activated in your environment, this code will not work anymore. You have to use SharePointPnPCoreOnline: https://www.c-sharpcorner.com/blogs/using-csom-to-...
Michael Han's user avatar
  • 5,211
3 votes

The sign-in name or password does not match one in the Microsoft account system

You can use SharePoint Online Management Shell to connect with multi-factor authentication (MFA) SharePoint Site. Follow below documentation: To connect with multi-factor authentication (MFA). OR ...
Ganesh Sanap - MVP's user avatar
2 votes

The sign-in name or password does not match one in the Microsoft account system

I came across the same error today, when implementing an CSOM console app that would connect to my tenant. Searching through the net, i came across multiple answers that pointed out tha MFA was the ...
jimas13's user avatar
  • 328
2 votes
Accepted

How to enable MFA on PowerApp?

Yes, there is and it's quite simple actually. You can configure Conditional Access with MFA to the specific application for the specific set of users as per your requirement. Read on https://docs....
Radityo Ardi's user avatar
  • 1,363
1 vote
Accepted

When sharing a file with external user can we disable MFA

You could create a Conditional Access policy that makes internal users require MFA and external users does not require MFA. Here are steps: 1.Go to Azure Active Directory admin center -> Protect&...
Emily Du - MSFT's user avatar
1 vote
Accepted

Connect-SPOService ... Error "The underlying connection was closed: An unexpected error occurred on a send"

You can use SharePoint Online Management Shell to connect with multi-factor authentication (MFA) enabled SharePoint site using below command: Connect-SPOService -Url https://contoso-admin.sharepoint....
Ganesh Sanap - MVP's user avatar
1 vote
Accepted

Connect-PnPOnline : AADSTS50126: Error validating credentials due to invalid username or password

MFA enabled account can not run in background and it must require interactive login. In order to access SharePoint through app you will require certificate thumbprint that would not be feasible in ...
Rajat Sahani's user avatar
1 vote

Connect Sharepoint Online with MFA enabled giving 502 bad error

If MFA is enabled for account, you will only be able to access the resources through Interactive login. MFA enabled account can not be use to run application in background or to run daemon app. In ...
Rajat Sahani's user avatar
1 vote

Log into SharePoint tenant through CSOM with MFA enabled

I understand you want to switch to another user but authManager just grab and use the existing cache, which causes it auto login with existing account. In fact the login window use IE as the web ...
Baker_Kong's user avatar
  • 1,189
1 vote

After implementing MFA - getting this error Sorry, this site hasn't been shared

You can try out the below troubleshooting: Might be because of cached credentials from a prior browser session. Try clearing IE cache: Open a new browser window >> Go to Internet options >> In the ...
SP 2022's user avatar
  • 4,114

Only top scored, non community-wiki answers of a minimum length are eligible