You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: module/EntraBeta/AdditionalFunctions/Update-EntraBetaUserAuthenticationRequirement.ps1
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,7 @@ function Update-EntraBetaUserAuthenticationRequirement {
9
9
[Alias("ObjectId")]
10
10
[System.String] $UserId,
11
11
12
-
[Parameter(Mandatory=$true,HelpMessage="Specify the per-user MFA state. Valid values are 'enabled', 'disabled', or 'enforced'.")]
13
-
[ValidateSet("enabled","disabled","enforced")]
12
+
[Parameter(Mandatory=$true,HelpMessage="Specify the Multi-Factor Authentication (MFA) state for individual users. Valid values include 'Enabled', 'Disabled', and 'Enforced'.")]
14
13
[System.String] $PerUserMfaState
15
14
)
16
15
@@ -23,7 +22,7 @@ function Update-EntraBetaUserAuthenticationRequirement {
23
22
if ($null-ne$PSBoundParameters["UserId"]) {
24
23
$params["UserId"] =$PSBoundParameters["UserId"]
25
24
}
26
-
if ($null-ne$PSBoundParameters["CurrentPassword"]) {
25
+
if ($null-ne$PSBoundParameters["PerUserMfaState"]) {
0 commit comments