EasyUC
4.9.49

EasyUC for Microsoft Teams

User Map: locations of the Teams users

See on a world map in which cities the users of a tenant use the Teams client, and go from a location to its users and their profiles.

EasyUC · Version 4.9.49

In EasyUC: EasyUC Teams → User Map

Images come from the EasyUC lab. Names and example values provide orientation. A different interface language is indicated beside the relevant image.

What it is for

The User Map shows on a world map where the users of a tenant use the Teams client. Each location is a marker, and its size depends on the number of users. A click on a location lists its users, and from there you get to the profile of the Teams user. The page is available from version 4.9.60.

The place comes from the sign-in log of Microsoft Entra: Microsoft determines a city when the user signs in to the Teams client. For users without a sign-in, or when the log is not available, the address from the directory applies, that is, city and country in the user account. The map marks the two sources with separate colours.

EasyUC draws the map itself. No map service is called, and no map tiles are loaded from the internet. The map data for coasts, borders and cities is part of EasyUC. A service of its own fetches the locations from Microsoft Graph and stores them in the EasyUC database on your server. The function is switched off at first and is switched on per tenant.

Prerequisites

  • EasyUC from version 4.9.60 with the licence module teams.
  • A Teams tenant with tested access to Microsoft Graph under Settings of the tenant. A telephony connection is not needed. The type No telephony is enough.
  • Permission View user map (ROLE_APP_TEAMS_USER_MAP). It allows reading only. The permission for the tenants alone does not open the map.
  • To switch on and off and for Sync now: Edit Microsoft 365 tenants (ROLE_APP_TEAMS_TENANTS_EDIT).
  • To go from the map to a user profile: View Microsoft 365 tenants (ROLE_APP_TEAMS_TENANTS). Without this permission the list shows the users without a link.
  • For the sign-in log: the application permission AuditLog.Read.All with admin consent and a Microsoft Entra ID P1 or P2 licence in the tenant. Microsoft provides the log only with this licence.
  • For the addresses from the directory: the application permission User.Read.All with admin consent.

Step by step: Prepare and switch on

  1. In Microsoft Entra, give the app registration of the tenant the application permissions AuditLog.Read.All and User.Read.All and grant admin consent.
  2. Open User Map. With several tenants, select the tenant in the Tenant field in the header. Otherwise the page shows the tenant selected in the menu.
  3. In the bar Locations of the Teams users, click Settings. As long as the locations are switched off, the bar is expanded by itself, and the centre of the map shows “Locations are switched off”.
  4. At the switch Store locations, read what is stored, and check the two permissions Read the sign-in log and Read addresses from the directory. As long as the switch is off, they show Not in use, after switching on and until the first check Not checked yet.
  5. Switch on Store locations. The state changes to Waiting, then to Running (“Reading the sign-ins …”). The centre of the map shows “The first sync is running”.
  6. Wait. The page refreshes by itself. As soon as the sign-ins have been read, the locations appear, and the map moves from the world view to the section with all locations.
  7. Check the state Up to date and the number in the header, for example “248 users with a location”. If the permission Read the sign-in log now shows Missing, the note “The Microsoft sign-in log is not available.” appears above the map. The map then shows the addresses from the directory.

Step by step: Read the map

  1. Read the title panel at the top left: name of the tenant and status of the sync. Live means: the locations are switched on, no sync is running at the moment, and the last one did not fail. Next to it is the time as “As of …”.
  2. Below it, read the key figures: Users located, Cities, Countries and No location. The bar shows how many locations are known from sign-ins and how many from the directory.
  3. Tell the markers apart by their colour. The legend at the bottom left explains them: Sign-in to the Teams client, Address from the directory, Several locations and Link to the largest location.
  4. Note the size: the more users a location has, the larger its marker.
  5. Move the mouse over a marker. The tooltip names place, region and country, the number of users, “Last seen …” and up to five names. If only the country is known, it says “Only the country is known; the marker is placed in the capital.”
  6. Read the Locations list on the right. It ranks the locations by number of users, with rank, bar and number. It shows up to 100 locations. If there are more, “and … more locations on the map” appears below it.
  7. If several locations are close together on the map, the map combines them into one marker with the total of the users. The tooltip then names the number of locations and the largest of them.

