# Dynatrace

> Source: https://truto.one/docs/integration-guides/dynatrace/

Dynatrace connects with an OAuth client's Client ID and Client Secret, which Truto exchanges for tokens with the OAuth 2.0 client credentials grant.

## Install the Dynatrace integration

Install Dynatrace from [Available integrations](https://app.truto.one/integrations/available/ab39cdc5-47e1-4b54-90e9-b6699d4ee7b2) in each environment you connect accounts from.

## Create an OAuth client

1. Go to [Account Management](https://myaccount.dynatrace.com/). If you have more than one account, select the one to connect.
2. Go to **Identity & access management** → **OAuth clients**.
   ![OAuth clients](https://docs-assets.truto.one/dynatrace-details-1.png)
3. Click **Create client**.
   ![Create client](https://docs-assets.truto.one/dynatrace-details-2.png)
4. Enter the email of the user who owns the client and a description, and select the permissions the client can grant.
5. Click **Create client**, then copy the Client ID and Client Secret.

## Connect a Dynatrace account

1. Click **Connect Account**.
   ![Click Connect Account](https://docs-assets.truto.one/truto-connect-account.png)
2. Enter a Tenant ID. This can be any ID you choose. Click **Get connection link**.
   ![Get connection link](https://docs-assets.truto.one/truto-connect-account-modal.png)
3. Open the generated link. You can also share it with your customer so they connect their own Dynatrace account.
   ![Share connection link](https://docs-assets.truto.one/truto-connect-account-link.png)
4. Select **Dynatrace**.
5. Fill in the form and click **Connect**:

   | Field | Required | What to enter |
   |---|---|---|
   | **Client ID** | Yes | The OAuth client's Client ID. |
   | **Client Secret** | Yes | The OAuth client's Client Secret. |
6. Close the tab when you see the connection successful message. The new account appears under **Integrated Accounts**. Click its Account ID to see its details and make API calls.
