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

# Create partner user

> Creates a new user of a partner: a person who administers the partner, or administers or is an accounting consultant of one or more of the partner's organizations. The user gets an account pending activation and, unless the `sendInvitationMail` query parameter is `false`, an invitation email. In a client application that keeps employees and consultants apart, a user whose email belongs to an employee shares that employee's account instead, which keeps its status (`invite` is then `false`). Returns the created user in the same shape as `GET /partners/{partnerId}/users/{userId}`. The endpoint only creates new users: an email or `externalSourceId` that is already used answers 400 `EMPLOYEE_ALREADY_EXISTS`. Returns 404 `PARTNER_NOT_FOUND` when the partner does not exist, is deleted, or the caller may not administer it (also for a token scoped to a single organization). The partner is checked before the request body. Returns 404 `ORGANIZATION_NOT_FOUND` when an organization in the body is not one of the partner's live organizations. Only a caller with a role above partner support may create a partner administrator with the partner manager role (`isPartnerAdministrator: true` without `supportRole: true`); a partner support caller gets 403. When the new user shares an employee's account and is created as a partner administrator with a partner role the account doesn't already hold alone, the request answers 400 `INVALID_JSON_PROPERTY_VALUE` if that account is also linked outside the partner, since the role belongs to the account and would reach those other links too.




## OpenAPI

````yaml /openapi/findity-admin-api.json post /partners/{partnerId}/users
openapi: 3.1.0
info:
  title: Findity Admin API
  description: Findity Admin API
  version: 1.0.0
servers:
  - url: https://stage-api.findity.com/api/v1/admin
  - url: https://api.findity.com/api/v1/admin
security:
  - bearerAuth: []
