---
updatedAt: 2026-04-15T19:06:16.000Z
---

# Bulk add users to group

Adds multiple users to a group

# OpenAPI definition

```json
{
  "openapi": "3.1.1",
  "info": {
    "title": "Groups Management",
    "description": "API for managing user groups (Team Views) within an account",
    "version": "1.0.0",
    "contact": {
      "name": "Avaya API Team",
      "email": "api-team@avaya.com",
      "url": "https://developers.avayacloud.com/avaya-infinity/"
    },
    "license": {
      "name": "Avaya Software Development Kit (SDK) Software License Terms",
      "url": "https://support.avaya.com/css/P8/documents/101038288"
    }
  },
  "servers": [
    {
      "url": "https://core.{customerId}.ec.avayacloud.com/api/config/v1",
      "description": "Production",
      "variables": {
        "customerId": {
          "description": "Your organization identifier",
          "default": "your-org-id"
        }
      }
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Group Users",
      "description": "Group membership operations"
    }
  ],
  "paths": {
    "/groups/{groupId}/users": {
      "patch": {
        "summary": "Bulk add users to group",
        "description": "Adds multiple users to a group",
        "tags": [
          "Group Users"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/groupId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddUsersToGroupRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Users added successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddUsersToGroupResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ConstraintViolation"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "OAuth 2.0 Bearer Token with scoped permissions.\nRequired scopes documented per endpoint.\n"
      }
    },
    "parameters": {
      "groupId": {
        "name": "groupId",
        "description": "ID of the group in question",
        "in": "path",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/GroupId"
        }
      }
    },
    "schemas": {
      "Member": {
        "description": "Group user object with userId and includeInDashboard flag. Used in members property.",
        "type": "object",
        "required": [
          "userId"
        ],
        "properties": {
          "userId": {
            "description": "ID of the user to include as a member of the group.",
            "$ref": "#/components/schemas/UserId"
          },
          "includeInDashboard": {
            "description": "Include in team dashboard (for team type groups)",
            "type": "boolean",
            "default": true
          }
        },
        "example": {
          "userId": "002507f1e1c8e3e9a8b7c5d4e3f2",
          "includeInDashboard": true
        }
      },
      "AddUsersToGroupRequest": {
        "description": "Payload object for adding multiple users to a group in a single operation.",
        "type": "object",
        "required": [
          "users"
        ],
        "properties": {
          "users": {
            "description": "Array of users to add to the group.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Member"
            }
          },
          "addUsersToChannel": {
            "description": "Whether to add users to associated channels (default true)",
            "type": "boolean",
            "default": true
          },
          "accountIdOverride": {
            "description": "Master account override",
            "$ref": "#/components/schemas/AccountId"
          },
          "accountId": {
            "description": "Target account ID",
            "$ref": "#/components/schemas/AccountId"
          }
        }
      },
      "AddUsersToGroupResponse": {
        "description": "Brief list of the group's members after the update.",
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "userId"
          ],
          "properties": {
            "userId": {
              "description": "ID of the user to include as a member of the group.",
              "$ref": "#/components/schemas/UserId",
              "readOnly": true
            },
            "includeInDashboard": {
              "description": "Is this user to be included in team dashboard (for team type groups)",
              "type": "boolean",
              "readOnly": true
            }
          }
        }
      },
      "GroupId": {
        "description": "Unique identifier for a group.",
        "type": "string",
        "pattern": "^007[0-9a-f]{23}$",
        "example": "007a1b2c3d4e5f67890abcdef12"
      },
      "AccountId": {
        "description": "Unique identifier for an account.",
        "type": "string",
        "pattern": "^001[0-9a-f]{23}$",
        "example": "001f8e7d6c5b4a39281706f5e4d"
      },
      "UserId": {
        "description": "Unique identifier for a user.",
        "type": "string",
        "pattern": "^002[0-9a-f]{23}$",
        "example": "002507f1e1c8e3e9a8b7c5d4e3f2"
      },
      "Violation": {
        "type": "object",
        "properties": {
          "field": {
            "description": "The name of the field in the request that caused the violation.\n\nThis can be the name of a path parameter, query parameter, or a field within the request body.\n",
            "type": "string",
            "readOnly": true,
            "example": "jobName"
          },
          "message": {
            "description": "A human-readable explanation specific to this occurrence of the violation.\n",
            "type": "string",
            "readOnly": true,
            "example": "must match \"^[a-zA-Z]{6}$\""
          },
          "code": {
            "description": "The violation code generated by the server for this occurrence of the violation.\n\nUse this code when implementing any error handling logic instead of the message, as the message can change.\n",
            "type": "integer",
            "format": "int32",
            "readOnly": true,
            "example": 20006
          }
        },
        "required": [
          "field",
          "message",
          "code"
        ],
        "example": [
          {
            "field": "emailAddress",
            "message": "must not be null",
            "code": 20002
          }
        ]
      },
      "Problem": {
        "type": "object",
        "description": "<b>Problem Detail</b> is a way to carry machine-readable details of errors in an HTTP\nresponse to avoid the need to define new error response formats for HTTP APIs\n\n<a href=\"https://tools.ietf.org/html/rfc7807\">RFC 7807</a>\n",
        "properties": {
          "type": {
            "description": "An absolute URI that identifies the problem type.\n\nWhen dereferenced, it SHOULD provide human-readable documentation for the problem type (e.g., using HTML).\n",
            "type": "string",
            "format": "uri",
            "readOnly": true,
            "example": "https://developers.avayacloud.com/avaya-infinity/docs/group-management#error-reference"
          },
          "title": {
            "description": "A short, summary of the problem type.\n\nWritten in English and readable for engineers (usually not suited for non technical stakeholders and not localized).\n",
            "type": "string",
            "readOnly": true,
            "example": "Service Unavailable"
          },
          "status": {
            "description": "The HTTP status code generated by the origin server for this occurrence of the problem.\n",
            "type": "integer",
            "format": "int32",
            "minimum": 300,
            "exclusiveMaximum": 600,
            "readOnly": true,
            "example": 503
          },
          "detail": {
            "description": "A human-readable explanation specific to this occurrence of the problem.\n",
            "type": "string",
            "readOnly": true,
            "example": "Connection to database timed out"
          },
          "instance": {
            "description": "An absolute URI that identifies the specific occurrence of the problem.\n\nIt may or may not yield further information if dereferenced.\n",
            "type": "string",
            "format": "uri",
            "readOnly": true
          },
          "violations": {
            "description": "A list of violations that occurred as a result of invalid data provided as part of a request.\n",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Violation"
            },
            "readOnly": true
          }
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Bad Request",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://developers.avayacloud.com/errors/constraint-violation",
              "title": "Constraint Violation",
              "status": 400,
              "detail": "Request contains invalid or missing fields",
              "violations": [
                {
                  "field": "accountId",
                  "message": "must match \"^[a-zA-Z]{6}$\"",
                  "code": 20006
                }
              ]
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://developers.avayacloud.com/errors/unauthorized",
              "title": "Unauthorized",
              "status": 401,
              "detail": "Bearer token expired at 2025-12-08T10:15:00Z. Request a new token.",
              "requestId": "req_xyz789",
              "timestamp": "2025-12-08T10:30:05Z"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://developers.avayacloud.com/errors/forbidden",
              "title": "Forbidden",
              "status": 403,
              "detail": "Missing required scope: 'workflows:execute'. Your token has: 'workflows:read'",
              "requestId": "req_xyz789",
              "timestamp": "2025-12-08T10:30:05Z"
            }
          }
        }
      },
      "ConstraintViolation": {
        "description": "Constraint Violation",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal Server Error",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://developers.avayacloud.com/errors/internal-error",
              "title": "Internal Server Error",
              "status": 500,
              "detail": "An unexpected error occurred while processing your request",
              "requestId": "req_xyz789",
              "timestamp": "2025-12-08T10:30:05Z"
            }
          }
        }
      },
      "NotFound": {
        "description": "Not Found",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://developers.avayacloud.com/errors/resource-not-found",
              "title": "Resource Not Found",
              "status": 404,
              "detail": "workflowId 'wf_123abc' does not exist",
              "requestId": "req_xyz789",
              "timestamp": "2025-12-08T10:30:05Z"
            }
          }
        }
      }
    }
  }
}
```