Skip to content

Commit

Permalink
Enable Limited number of snoozes
Browse files Browse the repository at this point in the history
  • Loading branch information
CHRIS-BRANNON committed Aug 16, 2024
1 parent 8ea838f commit d967069
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function Invoke-CIPPStandardNudgeMFA {
$Body = $CurrentInfo
$body.registrationEnforcement.authenticationMethodsRegistrationCampaign.state = $Settings.state
$body.registrationEnforcement.authenticationMethodsRegistrationCampaign.snoozeDurationInDays = $Settings.snoozeDurationInDays
$body.registrationEnforcement.authenticationMethodsRegistrationCampaign.enforceRegistrationAfterAllowedSnoozes = $true

$body = ConvertTo-Json -Depth 10 -InputObject ($body | Select-Object registrationEnforcement)
New-GraphPostRequest -tenantid $tenant -Uri 'https://graph.microsoft.com/beta/policies/authenticationMethodsPolicy' -Type patch -Body $body -ContentType 'application/json'
Expand Down

0 comments on commit d967069

Please sign in to comment.