Forum Discussion
Fixxser2
Feb 22, 2021Brass Contributor
Custom GAL
I have found some documentation like below, but there is not a step by step of what I want to do.
I have a certain group of users in my org that need only to be able to see a select group of people in the GAL. I looked for making a GAL for a group, but It may not be possible to assign an address policy to a group. If anything assign an address policy to the select people. I am stuck.
- https://docs.microsoft.com/en-us/exchange/address-books/address-lists/create-global-address-list
- https://docs.microsoft.com/en-us/exchange/address-books/address-book-policies/address-book-policies
Please find below steps to create a customize GAL in your environment.
Create New Address Book Policy
Before Creating a policy, we have to create:
AddressList
GlobalAddressList
OfflineAddressBook
RoomListNew-GlobalAddressList -Name “GAL IT” -IncludedRecipients MailboxUsers -ConditionalDepartment IT
NEW-ADDRESSLIST -NAME “IT” -RECIPIENTFILTER {((RECIPIENTTYPE -EQ ‘USERMAILBOX’))} -RECIPIENTCONTAINER IT
NEW-OFFLINEADDRESSBOOK -NAME “IT OAB” -ADDRESSLISTS “IT”
New-AddressBookPolicy -Name “IT Team” -AddressLists “IT” -OfflineAddressBook “IT OAB” -GlobalAddressList “GAL IT” -RoomList “IT_confRoomList”
Set-Mailbox -Identity "Test1" -AddressBookPolicy ‘IT Team’
Regards,
MD
- MDadarkarBrass Contributor
Please find below steps to create a customize GAL in your environment.
Create New Address Book Policy
Before Creating a policy, we have to create:
AddressList
GlobalAddressList
OfflineAddressBook
RoomListNew-GlobalAddressList -Name “GAL IT” -IncludedRecipients MailboxUsers -ConditionalDepartment IT
NEW-ADDRESSLIST -NAME “IT” -RECIPIENTFILTER {((RECIPIENTTYPE -EQ ‘USERMAILBOX’))} -RECIPIENTCONTAINER IT
NEW-OFFLINEADDRESSBOOK -NAME “IT OAB” -ADDRESSLISTS “IT”
New-AddressBookPolicy -Name “IT Team” -AddressLists “IT” -OfflineAddressBook “IT OAB” -GlobalAddressList “GAL IT” -RoomList “IT_confRoomList”
Set-Mailbox -Identity "Test1" -AddressBookPolicy ‘IT Team’
Regards,
MD
- tcboeiraBrass ContributorHi, sorry for the delay...
When trying to use the command for "GlobalAddressList" nothing appears, even having loaded the "ExchangeOnlineManagement".
Could you tell me what might be missing or what I'm doing wrong?! - Fixxser2Brass Contributor
I had to make a couple of changes and the below worked. Thanks so much MDadarkar
I used the GUI exchange admin to select multiple users and assign the IT Team address policy to them
Changed:
New-GlobalAddressList -Name “GAL IT” -IncludedRecipients MailboxUsers -ConditionalDepartment IT
New-AddressList -Name "IT" -IncludedRecipients MailboxUsers -ConditionalDepartment "IT"
NEW-OFFLINEADDRESSBOOK -NAME “IT OAB” -ADDRESSLISTS “IT”
New-AddressBookPolicy -Name “IT Team” -AddressLists “IT” -OfflineAddressBook “IT OAB” -GlobalAddressList “GAL IT” -RoomList “IT”
Set-Mailbox -Identity "Test1" -AddressBookPolicy ‘IT Team’Used GUI exchange admin to select multiple users and assign the IT Team address policy
- MDadarkarBrass Contributor
ABPs are assigned to users indeed, so you will have to expand the membership of the group and assign the ABP to each user. Rinse and repeat when users are added/removed from the group as needed.