Forum Discussion
Dirk Schmeckthal
Jul 12, 2019Brass Contributor
Adresslist - All users
Hello. My question is about the global address list. How do i create an address list with all users which have an office 365 license? Currently the All Users list is also showing shared mailboxes with...
VasilMichev
Jul 15, 2019MVP
If it's an actual address list you want to create (not hide from the GAL or something), you can use the following query:
{SkuAssigned -eq $true}
If you want to further limit it to just (user) mailboxes:
{SkuAssigned -eq $true -and RecipientTypeDetails -eq "UserMailbox"}
- Dirk SchmeckthalJul 25, 2019Brass ContributorHello Vasil.
Sorry for the delayed reply.
Could you please gibe me a hint how to use this query?- VasilMichevJul 26, 2019MVP
You will have to update the recipient filter on any and all Address lists you need to show just licensed users. Or create new ones/assign them to users. Here's an example with creating a new one:
New-AddressList -Name LicensedMailboxes -RecipientFilter {SkuAssigned -eq $true -and RecipientTypeDetails -eq "UserMailbox"}