Skip to content

Commit f965afe

Browse files
Implements #6214
1 parent 25b4110 commit f965afe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Modules/CIPPAlerts/Public/Alerts/Get-CIPPAlertInactiveLicensedUsers.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ function Get-CIPPAlertInactiveLicensedUsers {
2020

2121
if ($InputValue -is [hashtable] -or $InputValue -is [pscustomobject]) {
2222
$excludeDisabled = [bool]$InputValue.ExcludeDisabled
23+
# Allow the alert configuration to opt in to reporting users who have never signed in (e.g. accounts with sign-in blocked)
24+
if ([bool]$InputValue.IncludeNeverSignedIn) { $IncludeNeverSignedIn = $true }
2325
if ($null -ne $InputValue.DaysSinceLastLogin -and $InputValue.DaysSinceLastLogin -ne '') {
2426
$parsedDays = 0
2527
if ([int]::TryParse($InputValue.DaysSinceLastLogin.ToString(), [ref]$parsedDays) -and $parsedDays -gt 0) {

0 commit comments

Comments
 (0)