Skip to content

Commit a38755f

Browse files
Update manage-creation-of-groups.md
Added -All to Get-MgBetaGroup which resolves an issue with the script failing to assign a group ID due to limitations of failing to load the full list of groups from Entra.
1 parent f6c11ad commit a38755f

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-MgBetaGroup -All | Where-object {$_.displayname -eq $GroupName}).Id
141141
142142
$params = @{
143143
templateId = "62375ab9-6b52-47ed-826b-58e47e0e304b"

0 commit comments

Comments
 (0)