Skip to content

Commit b3df695

Browse files
committed
Remove a few comments and add TAP region
1 parent e419c72 commit b3df695

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ExecJITAdmin.ps1

+3-1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ Function Invoke-ExecJITAdmin {
9292
Start-Sleep -Seconds 1
9393
}
9494

95+
#Region TAP creation
9596
if ($Request.Body.UseTAP) {
9697
try {
9798
if ($Start -gt (Get-Date)) {
@@ -102,7 +103,7 @@ Function Invoke-ExecJITAdmin {
102103
} else {
103104
$TapBody = '{}'
104105
}
105-
Write-Information "https://graph.microsoft.com/beta/users/$Username/authentication/temporaryAccessPassMethods"
106+
# Write-Information "https://graph.microsoft.com/beta/users/$Username/authentication/temporaryAccessPassMethods"
106107
# Retry creating the TAP up to 10 times, since it can fail due to the user not being fully created yet. Sometimes it takes 2 reties, sometimes it takes 8+. Very annoying. -Bobby
107108
$Retries = 0
108109
$MAX_TAP_RETRIES = 10
@@ -136,6 +137,7 @@ Function Invoke-ExecJITAdmin {
136137
}
137138
}
138139
}
140+
#EndRegion TAP creation
139141

140142
$Parameters = @{
141143
TenantFilter = $TenantFilter

0 commit comments

Comments
 (0)