External Contacts to show in Custom Address List - Exchange Online / Office 365

%3CLINGO-SUB%20id%3D%22lingo-sub-679177%22%20slang%3D%22en-US%22%3EExternal%20Contacts%20to%20show%20in%20Custom%20Address%20List%20-%20Exchange%20Online%20%2F%20Office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-679177%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20get%20external%20contacts%20to%20show%20up%20in%20an%20added%20address%20list.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20managed%20to%20add%20the%20address%20list%20however%20I%20can't%20get%20the%20contacts%20to%20show%20in%20there.%20When%20I%20use%20the%20following%20it%20creates%20the%20address%20list%20and%20after%20updating%20a%20user%20mail%20box%20it%20works%20fine.%3CEM%3E%20Just%20tried%20to%20see%20if%20an%20actual%20user%20mail%20box%20worked%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENew-AddressList%20-Name%20%22Address%20List%20name%22%20-RecipientFilter%20%7B((RecipientType%20-eq%20'UserMailbox')%20-and%20(Office%20-eq%20'Name'))%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20tried%20this%20without%20luck%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENew-AddressList%20-Name%20%22Address%20List%20name%22%20-RecipientFilter%20%7B((RecipientType%20-eq%20'MailContact')%20-and%20(Office%20-eq%20'Name'))%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAm%20I%20on%20the%20right%20track%3F%20Which%26nbsp%3BRecipientType%20should%20I%20be%20using%20as%20I%20don't%20think%20%22MailContact%22%20is%20correct%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETIA%3C%2FP%3E%3CP%3ESam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-679177%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-679641%22%20slang%3D%22en-US%22%3ERe%3A%20External%20Contacts%20to%20show%20in%20Custom%20Address%20List%20-%20Exchange%20Online%20%2F%20Office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-679641%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20simply%20take%20a%20look%20at%20the%20%22All%20Contacts%22%20list%20that%20should%20be%20created%20by%20default%2C%20and%20use%20its%20recipient%20filter%20as%20a%20template%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EAll%20Contacts%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20((Alias%20-ne%20%24null)%20-and%20(((ObjectCategory%20-like%20'person')%20-and%20(ObjectClass%20-eq%20'contact'))))%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-680365%22%20slang%3D%22en-US%22%3ERe%3A%20External%20Contacts%20to%20show%20in%20Custom%20Address%20List%20-%20Exchange%20Online%20%2F%20Office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-680365%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20your%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20ended%20up%20creating%20a%20custom%20Dynamic%20Distribution%20Group%20which%20seems%20to%20work.%20More%20testing%20required%20however%20looks%20great%20so%20far.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi all,

 

I am trying to get external contacts to show up in an added address list.

 

I have managed to add the address list however I can't get the contacts to show in there. When I use the following it creates the address list and after updating a user mail box it works fine. Just tried to see if an actual user mail box worked

 

New-AddressList -Name "Address List name" -RecipientFilter {((RecipientType -eq 'UserMailbox') -and (Office -eq 'Name'))}

 

I also tried this without luck

 

New-AddressList -Name "Address List name" -RecipientFilter {((RecipientType -eq 'MailContact') -and (Office -eq 'Name'))}

 

Am I on the right track? Which RecipientType should I be using as I don't think "MailContact" is correct?

 

TIA

Sam

2 Replies
Highlighted

You can simply take a look at the "All Contacts" list that should be created by default, and use its recipient filter as a template:

 

All Contacts              ((Alias -ne $null) -and (((ObjectCategory -like 'person') -and (ObjectClass -eq 'contact'))))

Highlighted

Thanks for your reply.

 

I ended up creating a custom Dynamic Distribution Group which seems to work. More testing required however looks great so far.