manifests/collectors/Identity/Groups.psd1
|
# # GENERATED by scripts/ConvertTo-ScoutCollectorDefinition.ps1 from Modules/Public/InventoryModules/Identity/Groups.ps1 (AB#5660). # Field expressions are copied verbatim from the original collector and evaluate in an # equivalent scope -- see docs/design/decisions/declarative-collectors.md. # Review before trusting; regenerate rather than hand-patch if the source collector changes. # @{ ResourceTypes = @( 'entra/groups' ) ResourceTypeMatching = 'Grouped' AdditionalFilter = $null FilterPreamble = '' RowLoopVariable = '1' Preamble = @' $ResUCount = 1 $data = $1.properties $groupType = if ($data.groupTypes -contains 'Unified') { 'Microsoft 365' } elseif ($data.securityEnabled) { 'Security' } else { 'Distribution' } $dynamicRule = if ($data.membershipRule) { $data.membershipRule } else { '' } '@ AdditionalRowLoops = @() TagLoop = $null Fields = @( @{ Name = 'ID' Expression = '$1.id' } @{ Name = 'Tenant ID' Expression = '$1.tenantId' } @{ Name = 'Display Name' Expression = '$data.displayName' } @{ Name = 'Group Type' Expression = '$groupType' } @{ Name = 'Security Enabled' Expression = '$data.securityEnabled' } @{ Name = 'Mail Enabled' Expression = '$data.mailEnabled' } @{ Name = 'Is Role Assignable' Expression = 'if ($data.isAssignableToRole) { ''Yes'' } else { ''No'' }' } @{ Name = 'Dynamic Membership' Expression = 'if ($data.membershipRule) { ''Yes'' } else { ''No'' }' } @{ Name = 'Dynamic Rule' Expression = '$dynamicRule' } @{ Name = 'On-Premises Sync' Expression = 'if ($data.onPremisesSyncEnabled) { ''Yes'' } else { ''No'' }' } @{ Name = 'Description' Expression = '$data.description' } @{ Name = 'Resource U' Expression = '$ResUCount' } ) Export = @{ WorksheetName = 'Entra Groups' TableNamePrefix = 'EntraGroupsTable_' Columns = @( 'Display Name' 'Group Type' 'Security Enabled' 'Mail Enabled' 'Is Role Assignable' 'Dynamic Membership' 'Dynamic Rule' 'On-Premises Sync' 'Description' 'Resource U' ) TagColumns = @() TagColumnsBefore = $null NumberFormat = '0' ConditionalText = @( 'New-ConditionalText Yes -Range G:G -ConditionalType ContainsText -BackgroundColor LightGreen' ) } SourceCollector = 'Modules/Public/InventoryModules/Identity/Groups.ps1' } |