Connect-PnpOnline fails with Authentication Context and MFA #2297
Unanswered
BenHagueNZ
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Have you tried -PnPManagementShell? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a SharePoint site protected by an authentication context that requires MFA. Connecting to that site with Connect-PnpOnline appears to work, but trying to do Get-PnpList fails with a (403) Forbidden error. Excluding the user from the conditional access policy requiring MFA and reconnecting allows Get-PnpList to work as normal. I've tried -UseWebLogin, -Interactive, and -DeviceLogin, all fail in the same way. On a PC that's joined to Azure AD I can get round this by first connecting to the site using Word and then connecting with Connect-PnpOnline. Is this not supported until authentication contexts are out of preview?
Beta Was this translation helpful? Give feedback.
All reactions