@@ -225,6 +225,11 @@ function Invoke-ListIntunePolicy {
225225 method = ' GET'
226226 url = " /deviceManagement/intents?`$ top=1000"
227227 }
228+ @ {
229+ id = ' ManagedAppPolicies'
230+ method = ' GET'
231+ url = ' /deviceAppManagement/managedAppPolicies?$orderby=displayName'
232+ }
228233 )
229234
230235 $BulkResults = New-GraphBulkRequest - Requests $BulkRequests - tenantid $TenantFilter
@@ -236,6 +241,7 @@ function Invoke-ListIntunePolicy {
236241 $URLName = $_.Id
237242 $_.body.Value | ForEach-Object {
238243 $AssignmentContext = $_ .' assignments@odata.context'
244+ $PolicyODataType = $_ .' @odata.type'
239245 $policyTypeName = switch - Wildcard ($AssignmentContext ) {
240246 ' *microsoft.graph.windowsIdentityProtectionConfiguration*' { ' Identity Protection' }
241247 ' *microsoft.graph.windows10EndpointProtectionConfiguration*' { ' Endpoint Protection' }
@@ -264,6 +270,14 @@ function Invoke-ListIntunePolicy {
264270 $policyTypeName = switch ($URLName ) {
265271 ' deviceCompliancePolicies' { ' Compliance Policy' }
266272 ' Intents' { ' Endpoint Security' }
273+ ' ManagedAppPolicies' {
274+ switch - Wildcard ($PolicyODataType ) {
275+ ' *iosManagedAppProtection*' { ' iOS App Protection' }
276+ ' *androidManagedAppProtection*' { ' Android App Protection' }
277+ ' *windowsManagedAppProtection*' { ' Windows App Protection' }
278+ default { ' App Protection' }
279+ }
280+ }
267281 default { $AssignmentContext }
268282 }
269283 }
0 commit comments