Forum Discussion
Lance Alcabasa
Aug 27, 2021Copper Contributor
Connect to SharePoint Online with MFA using CSOM
I have the CSOM code below for trying to connect to SharePoint Online with MFA enabled: $SiteUrl = "http://our-tenant.sharepoint.com"
#Setup Authentication Manager
$AuthenticationManager = n...
pvanberlo
Aug 27, 2021Steel Contributor
The latest iteration of the PnP.PowerShell module no longer includes this. You can try and replace "OfficeDevPnP.Core.AuthenticationManager" with "PnP.Framework.AuthenticationManager" instead.
Joshua_Lumley
Aug 23, 2022Copper Contributor
How?!
- M365PowerMay 02, 2023Copper ContributorI was able to by following this post but then get an error for "401 unauthorized":
https://morgantechspace.com/2021/09/connect-to-sharepoint-site-with-mfa-account-using-csom-and-powershell.html