Forum Discussion
Azure AD Dynamic Groups - Display Membership and count members
- May 13, 2017
Try the -All parameter?
Try the -All parameter?
- Himanshu SinghApr 02, 2020Iron Contributor
What about the -All parameter in case of Office 365 groups
LDAP display name Available on cmdlets Value Comments n/a Get-UnifiedGroup Integer For example, Get-UnifiedGroup -Filter "GroupExternalMemberCount -gt 0". Filterable properties for the Filter parameter
https://docs.microsoft.com/en-us/powershell/exchange/exchange-server/recipient-filters/filter-properties?view=exchange-ps-All parameter - when used the command does not generate any output,
but it works without but then not sure if it was able to check/traverse/enumerate all groups or not ,
As in just the first 100 or something when -All or unlimited is not specified
BR,
/HS
- paulsugarclJul 13, 2021Copper Contributor
Himanshu Singh hi!!!
less complex (Get-AzureADGroupMember -all 1 -ObjectId "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").count
- William TaitMay 15, 2017Brass ContributorYes, that works. Documentation doesn't explain why without -ALL the limit is 100.
Awkward syntax but it works:
(Get-AzureADGroup -ALL 1 -Filter "DisplayName eq 'GroupName'" | Get-AzureADGroupMember -ALL 1).COUNT
Thanks.- VasilMichevMay 15, 2017MVP
It's a boolean parameter, 1 equals $true :) And don't get me started on the stupid syntax used by the AzureAD module, gotta love programmers...