Microsoft Teams Integration with PanDev Metrics
TL;DR. Register an app in Microsoft Entra ID, give it Microsoft Graph application permissions with admin consent, create a client secret, and paste Tenant ID, Application (Client) ID and Client Secret into Settings → Integrations → Microsoft Teams. Calls are collected every 10 minutes. Audience: admin.
What PanDev Metrics collects
- Teams calls and meetings of your organization from call records: start, end, organizer and participants.
- Time in meetings per employee — it shows up as Meetings on activity charts. Participants are matched to PanDev Metrics employees by their Microsoft account and email, so an employee's email in Microsoft 365 must be the same as in PanDev Metrics.
Before you begin
- PanDev Metrics is up and running (Cloud workspace or on-prem instance)
- Admin access to your PanDev Metrics tenant
- A Microsoft Entra ID administrator who can register apps and grant admin consent
Step 1 — Register an app in Microsoft Entra ID
- In the Azure Portal open Microsoft Entra ID → App registrations → New registration.
- Enter a name, keep Accounts in this organizational directory only, and click Register.
- On the app's Overview page, copy Application (client) ID and Directory (tenant) ID.
Step 2 — Grant Graph API permissions
- Open API permissions → Add a permission → Microsoft Graph → Application permissions.
- Add the required permissions:
| Permission | Why |
|---|---|
User.Read.All | Find the organization's users |
Presence.Read.All | Read whether a user is in a call |
CallRecords.Read.All | Read calls and meetings with participants |
- For meeting details and transcripts, also add
OnlineMeetings.Read.All,OnlineMeetingTranscript.Read.AllandOnlineMeetingArtifact.Read.All. - Click Grant admin consent for your organization. Application permissions do not work without admin consent.
Step 3 — Create a client secret
- Open Certificates & secrets → Client secrets → New client secret.
- Choose an expiry and click Add.
- Copy the secret Value right away — Azure shows it only once.
:::warning Keep the secret private The client secret gives read access to your organization's calls. Store it in a secrets manager, and put a reminder on its expiry date: once it expires, PanDev Metrics stops receiving calls until you paste a new one. :::
Step 4 — Connect in PanDev Metrics
- Open Settings → Integrations → Microsoft Teams.
- Turn on Enable integration with Microsoft Teams.
- Fill in the form:
| Field | Value |
|---|---|
| Azure Tenant ID | Directory (tenant) ID from Step 1 |
| Application (Client) ID | Application (client) ID from Step 1 |
| Client Secret | The secret value from Step 3 |
- Click Test connection.
- After a successful check, click Save.
To stop collecting, click Disconnect on the same screen.
Verify
- Hold a short Teams meeting with two employees whose email matches PanDev Metrics.
- After the meeting ends, wait up to 10 minutes — Microsoft publishes call records with a delay, sometimes longer.
- Open the employee's metrics in PanDev Metrics and check that the time appears as Meetings.
Troubleshooting
The test fails with an authorization error
Check the three values: Tenant ID and Client ID are from the app's Overview page, the secret is the Value, not the Secret ID. Check that the secret has not expired.
The test passes, but no meetings appear
Admin consent was not granted, or CallRecords.Read.All is missing. Open API permissions: every permission must show the Granted status.
A meeting is there, but an employee's time is not
The employee's email in Microsoft 365 differs from the one in PanDev Metrics. Make the emails match.
Related
- How-to: Zoom integration
- How-to: Google Meet integration
- How-to: Azure Boards integration