This page covers access governance for Teams. To receive Oleria alerts and notifications in Teams, see Microsoft Teams messaging - it uses a separate app registration.
What Oleria discovers
Prerequisites
- A Microsoft Entra tenant with Microsoft Teams, and permission to create an app registration and grant admin consent (Global Administrator or Privileged Role Administrator).
- Your tenant’s Directory (tenant) ID.
- Use a dedicated app registration for Oleria, so its permissions and secret can be reviewed and rotated on their own.
- Optional: Microsoft Entra ID P1 or P2 for MFA registration state and sign-in last activity, and Entra ID P2 for risky users.
- Audit activity uses Microsoft Purview Audit (Standard), which is on by default for Microsoft 365 subscriptions and keeps 180 days of Teams events.
Set up the integration
Oleria authenticates app-only (client credentials) - no user account is tied to the connection.1
Create an app registration
In the Microsoft Entra admin center, go to Entra ID -> App registrations -> New registration. Name it (for example,
Oleria Teams Connector), keep Accounts in this organizational directory only, and select Register. Copy the Application (client) ID and the Directory (tenant) ID from the overview page.2
Grant Microsoft Graph application permissions
Under API permissions -> Add a permission -> Microsoft Graph -> Application permissions, add the read permissions:
For remediation actions, add only the ones you will use:
Disable user accounts, Enable user accounts, Revoke user session tokens and Delete user also need
User.Read.All and RoleManagement.Read.Directory from the read permissions. Disable NHI accounts also needs AppCatalog.Read.All and Group.Read.All.Then select Grant admin consent for your tenant. Without admin consent, Microsoft issues tokens with no permissions and the connection is refused with a message naming the fix. Without an optional permission, the connection still succeeds and Oleria leaves out the data that permission reads, never guessing it. For example, without IdentityRiskyUser.Read.All no risky users appear, and without Application.Read.All Teams apps show no registration owners or secret expiry.You can omit the action permissions for a read-only connection - discovery still works, and the remediation actions show as needing permission.
3
Create a client secret
Under Certificates & secrets -> New client secret, create a secret and copy its Value immediately (it is shown only once). Track the expiry date - the connection stops when the secret expires.
Connect Microsoft Teams to Oleria
1
Open the integration
Go to your Oleria workspace, select Integrations -> select Microsoft Teams.
2
Complete the connection form
3
Complete the connection
Click Authenticate. Oleria validates the credentials, confirms admin consent was granted, verifies the tenant matches the Tenant ID you entered, and begins the first sync.
Verify the integration
Confirm Microsoft Teams shows Healthy on the Connected tab of your Oleria Integrations page. After the first sync completes, review the discovered users, teams, roles, Teams apps, risky users, and activity in your Oleria workspace.Remediation actions
Disable user accounts, Revoke user session tokens and Delete user refuse any user with an active Global Administrator, Privileged Role Administrator or Privileged Authentication Administrator assignment, directly or through a role-assignable group, and refuse when that can’t be checked. Reverting Enable user accounts, which disables the user again, is refused the same way. Users who are only eligible for these roles through Privileged Identity Management aren’t checked. These actions also refuse the identity Oleria connects with. Oleria also refuses to disable a Teams app backed by the connection’s own app registration, or Oleria’s own Teams notifications bot. Blocking an app tenant-wide has no API - use the Teams admin center (Teams apps -> Manage apps).
Known limitations
- Commercial and GCC tenants only. GCC High, DoD, and 21Vianet tenants use different endpoints and lack the audit search API this integration uses.
- Licence-gated data. Sign-in last activity needs Entra ID P1; risky users need Entra ID P2. Without them, last activity comes from the Teams usage report (date-level, last 90 days) and no risky users are shown.
- Concealed report identifiers (Microsoft 365 admin center -> Reports -> “Display concealed user, group, and site names”) prevent the usage report from matching users.
- Channels are not yet modeled - including private and shared channel membership. Standard channels inherit team membership.
- Apps installed only in personal scope or chats are not enumerated (Microsoft provides no tenant-wide listing).
- Store apps are registered in the publisher’s tenant, so they show no owners, secrets or delegated permissions.
- Audit attribution caveat (Microsoft-documented): membership changes made through Entra ID or the Microsoft 365 admin center are attributed to an existing team owner, not the actual initiator.
- Old teams may be invisible: Microsoft documents that certain unused old teams lack the group property the tenant-wide teams listing filters on.