paths:
  /partners/{partnerId}/users:
    post:
      tags:
        - Partners
      summary: Create partner user
      description: >
        Creates a new user of a partner: a person who administers the partner,
        or administers or is an accounting consultant of one or more of the
        partner's organizations. The user gets an account pending activation
        and, unless the `sendInvitationMail` query parameter is `false`, an
        invitation email. In a client application that keeps employees and
        consultants apart, a user whose email belongs to an employee shares that
        employee's account instead, which keeps its status (`invite` is then
        `false`). Returns the created user in the same shape as `GET
        /partners/{partnerId}/users/{userId}`. The endpoint only creates new
        users: an email or `externalSourceId` that is already used answers 400
        `EMPLOYEE_ALREADY_EXISTS`. Returns 404 `PARTNER_NOT_FOUND` when the
        partner does not exist, is deleted, or the caller may not administer it
        (also for a token scoped to a single organization). The partner is
        checked before the request body. Returns 404 `ORGANIZATION_NOT_FOUND`
        when an organization in the body is not one of the partner's live
        organizations. Only a caller with a role above partner support may
        create a partner administrator with the partner manager role
        (`isPartnerAdministrator: true` without `supportRole: true`); a partner
        support caller gets 403. When the new user shares an employee's account
        and is created as a partner administrator with a partner role the
        account doesn't already hold alone, the request answers 400
        `INVALID_JSON_PROPERTY_VALUE` if that account is also linked outside the
        partner, since the role belongs to the account and would reach those
        other links too.
      operationId: adminCreatePartnerUser
      parameters:
        - name: partnerId
          in: path
          required: true
          description: >
            String, required. The ID of the partner (32-character hex string),
            as returned in the `id` field of the partner endpoints. Lookup by
            `externalSourceId` is not supported for partners.
          schema:
            $ref: '#/components/schemas/Uuid'
          example: 6aeb86c4fb154c46b2b5a1977245ac67
        - name: sendInvitationMail
          in: query
          required: false
          description: >
            Boolean, optional. Whether to email the new user an invitation. When
            `true` or omitted, the user is invited: a partner administrator to
            the partner, any other user to the first organization in
            `consultantOrganizations`, or else in `administratorOrganizations`,
            and `lastInvitationDate` is set. When `false`, the user is created
            without an invitation and `lastInvitationDate` stays null. A new
            account can't sign in until an invitation is accepted; a user who
            shares an employee's account keeps signing in as before. Defaults to
            `true`.
          schema:
            type: boolean
            default: true
          example: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PartnerUserPostRequest'
            example:
              firstName: Klara
              lastName: Konsult
              email: klara.konsult@example.com
              externalSourceId: consultant-1
              mobilePhone: '+46700000001'
              language: sv_SE
              isPartnerAdministrator: true
              supportRole: false
              administratorOrganizations:
                - 11adfe2a080040e3892ffb89c21ec44e
              consultantOrganizations:
                - id: 11adfe2a080040e3892ffb89c21ec44e
                  externalSourceId: null
                  name: Alpha AB
                - beta-ext-1
      responses:
        '201':
          description: Created — returns the new user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerUser'
              example:
                id: 8a66aa549e6a3672019e73b79f8e1a7f
                externalSourceId: consultant-1
                firstName: Klara
                lastName: Konsult
                email: klara.konsult@example.com
                mobilePhone: '+46700000001'
                language: sv_SE
                lastInvitationDate: '2026-10-20T09:12:04Z'
                invite: true
                isPartnerAdministrator: true
                supportRole: false
                dateCreated: '2026-10-20T09:12:04Z'
                administratorOrganizations:
                  - id: 11adfe2a080040e3892ffb89c21ec44e
                    externalSourceId: null
                    name: Alpha AB
                consultantOrganizations:
                  - id: 11adfe2a080040e3892ffb89c21ec44e
                    externalSourceId: null
                    name: Alpha AB
                  - id: 5c1e7a2f9b8d4e6a8c3f2d1b0a9e8f7c
                    externalSourceId: beta-ext-1
                    name: Beta AB
                employeeOrganizations: []
        '400':
          description: >-
            Bad request — the request body is invalid, or its email or
            externalSourceId is already used
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400Error'
              examples:
                Invalid JSON body:
                  description: >-
                    The body isn't valid JSON, or a property has the wrong type
                    (e.g. `consultantOrganizations` given as something other
                    than an array)
                  value:
                    result: error
                    code: INVALID_JSON_BODY
                    description: Could not parse JSON content.
                No known properties:
                  description: The body is empty (`{}`) or holds only unknown properties
                  value:
                    result: error
                    code: NO_KNOWN_JSON_PROPERTIES
                    description: No known, or only read-only properties received
                Missing or blank required property:
                  value:
                    result: error
                    code: INVALID_JSON_PROPERTY_VALUE
                    description: firstName is required
                Not linked to the partner:
                  value:
                    result: error
                    code: INVALID_JSON_PROPERTY_VALUE
                    description: >-
                      A partner user must be a partner administrator, or an
                      administrator or consultant of at least one organization
                Support role without partner administrator:
                  value:
                    result: error
                    code: INVALID_JSON_PROPERTY_VALUE
                    description: supportRole can only be set for a partner administrator
                Partner role shared outside the partner:
                  description: >
                    The new user shares an employee's account that is also
                    linked outside the partner, and the partner role it would
                    get differs from the one the account holds. The message
                    names `supportRole` when the body has it, otherwise
                    `isPartnerAdministrator`
                  value:
                    result: error
                    code: INVALID_JSON_PROPERTY_VALUE
                    description: >-
                      The user is also linked outside the partner, so
                      isPartnerAdministrator can't be changed
                Property too long:
                  value:
                    result: error
                    code: FIELD_EXCEEDS_MAX_LENGTH
                    description: firstName exceeds maximum length of 255 characters.
                Invalid email:
                  value:
                    result: error
                    code: INVALID_EMAIL
                    description: Invalid email address.
                Invalid phone number:
                  value:
                    result: error
                    code: INVALID_PHONE_NUMBER
                    description: Invalid phone number.
                Phone number already used:
                  value:
                    result: error
                    code: PHONE_NUMBER_ALREADY_USED
                    description: The phone number is already in use.
                Unknown language:
                  value:
                    result: error
                    code: INVALID_LANGUAGE
                    description: 'Unknown language: xx_XX'
                Email already used:
                  description: >
                    Another partner administrator or accounting consultant in
                    the client application already uses the email, an account
                    with that email belongs to another client application, or,
                    in a client application that shares person data across
                    organizations, any other user already uses the email
                  value:
                    result: error
                    code: EMPLOYEE_ALREADY_EXISTS
                    description: The employee ID already exists.
                externalSourceId already used:
                  description: >-
                    Another user in the client application already uses the
                    externalSourceId
                  value:
                    result: error
                    code: EMPLOYEE_ALREADY_EXISTS
                    description: The employee ID already exists.
        '403':
          description: >-
            Forbidden — a partner support caller tries to create a partner
            manager
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/403Error'
              examples:
                Partner manager role not allowed:
                  value:
                    result: error
                    description: Not allowed to grant the partner manager role
        '404':
          description: >
            Not found — the partner does not exist or is not accessible, or an
            organization in `administratorOrganizations` or
            `consultantOrganizations` is not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/404Error'
              examples:
                Partner not found or access denied:
                  value:
                    result: error
                    code: PARTNER_NOT_FOUND
                    description: Partner not found
                Organization not found:
                  description: >
                    An organization, given as a string or as an object, that
                    doesn't exist, is deleted, or belongs to another partner
                  value:
                    result: error
                    code: ORGANIZATION_NOT_FOUND
                    description: >-
                      Organization not found in consultantOrganizations:
                      beta-ext-1
