Skip to content

Commit a3c59b5

Browse files
member changes
1 parent 79e8524 commit a3c59b5

File tree

1 file changed

+2
-2
lines changed
  • Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-AddGroup.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ Function Invoke-AddGroup {
4040
if ($groupobj.groupType -eq 'm365') {
4141
$BodyToship | Add-Member -NotePropertyName 'groupTypes' -NotePropertyValue @('Unified')
4242
}
43-
if ($groupobj.AddOwner -AND $groupobj.groupType -in 'generic', 'azurerole', 'security') {
43+
if ($groupobj.owners -AND $groupobj.groupType -in 'generic', 'azurerole', 'security') {
4444
$BodyToship | Add-Member -NotePropertyName '[email protected]' -NotePropertyValue (($groupobj.AddOwner) | ForEach-Object { "https://graph.microsoft.com/v1.0/users/$($_.value)" })
4545
$bodytoship.'[email protected]' = @($bodytoship.'[email protected]')
4646
}
47-
if ($groupobj.AddMember -AND $groupobj.groupType -in 'generic', 'azurerole', 'security') {
47+
if ($groupobj.members -AND $groupobj.groupType -in 'generic', 'azurerole', 'security') {
4848
$BodyToship | Add-Member -NotePropertyName '[email protected]' -NotePropertyValue (($groupobj.AddMember) | ForEach-Object { "https://graph.microsoft.com/v1.0/users/$($_.value)" })
4949
$BodyToship.'[email protected]' = @($BodyToship.'[email protected]')
5050
}

0 commit comments

Comments
 (0)