Step by step: Move and zoom the map

  1. Drag the map with the mouse button held down to move the section.
  2. Zoom in and out with the mouse wheel. The map zooms to the spot under the mouse pointer. A double-click also zooms in. On a touch screen, zoom with two fingers.
  3. Use the buttons at the bottom right: Zoom in, Zoom out and Show all locations. The last one sets the section so that all locations are visible.
  4. Click a combined marker. The map zooms in, and the marker splits into its locations. The tooltip announces this with “Click to zoom in”.
  5. If a group cannot be separated, a click shows its locations on the right for selection (“… locations at this spot”). This is the case when all locations are at the same spot, for example a capital and the placeholder of its country, or when the maximum zoom is reached.
  6. Click Full screen to put the map on the whole screen. Exit full screen returns.
  7. Show and hide the list on the right with the Locations button, the legend with a click on its heading. On narrow screens both are collapsed at first.
  8. With the keyboard: set the focus on the map. Plus zooms in, minus zooms out, the arrow keys move the map, 0 shows all locations. You reach the same locations without a mouse through the Locations list.

Step by step: Find a user

  1. Click the field Find user: name or city at the top right.
  2. Type at least two characters. The search covers name, sign-in name and city. Every word must occur. The list shows up to eight suggestions with name, place and sign-in name.
  3. Choose a suggestion with the mouse or with the arrow keys and the Enter key. Escape closes the suggestions.
  4. The map moves to the location of the user and highlights it. On the right, the user list of this location opens. The user is listed under User you searched for above the list, even if they would otherwise be on a later page.
  5. Clear the search with the cross in the field. If the search finds nobody, it says “No user with a location found.”

Step by step: From the location to the users and into the profile

  1. Click a location, on the map or in the Locations list. A click in the list also moves the map there.
  2. On the right, read the header of the location: place, region and country, the source (Sign-in to the Teams client, Address from the directory or Sign-in and directory) and “Last seen …”. The number at the top right is the number of users.
  3. Read the users. Each row shows name and sign-in name, below them the Teams client and operating system of the last sign-in as Microsoft names them, and on the right the time. For a location from the directory it shows Address from the directory.
  4. Page with the arrows below the list. The list shows 20 users per page.
  5. Click a user. Their Teams profile opens. This works only with the permission View Microsoft 365 tenants.
  6. In the profile, the User details tab shows the block Current location: place, source (“From the Microsoft sign-in log” or “From the directory”), accuracy, Last seen, Teams client, Operating system, Sign-ins and Other places. The block exists only with the permission View user map and as long as the locations are switched on for the tenant. The User Map button in the block leads to the map of the tenant.
  7. Go back with the browser’s Back button. The selected location is in the address of the page, so the map opens again with this location.
  8. Locations above the user list leads back to the list of all locations.

Displays on the map

Displays on the map
Field / actionMeaning and use
Title panelName of the tenant and status: Live, Sync running, Sync failed or Switched off, plus “As of …” with the time of the last sync.
Users locatedNumber of users with a current location. The same number is in the header as “… users with a location”.
Cities and countriesNumber of different cities and countries among the locations.
No locationUsers without a sign-in to the Teams client and without an address in the directory.
Bar from sign-ins and from the directoryShare of the located users whose location comes from the sign-in log, compared with those with an address from the directory.
Colour: Sign-in to the Teams clientCyan, turquoise in the Aurora theme. The map itself is dark in every theme.
Colour: Address from the directoryAmber, orange in the Aurora theme.
Several locationsA shared marker for locations that are close together in the selected section. It carries the colour of the source most of its users come from.
Link to the largest locationArcs from the location with the most users to the largest other locations. They are visible in the world view and fade out when you zoom in.
Tooltip at the pointerA location: place, region and country, number of users, “Last seen …”, up to five names and “Click to show the users”. A group: number of locations, the largest of them and “Click to zoom in” or “Click to show the locations”.
Coordinates and zoom levelThe map shows the coordinates under the mouse pointer and the zoom level.
Locations listUp to 100 locations by number of users. The bar shows the size relative to the largest location. All locations are on the map, including those that no longer fit into the list.
LegendExplains the four symbols. The sentence below it names the source of the locations shown, for example “Location according to the Microsoft sign-in log, accuracy: city. Without a sign-in the address from the directory applies.”

Fields and options of the bar

Fields and options of the bar
Field / actionMeaning and use
Store locationsStores, per user, city, region, country and coordinates of the latest sign-ins to the Teams client, plus client and operating system. Default: switched off. Switching off asks for confirmation and deletes the stored locations of this tenant from EasyUC at once.
StateOff, Waiting, Running, Up to date, Incomplete or Error. Next to it are the time of the last sync and the number of users with a location.
Sync nowFetches the data from Microsoft again right away instead of waiting for the next regular sync. Needs Edit Microsoft 365 tenants.
Read the sign-in logPermission AuditLog.Read.All. State Granted, Missing, Not checked yet, Error or Not in use. Missing is also shown when the tenant lacks the Microsoft Entra ID P1 or P2 licence.
Read addresses from the directoryPermission User.Read.All. The same states.
Settings and CollapseExpand and collapse the bar. As long as everything is in order, it stays a single row.
RefreshButton in the header. Reloads status, map and the open user list. It does not request a sync with Microsoft.

