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')"