microsoftgraph
1 TopicPowerShell - how to pass sign-in credentials?
We have been trying to automate MFAin the background, without a user to sign in using the following command: Import-Module -Name Microsoft.Graph.Identity.SignIns Connect-MgGraph -Scopes "User.Read.all","UserAuthenticationMethod.Read.All","UserAuthenticationMethod.ReadWrite.All" New-MgUserAuthenticationPhoneMethod -UserId ${activityInput.UserId} -phoneType "mobile" -phoneNumber ${activityInput.phoneNumber} But, we get the following error message: "Terminated the probe because the max timeout was exceeded: 11 seconds.\nPowershellProcessRunner terminated due to interrupt java.lang.InterruptedException\n" I think Connect-MgGraph requires sign-in credentials, but we are not sure as to how to pass it. Can someone help us with this? Any help is appreciated. Thank you!683Views0likes3Comments