> ## Documentation Index
> Fetch the complete documentation index at: https://cubed3-feat-druid-driver-streaming.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace group

> Replaces all attributes of an existing group, including its full membership list.



## OpenAPI

````yaml /api-reference/scim.yaml put /scim/v2/Groups/{id}
openapi: 3.1.0
info:
  title: Cube Cloud SCIM API
  version: 1.0.0
  description: >
    The SCIM 2.0 API lets identity providers (Okta, Azure AD/Entra ID, OneLogin,

    and others) provision and de-provision users and groups in Cube Cloud

    automatically. It implements the System for Cross-domain Identity Management

    protocol as defined in [RFC
    7643](https://datatracker.ietf.org/doc/html/rfc7643)

    and [RFC 7644](https://datatracker.ietf.org/doc/html/rfc7644).


    ## Base URL


    All SCIM endpoints live under the `/scim/v2` namespace on your Cube Cloud

    tenant's API host:


    ```text

    https://<tenant>.cubecloud.dev/api/scim/v2

    ```


    Replace `<tenant>` with your Cube Cloud subdomain, or swap the whole host

    if your account uses a custom domain.


    ## Authentication


    SCIM requests are authenticated with a bearer token issued from your Cube

    Cloud account settings. Include it in the `Authorization` header:


    ```text

    Authorization: Bearer <YOUR_SCIM_TOKEN>

    ```


    ## Content type


    Requests and responses use `application/json`. The SCIM media type

    `application/scim+json` is also accepted.
servers:
  - url: https://{tenant}.cubecloud.dev/api
    description: >-
      Cube Cloud API base URL. Replace the whole host if you use a custom
      domain.
    variables:
      tenant:
        default: your-tenant
        description: Your Cube Cloud tenant subdomain
security:
  - bearerAuth: []
tags:
  - name: SCIM Users
    description: Provision, read, update, and de-provision users.
  - name: SCIM Groups
    description: Provision, read, update, and de-provision groups and their memberships.
paths:
  /scim/v2/Groups/{id}:
    put:
      tags:
        - SCIM Groups
      summary: Replace group
      description: >-
        Replaces all attributes of an existing group, including its full
        membership list.
      operationId: replaceGroup
      parameters:
        - $ref: '#/components/parameters/ResourceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Group'
      responses:
        '200':
          description: The updated group.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Group'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    ResourceId:
      name: id
      in: path
      required: true
      description: The unique SCIM identifier of the resource.
      schema:
        type: string
  schemas:
    Group:
      type: object
      description: A SCIM 2.0 core Group resource.
      required:
        - displayName
      properties:
        schemas:
          type: array
          items:
            type: string
          example:
            - urn:ietf:params:scim:schemas:core:2.0:Group
        id:
          type: string
          readOnly: true
        displayName:
          type: string
          description: Human-readable name of the group.
        members:
          type: array
          items:
            type: object
            properties:
              value:
                type: string
                description: The `id` of a member user.
              display:
                type: string
        meta:
          $ref: '#/components/schemas/Meta'
    Meta:
      type: object
      readOnly: true
      properties:
        resourceType:
          type: string
        created:
          type: string
          format: date-time
        lastModified:
          type: string
          format: date-time
        location:
          type: string
    Error:
      type: object
      properties:
        schemas:
          type: array
          items:
            type: string
          example:
            - urn:ietf:params:scim:api:messages:2.0:Error
        status:
          type: string
        detail:
          type: string
  responses:
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            schemas:
              - urn:ietf:params:scim:api:messages:2.0:Error
            status: '404'
            detail: Resource not found.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: SCIM bearer token issued from your Cube Cloud account settings.

````