A cloud-based identity and access management service for securing user authentication and resource access
unable to activate my PIM role using PowerShell using New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest. It keeps failing with "policy rules failed: ["MfaRule"]
I issue connect-mggraph and interactively sign in. When I call the New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest cmdlet, It returns an error:
New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest_Create: The following policy rules failed: ["MfaRule"]
Status: 400 (BadRequest)
ErrorCode: RoleAssignmentRequestPolicyValidationFailed
and the sign in logs show sign in error 500186 - user not allowed by policy conditions with Additional details showing "user needs to perform multi factor authentication"
however, i wasnt prompted for any additional MFA. I have the Authenticator app, but there is no prompt to check it for sign in.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
1 answer
Sort by: Most helpful
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
3 deleted comments
Comments have been turned off. Learn more