Forum Discussion

Fixxser2's avatar
Fixxser2
Brass Contributor
Feb 22, 2021
Solved

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

https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin-mso_exchon-mso_o365b/hide-all-gal-for-some-users-in-office-365/f33ea2bc-e046-4588-a5e6-17e932e0b1d1

 

  • Fixxser2 

     

    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
    RoomList

     

    New-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

  • MDadarkar's avatar
    MDadarkar
    Brass Contributor

    Fixxser2 

     

    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
    RoomList

     

    New-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

    • tcboeira's avatar
      tcboeira
      Brass Contributor
      Hi, 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?!
    • Fixxser2's avatar
      Fixxser2
      Brass Contributor

      MDadarkar 

      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

  • 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.

Resources