Forum Discussion
Adresslist - All users
5 Replies
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 SchmeckthalBrass ContributorHello Vasil.
Sorry for the delayed reply.
Could you please gibe me a hint how to use this query?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"}
- Dennis HogewoningBrass Contributor
Dirk Schmeckthal what I would do is select "hide from address lists" with everything you don't want to show up in the GAL. You can do this with all mail enabled objects (mailboxes, groups etc.).
- Dirk SchmeckthalBrass ContributorHello Dennis.
Thanks for your suggestion, but i want to have is a separate address list with all users that got an o365 license assigned.