Skip to content

Commit 115ab34

Browse files
committed
Group PIM cache items under P2 section
Move PIM-related cache entries into the Azure AD Premium P2 cache list and update the section heading. Removed RoleEligibilitySchedules, RoleManagementPolicies and RoleAssignmentScheduleInstances from the earlier list and added RoleEligibilitySchedules, RoleAssignmentSchedules and RoleManagementPolicies to the P2 cache functions. Also updated the region comment to "Identity Protection/PIM features" to reflect the grouping.
1 parent dc0de25 commit 115ab34

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-CIPPDBCacheData.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ function Push-CIPPDBCacheData {
5050
'SecureScore'
5151
'PIMSettings'
5252
'Domains'
53-
'RoleEligibilitySchedules'
54-
'RoleManagementPolicies'
55-
'RoleAssignmentScheduleInstances'
5653
'B2BManagementPolicy'
5754
'AuthenticationFlowsPolicy'
5855
'DeviceRegistrationPolicy'
@@ -130,13 +127,16 @@ function Push-CIPPDBCacheData {
130127
}
131128
#endregion Conditional Access Licensed
132129

133-
#region Azure AD Premium P2 - Identity Protection features
130+
#region Azure AD Premium P2 - Identity Protection/PIM features
134131
if ($AzureADPremiumP2Capable) {
135132
$P2CacheFunctions = @(
136133
'RiskyUsers'
137134
'RiskyServicePrincipals'
138135
'ServicePrincipalRiskDetections'
139136
'RiskDetections'
137+
'RoleEligibilitySchedules'
138+
'RoleAssignmentSchedules'
139+
'RoleManagementPolicies'
140140
)
141141
foreach ($CacheFunction in $P2CacheFunctions) {
142142
$Batch.Add(@{

0 commit comments

Comments
 (0)