Due to the proliferation of IT related Distribution Groups, I'm creating a separate address book policies for IT users and Non IT users so that each groups will have their own address book policy and default address list. I've already been using an Address Book Policy for our global user base so that address book updates happen quickly and all of that works great.
In my case, I'm using a custom attribute to define the IT related distribution groups.
I'm creating new default address list to include in the default Address Book Policy which excludes the IT Distribution Groups. I've assigned the new Default Address Book to the policy which is created as such:
RecipientFilter : ((CustomAttribute1 -ne 'IT') -and (((((((((((RecipientType -eq 'UserMailbox') -or (Recip
ientType -eq 'MailUniversalDistributionGroup'))) -or (RecipientType -eq 'DynamicDistribu
tionGroup'))) -or (RecipientType -eq 'MailContact'))) -or (RecipientDisplayType
-eq 'Con
ferenceRoomMailbox'))) -or (RecipientDisplayType -eq 'SyncedConferenceRoomMailbox'))))
LdapRecipientFilter : (&(!(extensionAttribute1=IT))(|(&(objectClass=user)(objectCategory=person)(mailNickname=
*)(msExchHomeServerName=*))(&(objectCategory=group)(groupType:1.2.840.113556.1.4.804:=8)
(!(groupType:1.2.840.113556.1.4.804:=2147483648))(mailNickname=*))(&(objectCategory=msEx
chDynamicDistributionList)(mailNickname=*))(&(objectClass=contact)(mailNickname=*))(msEx
chRecipientDisplayType=7)(msExchRecipientDisplayType=-2147481850)))
RecipientFilterApplied : False
When I switch my test users to the new policy, the Distribution Groups that I want to hide via the custom attribute are hidden as expected.
The problem is that under this policy, all of the mailboxes that are hidden from the GAL are displayed. Is there a way to change this? Note that the RecpientFilterApplied property is set to False. In the default it is set to True as is the case in my "default" Default Global Address List"
I suspect this might be the issue, but I can't figure out how to change this. when I run Set-GlobalAddressList, I get the error that:
A positional parameter cannot be found that accepts argument '-recpientfilterapplied'