Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion solutions/EntraGoat-Scenario1-Solution.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ foreach ($sp in $ownedSPs) {
}

# Save the SP object ID
$targetSPId = $ownedSPs | Where-Object { $_.DisplayName -eq "HR Analytics Dashboard"} | Select-Object -First 1 -ExpandProperty Id
$targetSPId = $ownedSPs | Where-Object { $_.DisplayName -eq "Finance Analytics Dashboard"} | Select-Object -First 1 -ExpandProperty Id
$clientId = $ownedSPs | Where-Object { $_.DisplayName -eq "Finance Analytics Dashboard"} | Select-Object -First 1 -ExpandProperty AppId

# Step 3: Since we own the SP, we can add a secret to it
$secretDescription = "EntraGoat-Secret-$(Get-Date -Format 'yyyyMMdd-HHmmss')"
Expand Down