Skip to content

Commit e29a423

Browse files
authored
Fix for manage-creation-of-groups.md
The old code only output a limited paged number of elements if you have a lot of groups. My commit fixes this problem by filtering the output before.
1 parent 06a1b60 commit e29a423

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

microsoft-365/solutions/manage-creation-of-groups.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ if(!$settingsObjectID)
137137
}
138138
139139
140-
$groupId = (Get-MgBetaGroup | Where-object {$_.displayname -eq $GroupName}).Id
140+
$groupId = (Get-MgGroup -Filter "displayName eq '$GroupName'").id
141141
142142
$params = @{
143143
templateId = "62375ab9-6b52-47ed-826b-58e47e0e304b"

0 commit comments

Comments
 (0)