Skip to content

Commit 3673e16

Browse files
Update manage-creation-of-groups.md
Made some changes adding "-All" parameter to the Get-MgBetaGroup cmdlet, in order to retrieve all groups to ensure the capability to read over 100 elements in group lists. Also, I deleted the entire hash table that contains the 'EnableMSStandardBlockedWords' function since it is deprecated and retired. I only left the templateId.
1 parent 168aae5 commit 3673e16

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

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

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: Manage who can create Microsoft 365 Groups
33
f1.keywords: NOCSH
44
ms.author: mikeplum
5-
ms.reviewer: rahulnayak
6-
ms.date: 11/22/2023
5+
ms.reviewer: dntt3:lQ
6+
ms.date: 18/03/2024
77
author: MikePlumleyMSFT
88
manager: pamgreen
99
audience: Admin
@@ -123,21 +123,15 @@ if(!$settingsObjectID)
123123
{
124124
$params = @{
125125
templateId = "62375ab9-6b52-47ed-826b-58e47e0e304b"
126-
values = @(
127-
@{
128-
name = "EnableMSStandardBlockedWords"
129-
value = "true"
130-
}
131-
)
132126
}
133127
134128
New-MgBetaDirectorySetting -BodyParameter $params
135129
136130
$settingsObjectID = (Get-MgBetaDirectorySetting | Where-object -Property Displayname -Value "Group.Unified" -EQ).Id
137131
}
138132
139-
140-
$groupId = (Get-MgBetaGroup | Where-object {$_.displayname -eq $GroupName}).Id
133+
$groups = Get-MgBetaGroup -All
134+
$groupId = ( $groups | Where-object {$_.displayname -eq $GroupName}).Id
141135
142136
$params = @{
143137
templateId = "62375ab9-6b52-47ed-826b-58e47e0e304b"

0 commit comments

Comments
 (0)