@@ -10537,7 +10537,10 @@ function Global:Get-SgwGroups {
1053710537 }
1053810538
1053910539 $Groups = $Response.Json.data
10540- $Groups | Foreach-Object { $_.policies = $_.policies | ConvertTo-Json -Depth 10 }
10540+ foreach ($Group in $Groups) {
10541+ $Group.policies = $Group.policies | ConvertTo-Json -Depth 10
10542+ $Group | Add-Member -MemberType AliasProperty -Name groupId -Value id
10543+ }
1054110544
1054210545 Write-Output $Groups
1054310546 }
@@ -10804,7 +10807,7 @@ function Global:New-SgwGroup {
1080410807 }
1080510808
1080610809 $Group = $Response.Json.data
10807- $Group.policies = $Group.policies | ConvertTo-Json -Depth 10
10810+ $Group | Add-Member -MemberType AliasProperty -Name groupId -Value id
1080810811
1080910812 Write-Output $Group
1081010813 }
@@ -10878,7 +10881,10 @@ function Global:Get-SgwGroupByShortName {
1087810881 }
1087910882
1088010883 $Group = $Response.Json.data
10884+ foreach ($Group in $Groups) {
1088110885 $Group.policies = $Group.policies | ConvertTo-Json -Depth 10
10886+ $Group | Add-Member -MemberType AliasProperty -Name groupId -Value id
10887+ }
1088210888
1088310889 Write-Output $Group
1088410890 }
@@ -10953,6 +10959,7 @@ function Global:Get-SgwFederatedGroupByShortName {
1095310959
1095410960 $Group = $Response.Json.data
1095510961 $Group.policies = $Group.policies | ConvertTo-Json -Depth 10
10962+ $Group | Add-Member -MemberType AliasProperty -Name groupId -Value id
1095610963
1095710964 Write-Output $Group
1095810965 }
@@ -11103,6 +11110,7 @@ function Global:Get-SgwGroup {
1110311110
1110411111 $Group = $Response.Json.data
1110511112 $Group.policies = $Group.policies | ConvertTo-Json -Depth 10
11113+ $Group | Add-Member -MemberType AliasProperty -Name groupId -Value id
1110611114
1110711115 Write-Output $Group
1110811116 }
@@ -11355,6 +11363,7 @@ function Global:Update-SgwGroup {
1135511363
1135611364 $Group = $Response.Json.data
1135711365 $Group.policies = $Group.policies | ConvertTo-Json -Depth 10
11366+ $Group | Add-Member -MemberType AliasProperty -Name groupId -Value id
1135811367
1135911368 Write-Output $Group
1136011369 }
@@ -11635,6 +11644,7 @@ function Global:Replace-SgwGroup {
1163511644
1163611645 $Group = $Response.Json.data
1163711646 $Group.policies = $Group.policies | ConvertTo-Json -Depth 10
11647+ $Group | Add-Member -MemberType AliasProperty -Name groupId -Value id
1163811648
1163911649 Write-Output $Group
1164011650 }
0 commit comments