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

# Create user for organization

> Create a user for organization with specified name, email, and role permissions, supporting both client and partner user types with proper validation and audit logging.



## OpenAPI

````yaml https://api2.rhombussystems.com/api/openapi/public.json post /api/user/createUser
openapi: 3.0.1
info:
  contact:
    email: developer@rhombussystems.com
  description: >-
    This API is for use by Rhombus customers and partners.


    ## Authentication


    All requests require two headers:

    - `x-auth-scheme` — The authentication scheme identifier. Use `api-token`
    for standard API key auth, or `partner-api-token` for partner API auth.

    - `x-auth-apikey` — Your Rhombus API key.


    Example:

    ```

    POST /api/camera/getMinimalCameraStateList

    x-auth-scheme: api-token

    x-auth-apikey: YOUR_API_KEY

    Content-Type: application/json

    ```
  title: Rhombus API
  version: '1.0'
servers:
  - description: Production Server
    url: https://api2.rhombussystems.com
security:
  - ApiKeyAuth: []
paths:
  /api/user/createUser:
    post:
      tags:
        - User Webservice
      summary: Create user for organization
      description: >-
        Create a user for organization with specified name, email, and role
        permissions, supporting both client and partner user types with proper
        validation and audit logging.
      operationId: createUser
      parameters:
        - description: >-
            Authentication scheme identifier. Use `api-token` for standard API
            key authentication, `partner-api-token` for partner API key
            authentication. Must be paired with the `x-auth-apikey` header
            containing your API key.
          example: api-token
          in: header
          name: x-auth-scheme
          required: true
          schema:
            type: string
            default: api-token
            enum:
              - api-token
              - api
              - partner-api-token
              - partner-api
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/User_CreateUserWSRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User_CreateUserWSResponse'
          description: OK
components:
  schemas:
    User_CreateUserWSRequest:
      type: object
      description: CreateUserWSRequest
      properties:
        accessibleRhombusApps:
          type: array
          description: The set of accessible Rhombus apps
          items:
            $ref: '#/components/schemas/RhombusAppEnum'
          nullable: true
          uniqueItems: true
        email:
          type: string
          description: The email of the user
          nullable: true
        name:
          type: string
          description: The name of the user
          nullable: true
        permissionGroupUuid:
          type: string
          format: RUUID
          description: base 64 (url-safe) uuid string
          example: AAAAAAAAAAAAAAAAAAAAAA
          nullable: true
        rhombusKeySettings:
          $ref: '#/components/schemas/RhombusKeyAppSettingsType'
        suppressRhombusKeyWelcomeEmail:
          type: boolean
          description: >-
            Suppress the welcome email for the Rhombus Key mobile app if the
            user is provided access
          nullable: true
        suppressWelcomeEmail:
          type: boolean
          description: Suppress the welcome email
          nullable: true
    User_CreateUserWSResponse:
      type: object
      description: Response object for creating a user.
      properties:
        error:
          type: boolean
          nullable: true
        errorMsg:
          type: string
          nullable: true
        responseStatus:
          $ref: '#/components/schemas/WebResponseStatusEnum'
        userUuid:
          type: string
          format: RUUID
          description: base 64 (url-safe) uuid string
          example: AAAAAAAAAAAAAAAAAAAAAA
          nullable: true
        warningMsg:
          type: string
          nullable: true
    RhombusAppEnum:
      type: string
      enum:
        - PARTNER
        - CONSOLE
        - RHOMBUS_KEY
        - UNKNOWN
    RhombusKeyAppSettingsType:
      type: object
      properties:
        bypassSaml:
          type: boolean
          nullable: true
        credentialProvisioningRules:
          $ref: >-
            #/components/schemas/RhombusSecureMobileCredentialProvisioningRulesType
        remoteUnlockEnabled:
          type: boolean
          nullable: true
        rhombusKeyAccessEnabled:
          type: boolean
          nullable: true
    WebResponseStatusEnum:
      type: string
      description: Status of the unregister operation
      enum:
        - BASIC_AUTH_FAILED
        - PASSWORD_MISMATCH
        - SAME_PASSWORD
        - USER_EXISTS
        - USER_NOT_FOUND
        - DEVICE_NOT_FOUND
        - POLICY_NOT_FOUND
        - LOCATION_NOT_FOUND
        - ORG_NOT_FOUND
        - BAD_INPUT
        - SUCCESS
        - PASSWORD_TOO_SHORT
    RhombusSecureMobileCredentialProvisioningRulesType:
      type: object
      properties:
        endDateProvisioner:
          $ref: '#/components/schemas/EpochSecondsProvisioner'
        maxMobileCredsAllowed:
          type: integer
          format: int32
          nullable: true
        startDateProvisioner:
          $ref: '#/components/schemas/EpochSecondsProvisioner'
    EpochSecondsProvisioner:
      type: object
      discriminator:
        propertyName: type
      oneOf:
        - $ref: '#/components/schemas/StaticEpochSecondsProvisioner'
      properties:
        type:
          type: string
      required:
        - type
    StaticEpochSecondsProvisioner:
      type: object
      allOf:
        - type: object
          properties:
            value:
              type: integer
              format: int64
              nullable: true
      nullable: true
      properties:
        type:
          type: string
  securitySchemes:
    ApiKeyAuth:
      description: >-
        Your Rhombus API key. Must be accompanied by the `x-auth-scheme` header
        set to `api-token` (or `partner-api-token` for partner endpoints).
      in: header
      name: x-auth-apikey
      type: apiKey

````