---
updatedAt: 2026-04-21T11:21:17.000Z
agentTools:
  projectIndex: https://developers.miro.com/llms.txt
---

# Create user group to team connection

Adds a user group to a team in an organization.<br/> <h3>Required scope</h3> <a target="blank" href="/reference/scopes">organizations:groups:read</a><br/> <a target="blank" href="/reference/scopes">organizations:teams:write</a> <h3>Rate limiting</h3> <a target="blank" href="/reference/rate-limiting#rate-limit-tiers">Level 1</a><br/> <h3>Enterprise only</h3> <p>This API is available only for <a target="blank" href="/reference/api-reference#enterprise-plan">Enterprise plan</a> users. You can only use this endpoint if you have the role of a Company Admin. You can request temporary access to Enterprise APIs using <a target="_blank" href="https://q2oeb0jrhgi.typeform.com/to/BVPTNWJ9">this form</a>.</p>'

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "x-settings": {
    "publish": true,
    "skip-tests": true
  },
  "info": {
    "title": "User Groups (Enterprise Plan)",
    "version": "v2",
    "description": "This API allows Enterprise customers to manage user groups.",
    "contact": {
      "name": "Miro",
      "url": "https://developers.miro.com/"
    }
  },
  "servers": [
    {
      "url": "https://api.miro.com"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v2/orgs/{org_id}/teams/{team_id}/groups": {
      "post": {
        "description": "Adds a user group to a team in an organization.<br/> <h3>Required scope</h3> <a target=\"blank\" href=\"/reference/scopes\">organizations:groups:read</a><br/> <a target=\"blank\" href=\"/reference/scopes\">organizations:teams:write</a> <h3>Rate limiting</h3> <a target=\"blank\" href=\"/reference/rate-limiting#rate-limit-tiers\">Level 1</a><br/> <h3>Enterprise only</h3> <p>This API is available only for <a target=\"blank\" href=\"/reference/api-reference#enterprise-plan\">Enterprise plan</a> users. You can only use this endpoint if you have the role of a Company Admin. You can request temporary access to Enterprise APIs using <a target=\"_blank\" href=\"https://q2oeb0jrhgi.typeform.com/to/BVPTNWJ9\">this form</a>.</p>'",
        "operationId": "enterprise-teams-create-group",
        "parameters": [
          {
            "$ref": "#/components/parameters/pathOrgId"
          },
          {
            "$ref": "#/components/parameters/pathTeamId"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTeamGroupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamGroup"
                }
              }
            },
            "description": "User group to team connection"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "summary": "Create user group to team connection",
        "tags": [
          "Team user groups"
        ]
      }
    }
  },
  "components": {
    "parameters": {
      "pathOrgId": {
        "name": "org_id",
        "description": "The ID of an organization.",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        },
        "example": "3074457345618265000"
      },
      "pathTeamId": {
        "name": "team_id",
        "description": "The ID of a team.",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        },
        "example": "3074457345618265000"
      }
    },
    "schemas": {
      "TeamGroup": {
        "type": "object",
        "required": [
          "id",
          "role"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "User group ID.",
            "example": "3074457345618265000"
          },
          "role": {
            "type": "string",
            "description": "Role of the user group in the team.",
            "enum": [
              "member"
            ],
            "default": "member",
            "example": "member"
          },
          "type": {
            "type": "string",
            "description": "Object type",
            "default": "team-user-group"
          }
        }
      },
      "CreateTeamGroupRequest": {
        "type": "object",
        "required": [
          "userGroupId",
          "role"
        ],
        "properties": {
          "userGroupId": {
            "type": "string",
            "description": "User group ID.",
            "example": "3074457345618265000"
          },
          "role": {
            "type": "string",
            "enum": [
              "member"
            ],
            "description": "Role of user group in the team.",
            "example": "member"
          }
        }
      },
      "BasicError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "number",
            "description": "HTTP status code."
          },
          "code": {
            "type": "string",
            "description": "Description of the status code."
          },
          "message": {
            "type": "string",
            "description": "Explanation for the error."
          },
          "type": {
            "type": "string",
            "default": "error"
          }
        }
      }
    },
    "responses": {
      "400": {
        "description": "Malformed request",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/BasicError"
                },
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "default": 400
                    },
                    "code": {
                      "default": "invalidParameters"
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "401": {
        "description": "Invalid authentication credentials",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/BasicError"
                },
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "default": 401
                    },
                    "code": {
                      "default": "tokenNotProvided"
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "403": {
        "description": "Invalid access",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/BasicError"
                },
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "default": 403
                    },
                    "code": {
                      "default": "forbiddenAccess"
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "409": {
        "description": "Conflict",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/BasicError"
                },
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "default": 409
                    },
                    "code": {
                      "default": "conflict"
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "429": {
        "description": "Too many requests",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/BasicError"
                },
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "default": 429
                    },
                    "code": {
                      "default": "tooManyRequests"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

# Sibling pages

* [List of user group to team connections](https://developers.miro.com/miro-ea/reference/enterprise-teams-get-groups.md)
* [Get user group of a team](https://developers.miro.com/miro-ea/reference/enterprise-teams-get-group.md)
* [Delete user group to team connection](https://developers.miro.com/miro-ea/reference/enterprise-teams-delete-group.md)