---
title: "List teams ownership rules"
method: GET
path: "/api/v2/rum/config/teams-ownership/rules"
tags: ["Rum Teams Ownership"]
---

# List teams ownership rules

`GET /api/v2/rum/config/teams-ownership/rules`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/rum/config/teams-ownership/rules`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/rum/config/teams-ownership/rules/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the list of teams ownership rules for your organization, optionally filtered.
Rules group the underlying mappings by `view_name`, `application_id`, `service`, and `match_type`,
collapsing every team that owns the same view into a single entry.

## Query parameters

- `filter[view_name]` string[]
- `filter[team_handle]` string[]
- `filter[application_id]` string[]
- `filter[service]` string[]

## Response `200`

OK

- TeamsOwnershipRulesResponse: The response body for a list of teams ownership rules.
  - `data` TeamsOwnershipRuleResponseData[], required: A list of teams ownership rules.
    - `attributes` TeamsOwnershipRuleResponseAttributes, required: The attributes of a teams ownership rule.
      - `application_id` string, required: The ID of the RUM application this mapping applies to. For browser applications, this is the real application UUID. For mobile applications, this is the nil UUID `00000000-0000-0000-0000-000000000000` (wildcard), meaning the ownership applies across all applications.
      - `match_type` 'exact' | 'prefix', required: How the `view_name` is matched against RUM view names.
      - `service` string, required: The RUM application's service name. For browser applications, may be empty. For mobile applications, this is the service that scopes the ownership.
      - `teams` TeamsOwnershipRuleTeamMapping[], required: The teams that own the matched views, each paired with the ID of its underlying mapping.
        - `mapping_id` string, required: The ID of the underlying mapping, used to delete this team's ownership individually.
        - `team_handle` string, required: The handle of the owning team.
      - `view_name` string, required: The RUM view name to match, or its prefix when `match_type` is `prefix`.
    - `id` string, required: A deterministic identifier derived from the rule's grouping key. This ID cannot be used to delete the rule directly; delete individual mappings using the `mapping_id` under `teams` instead.
    - `type` 'teams_ownership_grouped_mappings', required: The type of the resource. The value should always be teams_ownership_grouped_mappings.

## Other responses

- `400`: Bad Request
- `403`: Not Authorized
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/3f70db624329?raw)
