Skip to main content

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​

CapabilitySupport
SyncUsers, teams, channels, Teams apps, and their three direct relationship kinds.
Incremental syncNo. Lists use Graph paging and full scans.
Account provisioningCreate, update, delete, disable, and enable Microsoft Entra users.
Grant writesAdd or remove team membership, private/shared channel membership, and a user's personal Teams app installation.
NotificationsNo.
Custom operationsSet team member roles, archive or unarchive a team, and install or uninstall an app for a team.

Authentication​

OptionChoose it whenOwnership
OAuth 2.0 Client CredentialsOwlie should access Graph with application permissions, without a signed-in user.You own the Microsoft Entra app registration.
OAuth 2.0 Authorization CodeOwlie 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​

  1. In the Microsoft Entra admin center, open Identity > Applications > App registrations and select New registration. Register the app for accounts in your organizational directory.
  2. Copy the Directory (tenant) ID and Application (client) ID from Overview.
  3. Under Certificates & secrets, create a client secret and copy its value.
  4. 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.

FeatureMicrosoft Graph permissions
Read users, teams, channels, members, and the Teams app catalogUser.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 installationsTeamsAppInstallation.ReadForUser.All for application access or TeamsAppInstallation.ReadForUser for delegated access.
Provision Microsoft Entra usersUser.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 membershipTeamMember.ReadWrite.All.
Manage private or shared channel membershipChannelMember.ReadWrite.All.
Manage arbitrary personal Teams app installationsTeamsAppInstallation.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 operationsTeamsAppInstallation.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​

FieldRequiredWhat to enter
Tenant IDYesOne Directory GUID, verified domain, or organizations. The default organizations uses the multi-tenant sign-in endpoint.
Client IDYesApplication ID from the app registration.
Client SecretYesSecret value from Certificates & secrets.
OAuth ScopesAuthorization CodeDelegated 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​

EntityIn Microsoft TeamsIdentifierKey attributesSyncCreateUpdateDeleteGrants (as target)
UserMicrosoft Entra user accountid, userPrincipalNameName, email, enabled stateYesYesYesYesNo
TeamMicrosoft 365 group with a TeamidDisplay name, description, visibilityYesNoNoNomember_of_team
ChannelStandard, private, or shared channelteamId, channelIdName, membership typeYesNoNoNomember_of_channel
Teams AppApp catalog entryid, externalIdName and catalog metadataYesNoNoNoinstalled_teams_app

Grant kinds​

KindMicrosoft Graph relationshipPrincipal → targetAdd/removeQualifiersMembership
member_of_teamDirect team memberUser → teamYesNoneNo
member_of_channelDirect private or shared channel memberUser → channelYes for private/sharedNoneNo
installed_teams_appApp in a user's personal scopeUser → Teams appYesNoneNo

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​

warning

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.