Skip to content

Commit

Permalink
Merge pull request #935 from kris6673/dev
Browse files Browse the repository at this point in the history
Update JIT Admin task name to include expire action
  • Loading branch information
KelvinTegelaar authored Jul 5, 2024
2 parents 169cf66 + 4c46034 commit 17d2fd4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Function Invoke-ExecJITAdmin {

$DisableTaskBody = @{
TenantFilter = $Request.Body.TenantFilter
Name = "JIT Admin (disable): $Username"
Name = "JIT Admin ($($Request.Body.ExpireAction)): $Username"
Command = @{
value = 'Set-CIPPUserJITAdmin'
label = 'Set-CIPPUserJITAdmin'
Expand All @@ -177,7 +177,7 @@ Function Invoke-ExecJITAdmin {
ScheduledTime = $Request.Body.EndDate
}
Add-CIPPScheduledTask -Task $DisableTaskBody -hidden $false
$Results.Add("Scheduling JIT Admin disable task for $Username")
$Results.Add("Scheduling JIT Admin $($Request.Body.ExpireAction) task for $Username")
$Body = @{
Results = @($Results)
}
Expand Down

0 comments on commit 17d2fd4

Please sign in to comment.