components:
  schemas:
    Uuid:
      type: string
      pattern: ^[0-9a-fA-F]{32}$
      description: UUID without dashes (32-character hex string)
    PartnerUserPostRequest:
      type: object
      description: >
        A new user of the partner. The user must be linked to the partner in at
        least one way: as an administrator of the partner
        (`isPartnerAdministrator`), or as an administrator or accounting
        consultant of at least one of the partner's organizations. Employment
        can't be set here; a partner user is never employed by the organizations
        it administers. String properties are trimmed, and may be at most 255
        characters long.
      required:
        - firstName
        - lastName
        - email
      properties:
        firstName:
          type: string
          maxLength: 255
          description: String, required. The first name of the user. Must not be blank.
        lastName:
          type: string
          maxLength: 255
          description: String, required. The last name of the user. Must not be blank.
        email:
          type: string
          format: email
          maxLength: 255
          description: >
            String, required. The email address of the user. Must not already be
            used by another partner administrator or accounting consultant in
            the client application, by an account that belongs to another client
            application, or, in a client application that shares person data
            across organizations, by any other user; otherwise 400
            `EMPLOYEE_ALREADY_EXISTS`.
        externalSourceId:
          type:
            - string
            - 'null'
          maxLength: 255
          description: >
            String, optional. The user's id in an external system. Must be
            unique within the client application, otherwise 400
            `EMPLOYEE_ALREADY_EXISTS`.
        mobilePhone:
          type:
            - string
            - 'null'
          maxLength: 255
          description: >
            String, optional. The mobile phone number of the user, e.g.
            `+46701234567`. Must be a valid phone number, otherwise 400
            `INVALID_PHONE_NUMBER`, and must not be used by another user,
            otherwise 400 `PHONE_NUMBER_ALREADY_USED`.
        language:
          type:
            - string
            - 'null'
          maxLength: 255
          description: >
            String, optional. The user's language as a language variant, e.g.
            `sv_SE` or `en_GB`. Must be an existing language variant, otherwise
            400 `INVALID_LANGUAGE`. Defaults to the language of the partner's
            invoice address country, or a system default when the partner has
            none.
        isPartnerAdministrator:
          type:
            - boolean
            - 'null'
          description: >-
            Boolean, optional. True makes the user an administrator of the
            partner. Defaults to `false`.
        supportRole:
          type:
            - boolean
            - 'null'
          description: >
            Boolean, optional. True gives a partner administrator the partner
            support role instead of the partner manager role. Only allowed
            together with `isPartnerAdministrator: true`. Defaults to `false`.
        administratorOrganizations:
          type:
            - array
            - 'null'
          description: >
            Array, optional. The partner's organizations the user becomes an
            administrator of. Each entry is either a string holding the
            organization's internal ID or its `externalSourceId` (supports
            externalId), or an organization object as returned by the get
            partner user endpoint (`{id, externalSourceId, name}`), resolved by
            `id`, else by `externalSourceId`; `name` is ignored. Every
            organization must be one of the partner's organizations and not
            deleted, otherwise 404 `ORGANIZATION_NOT_FOUND`. A value that isn't
            an array answers 400 `INVALID_JSON_BODY`.
          items:
            $ref: '#/components/schemas/PartnerUserOrganizationReference'
        consultantOrganizations:
          type:
            - array
            - 'null'
          description: >
            Array, optional. The partner's organizations the user becomes an
            accounting consultant of. Each entry is either a string holding the
            organization's internal ID or its `externalSourceId` (supports
            externalId), or an organization object as returned by the get
            partner user endpoint (`{id, externalSourceId, name}`), resolved by
            `id`, else by `externalSourceId`; `name` is ignored. Every
            organization must be one of the partner's organizations and not
            deleted, otherwise 404 `ORGANIZATION_NOT_FOUND`. A value that isn't
            an array answers 400 `INVALID_JSON_BODY`.
          items:
            $ref: '#/components/schemas/PartnerUserOrganizationReference'
    PartnerUser:
      type: object
      description: >
        A user of a partner. Unlike an organization user it is not employed by
        the partner, so `id` and `externalSourceId` are the person's own. A
        person is a user of the partner when it is an administrator of the
        partner, an accounting consultant of one of the partner's organizations,
        or an administrator of one of the partner's organizations without being
        employed there. Api keys are never returned as users. Every property is
        always present; properties without a value are null.
      properties:
        id:
          $ref: '#/components/schemas/Uuid'
        externalSourceId:
          type:
            - string
            - 'null'
          description: >-
            String. The user's id in an external system, unique within the
            client application. Null when not set.
        firstName:
          type: string
          description: String. The first name of the user.
        lastName:
          type: string
          description: String. The last name of the user.
        email:
          type: string
          format: email
          description: String. The email address of the user.
        mobilePhone:
          type:
            - string
            - 'null'
          description: String. The mobile phone number of the user. Null when not set.
        language:
          type:
            - string
            - 'null'
          description: >-
            String. The user's language as a language variant, e.g. `sv_SE` or
            `en_GB`. Null when not set.
        lastInvitationDate:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            String, ISO-8601 date-time in UTC. When the user was last invited.
            Null when never invited.
        invite:
          type: boolean
          description: >
            Boolean. True when the user's account is pending activation, whether
            or not an invitation was sent; see `lastInvitationDate` for when the
            user was last invited.
        isPartnerAdministrator:
          type: boolean
          description: Boolean. True when the user is an administrator of the partner.
        supportRole:
          type: boolean
          description: >
            Boolean. True when the user is an administrator of the partner and
            has the partner support role; always false when
            `isPartnerAdministrator` is false.
        dateCreated:
          type: string
          format: date-time
          description: String, ISO-8601 date-time in UTC. When the user was created.
        administratorOrganizations:
          type: array
          description: >-
            Array. The partner's organizations the user is an administrator of,
            ordered by name. Empty when none.
          items:
            $ref: '#/components/schemas/PartnerUserOrganization'
        consultantOrganizations:
          type: array
          description: >-
            Array. The partner's organizations the user is an accounting
            consultant of, ordered by name. Empty when none.
          items:
            $ref: '#/components/schemas/PartnerUserOrganization'
        employeeOrganizations:
          type: array
          description: >
            Array. The partner's organizations the user is employed in, ordered
            by name. Empty when none. Employment alone doesn't make a person a
            partner user; the list shows it for users who are also linked in one
            of the ways above.
          items:
            $ref: '#/components/schemas/PartnerUserOrganization'
      required:
        - id
        - externalSourceId
        - firstName
        - lastName
        - email
        - mobilePhone
        - language
        - lastInvitationDate
        - invite
        - isPartnerAdministrator
        - supportRole
        - dateCreated
        - administratorOrganizations
        - consultantOrganizations
        - employeeOrganizations
    400Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
    403Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
      example:
        result: error
        description: Not allowed
    404Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
      example:
        result: error
        code: ORGANIZATION_NOT_FOUND
        description: 'Failed to get organization for id: {orgId}'
    PartnerUserOrganizationReference:
      description: >
        One of the partner's organizations, given either as a string holding its
        internal ID or its `externalSourceId` (supports externalId), or as an
        organization object in the shape the get partner user endpoint returns,
        so a user read with GET can be posted back. An object is resolved by its
        `id`, or by its `externalSourceId` when it has no `id`; `name` is
        ignored.
      oneOf:
        - type: string
          description: String. The organization's internal ID or its `externalSourceId`.
          example: beta-ext-1
        - type: object
          description: >
            Object. An organization as returned in the organization lists of the
            get partner user endpoint. No property is required on its own, but
            at least one of `id` or `externalSourceId` must be set. Resolved by
            `id`, else by `externalSourceId`; an object that matches no live
            organization of the partner (including one with neither property)
            answers 404 `ORGANIZATION_NOT_FOUND`.
          required: []
          properties:
            id:
              type:
                - string
                - 'null'
              description: >-
                String, optional. The organization's internal ID (32-character
                hex string). Takes precedence over `externalSourceId`.
              example: 11adfe2a080040e3892ffb89c21ec44e
            externalSourceId:
              type:
                - string
                - 'null'
              description: >-
                String, optional. The organization's id in an external system.
                Only used when `id` is not set.
              example: beta-ext-1
            name:
              type:
                - string
                - 'null'
              description: >-
                String, optional. Ignored; accepted so a user read with GET can
                be posted back unchanged.
              example: Beta AB
    PartnerUserOrganization:
      type: object
      description: One of the partner's organizations that the user is linked to.
      properties:
        id:
          $ref: '#/components/schemas/Uuid'
        externalSourceId:
          type:
            - string
            - 'null'
          description: >-
            String. The organization's id in an external system, unique within
            the client application. Null when not set.
        name:
          type: string
          description: String. The name of the organization.
      required:
        - id
        - externalSourceId
        - name
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````