From a38755f260aa27b482c7d0f6d204f834039680f4 Mon Sep 17 00:00:00 2001 From: StuartCRyan-WCL <110767529+StuartCRyan-WCL@users.noreply.github.com> Date: Wed, 17 Jul 2024 12:15:02 +1000 Subject: [PATCH] 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. --- microsoft-365/solutions/manage-creation-of-groups.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/microsoft-365/solutions/manage-creation-of-groups.md b/microsoft-365/solutions/manage-creation-of-groups.md index 81cf4298f77..f40e7dec566 100644 --- a/microsoft-365/solutions/manage-creation-of-groups.md +++ b/microsoft-365/solutions/manage-creation-of-groups.md @@ -137,7 +137,7 @@ if(!$settingsObjectID) } -$groupId = (Get-MgBetaGroup | Where-object {$_.displayname -eq $GroupName}).Id +$groupId = (Get-MgBetaGroup -All | Where-object {$_.displayname -eq $GroupName}).Id $params = @{ templateId = "62375ab9-6b52-47ed-826b-58e47e0e304b"