Issue with Multi-Factor Authentication and App Registration in PnP PowerShell #4716
Unanswered
KarmeliGal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! 👋
I'm currently working with PnP PowerShell, and I'm running into an issue when trying to authenticate using my organization's SharePoint and Azure resources. I'm able to install the module successfully, but when attempting to connect with Connect-PnPOnline, I am being asked to use Multi-Factor Authentication (MFA).
Steps I’ve Taken:
Installed the latest version of PnP PowerShell (2.12.0).
Registered an app in Azure Active Directory for app-based authentication.
Followed the instructions to generate a Client ID, Client Secret, and Tenant ID.
Attempted multiple variations of the Connect-PnPOnline command, including using both -Interactive and -ClientSecret flags.
I’m encountering issues with MFA, as well as messages like "AADSTS50076" and "Specified method is not supported".
Error Messages:
AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access resource URL.
Specified method is not supported.
What I’ve Tried:
Tried using the -Interactive flag for MFA authentication, but the system does not prompt me to log in.
Attempted the App Password method, but Connect-PnPOnline does not recognize the -AppPassword parameter.
Also, I've confirmed that my organization’s policies support MFA and app registrations.
My Question:
Has anyone else encountered similar issues when trying to authenticate with PnP PowerShell, especially with Multi-Factor Authentication and app registration? Any tips or recommendations on how I can resolve this?
Thanks in advance! 🙏
Beta Was this translation helpful? Give feedback.
All reactions