---
schema_version: "1"
id: 0e13021037b0cb0e2cef3472280579ba9a47f94f599a5831ec5a98c4b3140ebd
title: Create External Credentials for the Microsoft Teams Connector (Beta)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-int/guides/microsoftteams/c360-a-microsoftteams-cred.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-int/guide/c360-a-microsoftteams-cred.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ea83f28bb9520b79983e420cbcd378359a55126e91cb22bf3ac586d264a9c503
products:
  - Data 360 Integration Guide
  - Data 360 Developer Documentation
---
# Create External Credentials for the Microsoft Teams Connector (Beta)

To ingest data from Microsoft Teams to Data 360, set up an external credential for Microsoft Teams.

Before you begin:

- Create an [OAuth based authentication](https://help.salesforce.com/s/articleView?id=data.c360_a_setup_oauth_openid.htm&type=5) for OpenId or for [Microsoft](https://help.salesforce.com/s/articleView?id=data.c360_a_setup_oauth_microsoft.htm&type=5) in Setup, before completing these steps.

1.  From Setup, in the Quick Find box, enter `Named Credentials`. Then select **Named Credentials** (1).

    ![namedcredential definition](https://developer.salesforce.com/media/NamedCred_13Aug2024.png)

2.  On the External Credentials tab (2), click **New**.

    - Enter a label and name for your external credential. The name can’t contain spaces. You can use underscores.

    - For Authentication Protocol, select **OAuth 2.0**.

    - For Authentication Flow Type, select **Browser Flow**.

    - For Authentication Provider, select the provider you created.

      - The Auth Provider type should be **OpenID Connect**.
      - In your Auth Provider, **Consumer Key** is the Client ID from your Azure App.
      - In your Auth Provider, **Consumer Secret** is the Client Secret value from the **Certificates & Secrets** section of your Azure App.
      - **Authorize Endpoint URL:** `https://login.microsoftonline.com/{tenantID}/oauth2/v2.0/authorize`
      - **Token Endpoint URL:** `https://login.microsoftonline.com/{tenantID}/oauth2/v2.0/token`

    - Click **Save**.

3.  Add principal to external credentials

    - In the external credentials that you created, under Principals, click **New**.

    - Enter the parameter name. You can include spaces.

    - For Identity Type, select **Named Principal**.

    - Add the following scopes in the principal:
        - `Directory.Read.All`
        - `offline_access`
        - `https://graph.microsoft.com/group.read.all`
        - `https://graph.microsoft.com/group.readwrite.all`
        - `https://graph.microsoft.com/user.read.all`
        - `https://graph.microsoft.com/appcatalog.readwrite.all`

    - Set the Sequence Number to `1`.

    - Click **Save**.

4.  Authenticate your external credentials.

    - Under Principals, from the Actions dropdown menu, select **Authenticate.**

    - Follow the authentication flow and confirm access permissions.

    - To connect Data Cloud to Microsoft Teams, click **Allow**.

        After you authenticate, the status changes to Configured.

5.  Define the named credential.

    - In the Named Credentials Tab, click **New**. Then enter a label and name. The name can’t contain spaces, but you can use underscores.

    - For the URL, enter `https://www.teams.microsoft.com`.

    - For external credentials, select the credential that you created.

    - Click **Save**.

6.  Enable external credentials access.

    - From Setup, in the Quick Find box, enter `Profiles`. Then select it.

    - Click **System Administrator**.

    - On the Enable External Credential Principal Access tab, click **Edit**.

    - Add the external credentials principal that you created to the Enabled External Credentials Principals column.

    - Click **Save**.

## Next Step

- [Set Up a Microsoft Teams Connection (Beta)](https://developer.salesforce.com/docs/data/data-cloud-int/guide/c360-a-set-up-microsoftteams-connection.md)
