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.
Copy the Directory (Tenant) ID
From the same Overview page, copy the Directory (tenant) 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.
Open API Permissions
From the left menu under Manage, select API permissions.
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.
Grant Admin Consent
Click Grant admin consent for [tenant name] and select Yes to consent on behalf of the organization. After granting, verify that Granted for [tenant name] appears under the Status column.
Generate Client Secret
Create a client secret that will be used to authenticate your application with Microsoft Teams.
Navigate to Certificates & Secrets
From the left menu under Manage, select Certificates & secrets.
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.
Copy the Client Secret Value
Immediately copy the Value of the newly created client secret and store it securely for use later. This value will only be shown once and cannot be retrieved again.
Linking the Account from the Hub
Navigate to the Hub
Fill out the fields
- Tenant ID
- Client ID
- Client Secret
Connect
- Click Connect
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup
If the account linking is successful, you will see the newly linked account in your Accounts page.