Register Your Application in Microsoft Entra ID
To use client credentials authentication with Microsoft Teams, you need to register an application in Microsoft Entra ID and configure application permissions.
Sign in to Microsoft Entra Admin Center
Sign in to the Microsoft Entra admin center as at least an Application Developer. If you have access to multiple tenants, click the Settings (gear) icon in the top-right corner, then select the desired tenant from the list under Directory + subscription.
Create a New App Registration
Navigate to App registrations by searching from the top search bar and click on New registration.
- Enter a meaningful Name for your app (e.g., StackOne Microsoft Teams Integration).
- Under Supported account types, select Single tenant if only your organization will use this integration, or Multitenant if you need to support users from multiple Azure AD tenants. Recommended option is Multitenant.
- You do not need to configure a redirect URI for client credentials flow.
- Select Register to create the app registration.
Copy the Application (Client) ID
After registration, you’ll be directed to the application’s Overview page. Copy the Application (client) ID value and store it securely for use later.
Configure Application Permissions
Grant your application the necessary Microsoft Graph API application permissions. These are different from delegated permissions and do not require user consent.
Add Microsoft Graph Application Permissions
Click Add a permission, then select Microsoft Graph. Select Application permissions and add the scopes required for your use case, then click Add permissions to save.
Note: Client credentials (app-only) authentication cannot access user-specific /me endpoints (e.g., chat actions). Use the OAuth 2.0 delegated flow for those actions.
Generate Client Secret
Create a client secret that will be used to authenticate your application with Microsoft Teams.
Create a New Client Secret
Under the Client secrets tab, click New client secret.
- Add a Description (e.g., StackOne Integration Secret).
- Select an expiration period.
- Click Add.
Linking the Account from the Hub
Navigate to the Hub
Fill out the fields
- Tenant ID
- Client ID
- Client Secret
If the account linking is successful, you will see the newly linked account in your Accounts page.