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.
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.Allwith 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.Allwith admin consent.
Step by step: Prepare and switch on
Step by step: Read the map
Step by step: Move and zoom the map
Step by step: Find a user
Step by step: From the location to the users and into the profile
-
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.
Displays on the map
| Field / action | Meaning and use |
|---|---|
| Title panel | Name of the tenant and status: Live, Sync running, Sync failed or Switched off, plus “As of …” with the time of the last sync. |
| Users located | Number of users with a current location. The same number is in the header as “… users with a location”. |
| Cities and countries | Number of different cities and countries among the locations. |
| No location | Users without a sign-in to the Teams client and without an address in the directory. |
| Bar from sign-ins and from the directory | Share 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 client | Cyan, turquoise in the Aurora theme. The map itself is dark in every theme. |
| Colour: Address from the directory | Amber, orange in the Aurora theme. |
| Several locations | A 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 location | Arcs 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 pointer | A 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 level | The map shows the coordinates under the mouse pointer and the zoom level. |
| Locations list | Up 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. |
| Legend | Explains 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
| Field / action | Meaning and use |
|---|---|
| Store locations | Stores, 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. |
| State | Off, 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 now | Fetches the data from Microsoft again right away instead of waiting for the next regular sync. Needs Edit Microsoft 365 tenants. |
| Read the sign-in log | Permission 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 directory | Permission User.Read.All. The same states. |
| Settings and Collapse | Expand and collapse the bar. As long as everything is in order, it stays a single row. |
| Refresh | Button 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.Allwith 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.