Skip to content

Commit 2ce4011

Browse files
committed
Fix missing $ in $top query parameters for Intune endpoints
Added missing backtick-escaped dollar signs before 'top' in the $top query parameters for several Microsoft Graph API URLs. This ensures correct OData query syntax and proper pagination when retrieving Intune policy data.
1 parent b6c5c74 commit 2ce4011

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListIntunePolicy.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,32 @@ function Invoke-ListIntunePolicy {
2525
@{
2626
id = 'DeviceConfigurations'
2727
method = 'GET'
28-
url = "/deviceManagement/deviceConfigurations?`$select=id,displayName,lastModifiedDateTime,roleScopeTagIds,microsoft.graph.unsupportedDeviceConfiguration/originalEntityTypeName,description&`$expand=assignments&top=1000"
28+
url = "/deviceManagement/deviceConfigurations?`$select=id,displayName,lastModifiedDateTime,roleScopeTagIds,microsoft.graph.unsupportedDeviceConfiguration/originalEntityTypeName,description&`$expand=assignments&`$top=1000"
2929
}
3030
@{
3131
id = 'WindowsDriverUpdateProfiles'
3232
method = 'GET'
33-
url = "/deviceManagement/windowsDriverUpdateProfiles?`$expand=assignments&top=200"
33+
url = "/deviceManagement/windowsDriverUpdateProfiles?`$expand=assignments&`$top=200"
3434
}
3535
@{
3636
id = 'WindowsFeatureUpdateProfiles'
3737
method = 'GET'
38-
url = "/deviceManagement/windowsFeatureUpdateProfiles?`$expand=assignments&top=200"
38+
url = "/deviceManagement/windowsFeatureUpdateProfiles?`$expand=assignments&`$top=200"
3939
}
4040
@{
4141
id = 'windowsQualityUpdatePolicies'
4242
method = 'GET'
43-
url = "/deviceManagement/windowsQualityUpdatePolicies?`$expand=assignments&top=200"
43+
url = "/deviceManagement/windowsQualityUpdatePolicies?`$expand=assignments&`$top=200"
4444
}
4545
@{
4646
id = 'windowsQualityUpdateProfiles'
4747
method = 'GET'
48-
url = "/deviceManagement/windowsQualityUpdateProfiles?`$expand=assignments&top=200"
48+
url = "/deviceManagement/windowsQualityUpdateProfiles?`$expand=assignments&`$top=200"
4949
}
5050
@{
5151
id = 'GroupPolicyConfigurations'
5252
method = 'GET'
53-
url = "/deviceManagement/groupPolicyConfigurations?`$expand=assignments&top=1000"
53+
url = "/deviceManagement/groupPolicyConfigurations?`$expand=assignments&`$top=1000"
5454
}
5555
@{
5656
id = 'MobileAppConfigurations'
@@ -60,7 +60,7 @@ function Invoke-ListIntunePolicy {
6060
@{
6161
id = 'ConfigurationPolicies'
6262
method = 'GET'
63-
url = "/deviceManagement/configurationPolicies?`$expand=assignments&top=1000"
63+
url = "/deviceManagement/configurationPolicies?`$expand=assignments&`$top=1000"
6464
}
6565
)
6666

0 commit comments

Comments
 (0)