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

# Post apiadminusers organizations

> POST /api/admin/users/{id}/organizations/ — attach a user to an org.

Body: ``{organization_id, role?}``. ``role`` defaults to ``member``.



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/admin/users/{id}/organizations/
openapi: 3.0.3
info:
  title: Console API
  version: 1.0.0
  description: Central control plane API for the Dataerai platform.
servers:
  - url: https://{server}
    description: Your Dataerai deployment (the API is served under /api)
    variables:
      server:
        default: your-deployment.dataerai.com
        description: Host of your Dataerai deployment
security: []
paths:
  /api/admin/users/{id}/organizations/:
    post:
      tags:
        - api
      description: |-
        POST /api/admin/users/{id}/organizations/ — attach a user to an org.

        Body: ``{organization_id, role?}``. ``role`` defaults to ``member``.
      operationId: admin_users_org_add
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdminUserOrgAdd'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AdminUserOrgAdd'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AdminUserOrgAdd'
        required: true
      responses:
        '201':
          description: No response body
      security:
        - cookieAuthCsrfExempt: []
components:
  schemas:
    AdminUserOrgAdd:
      type: object
      properties:
        organization_id:
          type: string
          format: uuid
        role:
          allOf:
            - $ref: '#/components/schemas/OrgMemberRoleEnum'
          default: member
      required:
        - organization_id
    OrgMemberRoleEnum:
      enum:
        - member
        - admin
      type: string
      description: |-
        * `member` - Member
        * `admin` - Admin

````