Skip to content

Commit ea2fe21

Browse files
authored
Merge pull request #959 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 13580ff + 25a06e3 commit ea2fe21

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Modules/CIPPHTTP/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecRestoreBackup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function Invoke-ExecRestoreBackup {
1414
$AzureTableTypes = @(
1515
[string], [int], [long], [double], [bool], [datetime], [guid], [byte[]]
1616
)
17-
$RestrictedTables = @('AccessRoleGroups', 'CustomRoles') # tables that require superadmin to restore
17+
$RestrictedTables = @('AccessRoleGroups', 'AccessIPRanges', 'CustomRoles') # tables that require superadmin to restore
1818

1919
# Resolve the calling user's roles, including Entra group-based roles
2020
$CallingUser = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Request.Headers.'x-ms-client-principal')) | ConvertFrom-Json

Modules/CIPPHTTP/Public/Entrypoints/HTTP Functions/Tenant/Conditional/Invoke-ExecCAExclusion.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ function Invoke-ExecCAExclusion {
3737

3838
$VacationGroupName = "Vacation Exclusion - $($Policy.displayName)"
3939
$escapedGroupName = $VacationGroupName -replace "'", "''"
40-
$VacationGroups = @(New-GraphGetRequest -uri "https://graph.microsoft.com/beta/groups?`$select=id,displayName&`$filter=displayName eq '$escapedGroupName' and mailEnabled eq false and securityEnabled eq true" -tenantid $TenantFilter)
40+
$groupFilter = "displayName eq '$escapedGroupName' and mailEnabled eq false and securityEnabled eq true"
41+
$encodedGroupFilter = [System.Uri]::EscapeDataString($groupFilter)
42+
$VacationGroups = @(New-GraphGetRequest -uri "https://graph.microsoft.com/beta/groups?`$select=id,displayName&`$filter=$encodedGroupFilter" -tenantid $TenantFilter)
4143

4244
$DuplicateGroupWarning = $null
4345
if ($VacationGroups.Count -eq 0) {

0 commit comments

Comments
 (0)