Skip to content

Commit 65ce13f

Browse files
committed
remove schema property update
1 parent e72a718 commit 65ce13f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Modules/CIPPCore/Public/Set-CIPPPerUserMFA.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,6 @@ function Set-CIPPPerUserMFA {
5353
$Requests = New-GraphBulkRequest -tenantid $TenantFilter -scope 'https://graph.microsoft.com/.default' -Requests @($Requests) -asapp $true
5454
"Successfully set Per user MFA State for $userId"
5555

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
6556
Write-LogMessage -headers $Headers -API $APIName -message "Successfully set Per user MFA State to $State for $id" -Sev Info -tenant $TenantFilter
6657
} catch {
6758
$ErrorMessage = Get-CippException -Exception $_

0 commit comments

Comments
 (0)