Skip to main content
The subject of the OAuth client’s token must be an active user: either a service user or any user with account-user-management permission.

Find your Environment ID

Your Environment ID identifies your Dynatrace environment and is the first part of its URL.

1

Copy the Environment ID

Sign in to Dynatrace Account Management, then open Settings > Environments.

  • Copy the value in the Environment column across to Environment ID.
  • Format: https://{Environment ID}.apps.dynatrace.com
  • Example: if your environment URL is https://abc12345.apps.dynatrace.com, your Environment ID is abc12345
The Environments page in Dynatrace Account Management with the environment highlighted in the Environment column.

Creating an OAuth client

The OAuth client’s tokens act with the permissions of its subject user.

1

Enter the client details

In Account Management, open Identity & access management > OAuth clients.

  • Click Create client.
  • Grant type: Client credentials
  • Subject user email: Email of the user the client acts as
  • Description: StackOne Integration
The Create OAuth client page with Client credentials, Subject user email and Description highlighted.
2

Select the permissions

Under Permissions, use Search permissions to find each of these permissions and select its checkbox:

  • Click Create client.
The Permissions section filtered by mcp-gateway, with Invoke MCP servers and List MCP servers selected.
3

Copy the credentials

Dynatrace shows the Client Secret only once.

  • Copy the Client ID across.
  • Copy the Client Secret across.
  • Copy the UUID at the end of the Dynatrace URN across to Account UUID.
  • Format: urn:dtaccount:{Account UUID}
  • Example: if your Dynatrace URN is urn:dtaccount:abcdefab-cdef-abcd-efab-cdefabcdefab, your Account UUID is abcdefab-cdef-abcd-efab-cdefabcdefab
  • Click Finish.
The OAuth client created page with the Client ID and Client Secret copy buttons and the Dynatrace URN field highlighted.
1

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.
2

Use Actions

Connect an AI platform to the linked account’s actions. See AI Platforms.Other ways to call actions are listed in Protocols & SDKs.