We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e72a718 commit 65ce13fCopy full SHA for 65ce13f
Modules/CIPPCore/Public/Set-CIPPPerUserMFA.ps1
@@ -53,15 +53,6 @@ function Set-CIPPPerUserMFA {
53
$Requests = New-GraphBulkRequest -tenantid $TenantFilter -scope 'https://graph.microsoft.com/.default' -Requests @($Requests) -asapp $true
54
"Successfully set Per user MFA State for $userId"
55
56
- $Users = foreach ($id in $userId) {
57
- @{
58
- userId = $id
59
- Properties = @{
60
- perUserMfaState = $State
61
- }
62
63
64
- Set-CIPPUserSchemaProperties -TenantFilter $TenantFilter -Users $Users
65
Write-LogMessage -headers $Headers -API $APIName -message "Successfully set Per user MFA State to $State for $id" -Sev Info -tenant $TenantFilter
66
} catch {
67
$ErrorMessage = Get-CippException -Exception $_
0 commit comments