Managing Locations

Admin  This guide is for SharePoint administrators who want to enrich office location data.

By default, TeamBook Employee Directory reads office locations directly from the Office (officeLocation) field in Microsoft Entra ID. This works out of the box without any list setup.

For a richer experience — with office addresses, photos, map links, and custom display names — you can create a Locations SharePoint list and connect it to the web part.


Creating the Locations list

  1. Go to the SharePoint site where the web part is installed.
  2. Click the Settings gearAdd an appCustom List.
  3. Name it TB_Locations (or any name you prefer).
  4. Add the following columns:

Required columns

Column nameTypeDescription
TitleSingle line of textThe display name of the office (e.g. “London HQ”)
EntraID_OfficeSingle line of textThe exact value from the officeLocation field in Entra ID (e.g. “London”) — used to match users to this location

Optional columns

Column nameTypeDescription
AddressMultiple lines of textStreet address of the office
CitySingle line of textCity name (shown as a subtitle on the location tile)
CountrySingle line of textCountry name
MapURLHyperlinkA link to Google Maps or Bing Maps for this address
PhotoImageA photo of the office building or location
FloorPlanHyperlinkLink to a floor plan document or page
SortOrderNumberControls the display order of location tiles (lower numbers first)
HiddenYes/NoSet to Yes to exclude this location from the people hub

Populating the list

Add one item per office location. The EntraID_Office value must exactly match what is stored in Entra ID — it is case-sensitive.

Example:

TitleEntraID_OfficeCityAddress
London HQLondonLondon1 Example Street, EC1A 1BB
Manchester OfficeManchesterManchester45 Deansgate, M3 2EN
RemoteRemote

Linking the list to the web part

  1. Edit the SharePoint page containing the web part.
  2. Open the property pane (click the web part, then the pencil icon).
  3. Under Locations data source, change the dropdown from Entra ID to SharePoint List.
  4. In the Locations list URL field, enter the URL of your list.
  5. Click Apply and publish the page.

Tips

  • Keep EntraID_Office values in sync with what is actually in Entra ID. If an office is renamed in Entra ID, update both the Entra ID user records and this list.
  • Adding a Photo column significantly improves the visual appeal of the locations view — even a single representative office photo makes a big difference.
  • Use the MapURL column to add a direct link to the office address in Google Maps so employees can get directions in one click.
  • Add a “Remote” entry with EntraID_Office = Remote if your organisation uses that value for home-workers.
Note: If a user's officeLocation in Entra ID does not match any EntraID_Office value in the list, they will still appear in the directory and org chart — they simply won't be grouped under a locations tile.