> ## Documentation Index
> Fetch the complete documentation index at: https://docs.synack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add users to an Assessment Group

> Adds one or more users to an Assessment Group with a specified role.

Maximum 100 members per request.




## OpenAPI

````yaml /assessment-v1-openapi.yaml post /v1/assessment-groups/{assessmentGroupId}/members/batchAdd
openapi: 3.1.0
info:
  title: Assessment Service
  version: 1.0.0
  description: |
    APIs for managing Assessment and related operations on the Synack.
  contact:
    name: Synack Engineering
    email: engineering@synack.com
servers:
  - url: https://client.synack.com/api/assessment
    description: Commercial
  - url: https://client.synack.us/api/assessment
    description: FedRAMP (Medium)
security:
  - bearerAuth: []
tags:
  - name: Assessment Lifecycle
    description: Lifecycle state transitions for an individual assessment.
  - name: Assessment Groups
    description: Users assigned to an Assessment Group, with their roles.
paths:
  /v1/assessment-groups/{assessmentGroupId}/members/batchAdd:
    post:
      tags:
        - Assessment Groups
      summary: Add users to an Assessment Group
      description: |
        Adds one or more users to an Assessment Group with a specified role.

        Maximum 100 members per request.
      operationId: batchAddAssessmentGroupMembers
      parameters:
        - $ref: '#/components/parameters/AssessmentGroupId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchAddMembersRequest'
            examples:
              twoMembers:
                summary: Add two members with different roles
                value:
                  members:
                    - userUid: u_5f3c8b2a
                      role: assessment_member
                    - userUid: u_9e1d4f0c
                      role: rbac_group_admin
      responses:
        '200':
          description: Batch processed. Inspect per-row `status` for outcomes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchAddMembersResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '413':
          $ref: '#/components/responses/RequestEntityTooLarge'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    AssessmentGroupId:
      name: assessmentGroupId
      in: path
      required: true
      description: Numeric identifier of the Assessment Group.
      schema:
        type: integer
        minimum: 1
  schemas:
    BatchAddMembersRequest:
      type: object
      required:
        - members
      properties:
        members:
          type: array
          minItems: 1
          maxItems: 100
          items:
            $ref: '#/components/schemas/MemberAddInput'
    BatchAddMembersResponse:
      type: object
      required:
        - results
        - metadata
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/AddMemberResult'
        metadata:
          $ref: '#/components/schemas/BatchMetadata'
    MemberAddInput:
      type: object
      required:
        - userUid
        - role
      properties:
        userUid:
          type: string
          minLength: 1
          maxLength: 64
          pattern: ^[a-zA-Z0-9_-]+$
        role:
          $ref: '#/components/schemas/AssessmentGroupRole'
    AddMemberResult:
      type: object
      description: |
        Per-row outcome for a batchAdd request. `errorCode` and
        `errorDetail` are populated only when `status == "error"`.
      required:
        - userUid
        - status
      properties:
        userUid:
          type: string
        status:
          $ref: '#/components/schemas/AddMemberResultStatus'
        role:
          $ref: '#/components/schemas/AssessmentGroupRole'
        id:
          type: integer
        errorCode:
          $ref: '#/components/schemas/PerRowErrorCode'
        errorDetail:
          type: string
    BatchMetadata:
      type: object
      properties:
        processedAt:
          type: string
          format: date-time
        counts:
          $ref: '#/components/schemas/BatchCounts'
    Problem:
      type: object
      description: RFC 7807 Problem Details.
      required:
        - status
        - title
      properties:
        type:
          type: string
          format: uri
          example: https://errors.synack.com/assessment/group-not-found
        status:
          type: integer
        title:
          type: string
        detail:
          type: string
        instance:
          type: string
          format: uri
        logId:
          type: string
          description: Unique log message identifier for support.
    AssessmentGroupRole:
      type: string
      description: |
        Strongbolt role granted to (or held by) an Assessment Group
        member. Mirrors `CLIENT_VISIBLE_ROLES_ASSIGNABLE_TO_ORG_LISTING_GROUP`
        in synack_synack's strongbolt initializer.
      enum:
        - rbac_group_admin
        - assessment_member
        - assessment_creator
        - assessment_read_only
        - assessment_operator
        - infra_admin
    AddMemberResultStatus:
      type: string
      enum:
        - added
        - noop
        - error
    PerRowErrorCode:
      type: string
      description: Stable code identifying why a per-row outcome failed.
      enum:
        - user_not_found
        - user_not_in_org
        - role_invalid
        - role_not_assignable
        - forbidden
        - internal_error
    BatchCounts:
      type: object
      description: Per-row outcome counts for a batch operation.
      properties:
        added:
          type: integer
          minimum: 0
        removed:
          type: integer
          minimum: 0
        noop:
          type: integer
          minimum: 0
        error:
          type: integer
          minimum: 0
  responses:
    BadRequest:
      description: Malformed request body.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Unauthorized:
      description: Missing or invalid authentication credentials.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Forbidden:
      description: Authenticated but lacks permission for this resource.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    NotFound:
      description: Resource not found in the acting organization.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    RequestEntityTooLarge:
      description: Batch exceeds the documented per-request maximum (100 items).
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    InternalServerError:
      description: Server error.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````