Microsoft Teams
Microsoft Teams uses Microsoft Graph for users, teams, channels, and Teams apps. Owlie syncs those records, provisions Microsoft Entra users, and manages direct team membership, direct private or shared channel membership, and personal Teams app installations.
Capabilities
| Capability | Support |
|---|---|
| Sync | Users, teams, channels, Teams apps, and their three direct relationship kinds. |
| Incremental sync | No. Lists use Graph paging and full scans. |
| Account provisioning | Create, update, delete, disable, and enable Microsoft Entra users. |
| Grant writes | Add or remove team membership, private/shared channel membership, and a user's personal Teams app installation. |
| Notifications | No. |
| Custom operations | Set team member roles, archive or unarchive a team, and install or uninstall an app for a team. |
Authentication
| Option | Choose it when | Ownership |
|---|---|---|
| OAuth 2.0 Client Credentials | Owlie should access Graph with application permissions, without a signed-in user. | You own the Microsoft Entra app registration. |
| OAuth 2.0 Authorization Code | Owlie should access Graph with a signed-in work or school account and delegated permissions. | You own the Microsoft Entra app registration. |
Get credentials from Microsoft Entra ID
- In the Microsoft Entra admin center, open Identity > Applications > App registrations and select New registration. Register the app for accounts in your organizational directory.
- Copy the Directory (tenant) ID and Application (client) ID from Overview.
- Under Certificates & secrets, create a client secret and copy its value.
- Under API permissions, add Microsoft Graph permissions for the features you use. For Client Credentials, choose Application permissions and grant admin consent. For Authorization Code, choose Delegated permissions, configure the Owlie redirect URL under Authentication, and authorize the connection with a work or school account.
The Client Credentials option requests https://graph.microsoft.com/.default, which uses the
application permissions granted to the app registration. The Authorization Code option requests
the selected delegated scopes. Microsoft's app-registration guide
explains the setup.
| Feature | Microsoft Graph permissions |
|---|---|
| Read users, teams, channels, members, and the Teams app catalog | User.Read.All, Group.Read.All, Team.ReadBasic.All, Channel.ReadBasic.All, TeamMember.Read.All, ChannelMember.Read.All, and AppCatalog.Read.All. Use the corresponding application or delegated permission type. Team enumeration reads Microsoft 365 groups and their resourceProvisioningOptions. |
| Read personal Teams app installations | TeamsAppInstallation.ReadForUser.All for application access or TeamsAppInstallation.ReadForUser for delegated access. |
| Provision Microsoft Entra users | User.ReadWrite.All. |
| Set a user's password (password changes) | User-PasswordProfile.ReadWrite.All for application access, and a directory role for the app's service principal: at least User Administrator, even for users who hold no administrator role. For delegated access, select the same scope in the connection's scope list (it is not requested by default). The signed-in user must be a User Administrator, or a Privileged Authentication Administrator to change an administrator's password. |
| Manage team membership | TeamMember.ReadWrite.All. |
| Manage private or shared channel membership | ChannelMember.ReadWrite.All. |
| Manage arbitrary personal Teams app installations | TeamsAppInstallation.ReadWriteForUser.All for application access or TeamsAppInstallation.ReadWriteForUser for delegated access. The Self variants only manage the connecting app. |
| Install or uninstall apps for a team with the custom operations | TeamsAppInstallation.ReadWriteForTeam.All for application access or TeamsAppInstallation.ReadWriteForTeam for delegated access. |
Graph's team member, channel member, and personal app installation references describe the required permissions. An app may also need consent or policy approval in your tenant. Owlie does not grant resource-specific consent during installation.
Connect Microsoft Teams in Owlie
| Field | Required | What to enter |
|---|---|---|
| Tenant ID | Yes | One Directory GUID, verified domain, or organizations. The default organizations uses the multi-tenant sign-in endpoint. |
| Client ID | Yes | Application ID from the app registration. |
| Client Secret | Yes | Secret value from Certificates & secrets. |
| OAuth Scopes | Authorization Code | Delegated Microsoft Graph scopes selected for the features above. |
Test connection lists up to one user and checks that Graph returns a value collection. It
does not test every Teams endpoint or write permission.
Entities
| Entity | In Microsoft Teams | Identifier | Key attributes | Sync | Create | Update | Delete | Grants (as target) |
|---|---|---|---|---|---|---|---|---|
| User | Microsoft Entra user account | id, userPrincipalName | Name, email, enabled state | Yes | Yes | Yes | Yes | No |
| Team | Microsoft 365 group with a Team | id | Display name, description, visibility | Yes | No | No | No | member_of_team |
| Channel | Standard, private, or shared channel | teamId, channelId | Name, membership type | Yes | No | No | No | member_of_channel |
| Teams App | App catalog entry | id, externalId | Name and catalog metadata | Yes | No | No | No | installed_teams_app |
Grant kinds
| Kind | Microsoft Graph relationship | Principal → target | Add/remove | Qualifiers | Membership |
|---|---|---|---|---|---|
member_of_team | Direct team member | User → team | Yes | None | No |
member_of_channel | Direct private or shared channel member | User → channel | Yes for private/shared | None | No |
installed_teams_app | App in a user's personal scope | User → Teams app | Yes | None | No |
Standard channel access comes from team membership, so Owlie does not add or remove standard
channel members directly. Owlie reads Graph's /members collection. Standard-channel rows follow
team membership, while private/shared rows are direct. It does not treat indirect access returned
by /allMembers as a direct Grant. When you configure a tenant GUID, Owlie omits direct members
whose Graph tenant ID differs. With a generic authority or verified domain, a direct cross-tenant
member may not resolve to a synced local Entra account. Team and channel owner roles remain
membership attributes. Use the existing Set Team Member Roles custom operation when you need
to change a team role. Adding a managed membership does not demote an existing owner.
Provisioning behaviour and limits
Revoke removes managed Grants and deletes the Microsoft Entra user. Check the account and its membership before running it.
The default provisioning profile creates an enabled user. It generates userPrincipalName from
the identity's email (the email first, then a numbered variant such as jsmith2@example.com when
another account holds it) and creates a temporary password that the user must change at first sign-in.
The email domain must be verified in the connected tenant. Disable and enable change
accountEnabled, and update changes mapped user attributes. A password change sets the user's new
password without requiring a change at next sign-in, when the resource is linked to the person's
password. Teams, OneDrive and Microsoft Entra ID write the same Entra user, so link only one of them.
The permission alone isn't enough to change a password. Microsoft's Update user reference also requires a directory role: at least User Administrator for the application (even for a user who isn't an administrator), or a signed-in User Administrator or Privileged Authentication Administrator for delegated access. Scope the role to an administrative unit that holds only the users Owlie manages to limit what the app can reset. Owlie hasn't verified these requirements against a live tenant, so try a password change on a test account first.
Graph may reject removal of a team's or channel's last owner. Owlie propagates that error and does not choose another owner. A personal Teams app Grant installs only in the user's personal scope and does not automatically consent to app-specific permissions. The team app custom operations install or uninstall an app for a team, which is a separate scope.
Microsoft Graph returns @odata.nextLink pages. Owlie accepts continuation links only on the
Graph origin and the same collection. Microsoft documents service-specific throttling.
An incomplete list does not establish that a Grant is absent.
Changelog
Microsoft Teams remains at connector version 1. Owlie displays its changelog in the integration catalog.