From 8a3b46ef3df718d051a58111ef78ae3049210a54 Mon Sep 17 00:00:00 2001 From: trinuro <66290935+trinuro@users.noreply.github.com> Date: Tue, 12 Aug 2025 22:16:05 +0800 Subject: [PATCH] Add ref to clientId in Solution script for scenario 1 --- solutions/EntraGoat-Scenario1-Solution.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/solutions/EntraGoat-Scenario1-Solution.ps1 b/solutions/EntraGoat-Scenario1-Solution.ps1 index 6a96dbd..c4019b2 100644 --- a/solutions/EntraGoat-Scenario1-Solution.ps1 +++ b/solutions/EntraGoat-Scenario1-Solution.ps1 @@ -147,6 +147,7 @@ foreach ($sp in $ownedSPs) { # Save the SP object ID $targetSPId = $ownedSPs | Where-Object { $_.DisplayName -eq "HR Analytics Dashboard"} | Select-Object -First 1 -ExpandProperty Id +$clientId = $ownedSPs | Where-Object { $_.DisplayName -eq "HR 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')"