manifests/collectors/Identity/AppRegistrations.psd1
|
# # GENERATED by scripts/ConvertTo-ScoutCollectorDefinition.ps1 from Modules/Public/InventoryModules/Identity/AppRegistrations.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/applications' ) ResourceTypeMatching = 'Grouped' AdditionalFilter = $null FilterPreamble = '' RowLoopVariable = '1' Preamble = @' $ResUCount = 1 $data = $1.properties # Get nearest key credential expiry $keyExpiry = $null if ($data.keyCredentials) { $keyExpiry = ($data.keyCredentials | Sort-Object endDateTime | Select-Object -First 1).endDateTime } # Get nearest password credential expiry $passwordExpiry = $null if ($data.passwordCredentials) { $passwordExpiry = ($data.passwordCredentials | Sort-Object endDateTime | Select-Object -First 1).endDateTime } $permissionCount = 0 if ($data.requiredResourceAccess) { $permissionCount = @($data.requiredResourceAccess).Count } '@ AdditionalRowLoops = @() TagLoop = $null Fields = @( @{ Name = 'ID' Expression = '$1.id' } @{ Name = 'Tenant ID' Expression = '$1.tenantId' } @{ Name = 'Display Name' Expression = '$data.displayName' } @{ Name = 'Application ID' Expression = '$data.appId' } @{ Name = 'Sign-In Audience' Expression = '$data.signInAudience' } @{ Name = 'Key Credential Expiry' Expression = '$keyExpiry' } @{ Name = 'Password Credential Expiry' Expression = '$passwordExpiry' } @{ Name = 'API Permission Count' Expression = '$permissionCount' } @{ Name = 'Publisher Domain' Expression = '$data.publisherDomain' } @{ Name = 'Created DateTime' Expression = '$data.createdDateTime' } @{ Name = 'Resource U' Expression = '$ResUCount' } ) Export = @{ WorksheetName = 'App Registrations' TableNamePrefix = 'AppRegsTable_' Columns = @( 'Display Name' 'Application ID' 'Sign-In Audience' 'Key Credential Expiry' 'Password Credential Expiry' 'API Permission Count' 'Publisher Domain' 'Created DateTime' 'Resource U' ) TagColumns = @() TagColumnsBefore = $null NumberFormat = '0' ConditionalText = @() } SourceCollector = 'Modules/Public/InventoryModules/Identity/AppRegistrations.ps1' } |