Where the location comes from and how accurate it is

  • Source sign-in log: EasyUC reads the successful sign-ins of applications whose name starts with “Microsoft Teams”, interactive and non-interactive. Microsoft derives city and coordinates from the IP address.
  • The accuracy is the city, not an address. When working from home or over a VPN, the place can differ from where the user really is.
  • Source directory: city and country in the user account. It applies to users without a sign-in and to tenants whose sign-in log cannot be read. A user who has a sign-in is shown only there, no longer at the address from the directory.
  • If only the country is known, the marker is placed in the capital of the country. The map labels it with the country and points this out in the tooltip and the user list.
  • The current location of a user is the place of the most recent sign-in. EasyUC remembers up to ten places per user. The profile shows them under Other places.
  • Active members of the directory appear on the map. Guests and disabled accounts do not appear. The address from the directory applies only to users who do not demonstrably lack the Teams licence.

Sync and retention

  • The service syncs every 30 minutes. The first sync reads the sign-in log seven days back.
  • Each time, the log is read up to 15 minutes before the current time, because Microsoft writes sign-ins to the log with a delay. A new sign-in therefore does not appear on the map immediately.
  • Places from sign-ins older than 30 days are dropped. The current place of a user is kept.
  • The sync removes users who no longer exist in the directory.
  • When idle, the open page asks every 120 seconds whether there is a new status. As long as a sync is running, it asks every 5 seconds. In a browser tab in the background, the polling pauses.
  • Later syncs leave the selected map section alone. Only with the first data of a tenant does the map adjust to all locations.

Data protection and audit log

  • EasyUC stores, per user, city, region, country and coordinates of the latest sign-ins to the Teams client, plus client, operating system and time. IP addresses are neither stored nor logged.
  • The data is in the EasyUC database on your server. Nothing leaves your network to draw the map.
  • Switching off deletes the stored locations of this tenant from EasyUC at once. The prompt reads “Switch off locations?” and points out that the User Map is empty afterwards. Nothing changes in Microsoft 365.
  • From version 4.9.66, the use of the map is recorded in the audit log: opening the map, every query of users (the search with its search term and the user list of a location) and opening the locations of a single user. The entry links the signed-in EasyUC user to the affected Teams user or the search term.
  • This is an exception: otherwise EasyUC does not log pure read access. How to search and filter the log is described in the chapter “Audit log: who changed what and when”.
  • Who sees the map is governed by the permission View user map alone. Assign it selectively, and decide before switching on who receives it.

Limits

  • The map shows cities, not addresses, buildings or floors.
  • It shows the place of the sign-in to the Teams client, not the whereabouts in real time. There are 30 minutes between two syncs.
  • Without Microsoft Entra ID P1 or P2 and without AuditLog.Read.All, the map shows only the addresses from the directory. It is then only as good as the upkeep of city and country in the user accounts.
  • If the non-interactive sign-ins cannot be read, the map is based on the interactive sign-ins and the directory. The bar points this out.
  • Guests and disabled accounts do not appear.
  • The search finds only users with a location. Nothing can be changed on the map.

Common messages

  • “Locations are switched off” in the centre of the map: switch on Store locations at the top.
  • “The first sync is running”: the locations appear as soon as the sign-ins have been read. The page refreshes by itself.
  • “The Microsoft sign-in log is not available.” above the map: the app registration lacks AuditLog.Read.All with admin consent, or the tenant lacks the Microsoft Entra ID P1 or P2 licence. Until then the map shows the addresses from the directory. The note states the reason in plain text.
  • “No locations found”: no user has a sign-in to the Teams client or an address in the directory. Check both permissions in the bar and the upkeep of city and country in the user accounts.
  • “Access to Microsoft Graph has not been set up for this tenant yet …” Enter directory ID, application ID and client secret under Settings of the tenant. Open the tenant settings takes you there.
  • “The service that fetches the data from Microsoft is not running at the moment. …” While the service is stopped, no new locations arrive. Contact the team that operates the EasyUC installation.
  • “The non-interactive sign-ins of the Teams clients could not be read …” The map is then based only on the interactive sign-ins and the directory.
  • “Sync failed” in the title panel: expand the bar. It states the reason. The map keeps showing the last stored status.
  • “The map could not be loaded.” The map data of EasyUC could not be loaded. Click Try again.
  • “No Teams tenant set up yet”: set up a tenant first. The type No telephony is enough for the map.
  • The profile shows “No location is known for this user.” The user has no sign-in to the Teams client in the stored period and no address in the directory.

Related chapters