Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.PowerPlatform.Administration.UserManagement - how to use Multi-Factor authentication? #538

Open
bubbletroubles opened this issue Feb 25, 2024 · 1 comment

Comments

@bubbletroubles
Copy link

bubbletroubles commented Feb 25, 2024

How to use multi-factor authentication using the Microsoft.PowerPlatform.Administration.UserManagement powershell scripts? Many organizations mandate the use of Multi-Factor auth, especially for priviliged roles (such as what this script requires)

The documentation for the Connect-AzureAD module states that MFA can't be used with the Connect-AzureAD method been used in the script

PS C:\> Connect-AzureAD -Credential $Credential
The first command gets the user credentials, and then stores them in the $Credential variable.

The second command connects the current PowerShell session using the credentials in $Credential.

This account authenticates with Azure Active Directory using organizational ID credentials. You cannot use multi-factor authentication or Microsoft account credentials to run Azure Active Directory cmdlets with this account.```
@phecke
Copy link
Member

phecke commented Mar 16, 2024

@bubbletroubles I have forwarded your question to the people that maintain that code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants