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: Modules/CIPPCore/Public/Alerts/Get-CIPPAlertMFAAdmins.ps1
+1-1
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ function Get-CIPPAlertMFAAdmins {
18
18
}
19
19
}
20
20
if (!$DuoActive) {
21
-
$users=New-GraphGETRequest-uri 'https://graph.microsoft.com/beta/reports/authenticationMethods/userRegistrationDetails?$top=999&$filter=IsAdmin eq true and userDisplayName ne ''On-Premises Directory Synchronization Service Account'''-tenantid $($TenantFilter) |Where-Object-Property 'isMfaRegistered'-EQ$false
21
+
$users=New-GraphGETRequest-uri "https://graph.microsoft.com/beta/reports/authenticationMethods/userRegistrationDetails?`$top=999&filter=IsAdmin eq true and isMfaRegistered eq false and userType eq 'member'&`$select=userPrincipalName,lastUpdatedDateTime,isMfaRegistered,IsAdmin"-tenantid $($TenantFilter) |Where-Object{ $_.userDisplayName-ne'On-Premises Directory Synchronization Service Account' }
22
22
if ($users.UserPrincipalName) {
23
23
$AlertData="The following admins do not have MFA registered: $($users.UserPrincipalName-join', ')"
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Alerts/Get-CIPPAlertMFAAlertUsers.ps1
+1-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ function Get-CIPPAlertMFAAlertUsers {
12
12
)
13
13
try {
14
14
15
-
$users=New-GraphGETRequest-uri 'https://graph.microsoft.com/beta/reports/authenticationMethods/userRegistrationDetails?$top=999&filter=isMfaRegistered eq false and userType eq ''member'' and userDisplayName ne ''On-Premises Directory Synchronization Service Account''&$select=userPrincipalName,lastUpdatedDateTime,isMfaRegistered'-tenantid $($TenantFilter)
15
+
$users=New-GraphGETRequest-uri "https://graph.microsoft.com/beta/reports/authenticationMethods/userRegistrationDetails?`$top=999&filter=IsAdmin eq false and isMfaRegistered eq false and userType eq 'member'&`$select=userPrincipalName,lastUpdatedDateTime,isMfaRegistered,IsAdmin"-tenantid $($TenantFilter)|Where-Object { $_.userDisplayName-ne'On-Premises Directory Synchronization Service Account' }
16
16
if ($users.UserPrincipalName) {
17
17
$AlertData="The following $($users.Count) users do not have MFA registered: $($users.UserPrincipalName-join', ')"
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-AddGroupTemplate.ps1
+1-1
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Function Invoke-AddGroupTemplate {
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Teams-Sharepoint/Invoke-ExecTeamsVoicePhoneNumberAssignment.ps1
+14-10
Original file line number
Diff line number
Diff line change
@@ -11,26 +11,30 @@ Function Invoke-ExecTeamsVoicePhoneNumberAssignment {
11
11
param($Request,$TriggerMetadata)
12
12
13
13
$APIName=$TriggerMetadata.FunctionName
14
-
Write-LogMessage-user $request.headers.'x-ms-client-principal'-API $APINAME-message 'Accessed this API'-Sev 'Debug'
Write-LogMessage-user $ExecutingUser-API $APIName-message "Could not add new owner to $($OnedriveAccessUser) on $URL. Error: $($ErrorMessage.NormalizedError)"-Sev 'Error'-tenant $TenantFilter-LogData $ErrorMessage
55
+
Write-LogMessage-user $ExecutingUser-API $APIName-message "Could not add new owner to $($OnedriveAccessUser) on $URL. Error: $($ErrorMessage.NormalizedError)"-Sev Error -tenant $TenantFilter-LogData $ErrorMessage
55
56
return"Could not add owner for $($URL). Error: $($ErrorMessage.NormalizedError)"
0 commit comments