Skip to content

Commit

Permalink
Merge branch 'main' into fix-updatemessage
Browse files Browse the repository at this point in the history
  • Loading branch information
f-bader authored Apr 13, 2024
2 parents 823ecd6 + cbb4e1e commit e26178b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions powershell/internal/Invoke-MtGraphRequestCache.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Function Invoke-MtGraphRequestCache {
}

if (!$results) {
Write-Verbose ("Invoking Graph: $($Uri.AbsoluteUri)")
$results = Invoke-MgGraphRequest -Method $Method -Uri $Uri -Headers $Headers -OutputType $OutputType
if (!$isBatch -and $isMethodGet) {
# Update cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ See [Block legacy authentication - Microsoft Learn](https://learn.microsoft.com/
foreach ($policy in $policies) {
if ( $policy.grantcontrols.builtincontrols -contains 'block' `
-and "exchangeActiveSync" -in $policy.conditions.clientAppTypes `
-and $policy.conditions.applications.includeApplications -eq "00000002-0000-0ff1-ce00-000000000000" `
-and ( `
$policy.conditions.applications.includeApplications -eq "00000002-0000-0ff1-ce00-000000000000" `
-or $policy.conditions.applications.includeApplications -eq "all" `
) `
-and $policy.conditions.users.includeUsers -eq "All" `
) {
$result = $true
Expand Down

0 comments on commit e26178b

Please sign in to comment.