powershell - Azure AD V2 MFA support -
i looking support on v2 azure ad cmdlets, assigning mfa policy on directory user using set-azureaduser. how can enable mfa azure ad v2 powershell ?
i not believe possible set mfa on user using v2 version of aad powershell module. because property not appear exposed via aad graph api yet.
instead, need use older v1 version of aad powershell module (msol powershell). there documentation online shows how this, this one.
$auth = new-object -typename microsoft.online.administration.strongauthenticationrequirement $auth.relyingparty = "*" $auth.state = "enabled" $auth.rememberdevicesnotissuedbefore = (get-date) set-msoluser -userprincipalname <userprincipalname> -strongauthenticationrequirements $auth there bunch of warning related setting mfa in manner, user additionally need go , set mfa settings through mfa ui. please make sure test end end flow here before on many users in bulk.
Comments
Post a Comment