We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6cc5cb6 + 6db0369 commit d497b45Copy full SHA for d497b45
samples/4-UsersAndGroups.ps1
@@ -12,6 +12,9 @@ Update-MgUser -UserId $UserId -OfficeLocation $NewLocation
12
# Get all Groups
13
Get-MgGroup -top 999 | Select-Object id, DisplayName, GroupTypes
14
15
+# Get all unified (Microsoft 365 Groups) Groups
16
+Get-MgGroup -Filter "groupTypes/any(c:c eq 'Unified')"
17
+
18
# Get-Details of a single Group
19
Get-MgGroup -GroupId $groupId | Format-List | more
20
0 commit comments