Streamline the Salesforce and Microsoft Teams integration by automatically installing the authentication components. Create a Microsoft Entra ID application, configure the generated named credential, and obtain Azure administrator consent.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, and Unlimited Editions with Agentforce IT Service. |
| User Permissions Needed | |
|---|---|
| To connect Salesforce and Microsoft Teams: | System Administrator Profile |
| To configure named credentials | MSTeamsSetupAutomationAccess |
Make sure your org has the Teams IT Services Add-on, Teams Employee Add-on, Incident Management Add-on, and Service Cloud Employee Hub HR Standard Add-on licenses provisioned.
Enable Microsoft Teams for Employee Service
- From Setup menu, go to Salesforce Go > Feature Sets.
- On the Deliver IT Services Across Channels card, select Set Up.
- On the Microsoft Teams for Employee Service card, select Set Up.
- On the Microsoft Teams for Employee Service page, select Get Started.
-
Turn on Microsoft Teams for Employee Service.
When you enable Microsoft Teams for Employee Service, the External Client App, Auth Provider, External Credentials, and Named Credentials install automatically.
Create a Microsoft Entra ID App
Create a Microsoft Entra ID App in the Azure portal, and then configure its client ID and client secret in a named credential to prepare for automation.
-
Create a Microsoft Entra ID App in the Azure portal with Application.ReadWrite.All and
Organization.ReadWrite.All permissions.
- Sign in to the Azure portal.
- On the Welcome to Azure dashboard, under Manage Microsoft Entra ID, click View. You can also search for Microsoft Entra ID in the top search bar.
- From the left navigation menu, under the Manage section, select App registrations.
- Select + New registration.
- For Name field, enter a descriptive name, such as MS_Teams_Salesforce_Integration_App.
- Under Supported account types, select Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant).
- Click Register.
- On the application overview page, click Add a certificate or secret.
- Select + New client secret.
- On the Add a client secret page, enter a description, and select an expiration duration.
-
Click Add.
Copy the client secret value and store it in a secure location. This value is hidden permanently after you leave this page. Use the value, not the secret ID.
- From the left navigation menu, select API permissions.
- Select + Add a permission.
- Select Microsoft Graph.
- Select Application permissions.
-
Select these permissions for your integration.
- Application.ReadWrite.All
- Organization.ReadWrite.All
- Click Add permissions.
- To finalize the authorization, click Grant admin consent for your org to finalize the authorization.
-
Configure the MSTeamsSetupNc named credential with the Microsoft Entra ID app's client ID
and client secret.
- From the Quick Find box, enter Named Credentials and select Named Credentials.
- Click the External Credentials tab.
- Select MSTeamsSetupClientCredentialsEC from the list.
- Select Edit.
- In the URL field, replace the {tenant_id} placeholder with your actual Azure Tenant ID.
- Save your changes.
- Scroll down to the Principals section.
- For the NamedAuthPrincipal, from the action dropdown, select Edit.
- In the Edit Principal dialog box, enter the Azure Client ID and Client Secret from the Microsoft Entra ID app that you created earlier.
- Select Save.
- Verify that the Authentication Status for the principal is updated to Configured.
-
Grant Azure administrator consent for Microsoft Teams integration.
- From Setup, click Salesforce Go.
- Search for and select Microsoft Teams for Employee Service.
- Turn on Microsoft Teams for Employee Service. To apply the new automated SSO and swarming features if the feature is already turned on, turn the feature off and then turn it back on.
- Locate the Grant Azure Administrator Consent step and click Grant Consent. A window displays a unique authorization URL.
- Click Copy Link and share this URL with your Azure Tenant Administrator. If you are the Azure Administrator, open the link in a new browser tab to approve the application's request to access and read organizational data.