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

# List all users with their roles in an organization

> Retrieve all users with their roles within a specific organization.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json get /organizations/{organization_id}/users
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /organizations/{organization_id}/users:
    get:
      tags:
        - Organizations
      summary: List all users with their roles in an organization
      description: Retrieve all users with their roles within a specific organization.
      operationId: list_users_in_organization_organizations__organization_id__users_get
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            title: Organization Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UserWithRoles'
                title: >-
                  Response List Users In Organization Organizations 
                  Organization Id  Users Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UserWithRoles:
      properties:
        id:
          type: string
          title: Id
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
        active_org_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Active Org Id
        created_at:
          type: string
          format: date-time
          title: Created At
        is_super_admin:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Super Admin
        organization_role:
          $ref: '#/components/schemas/OrganizationRole'
        project_roles:
          anyOf:
            - additionalProperties:
                $ref: '#/components/schemas/ProjectRole'
              type: object
            - type: 'null'
          title: Project Roles
        user_project_roles:
          anyOf:
            - items:
                $ref: '#/components/schemas/UserProjectRoleRef'
              type: array
            - type: 'null'
          title: User Project Roles
      type: object
      required:
        - id
        - created_at
        - organization_role
      title: UserWithRoles
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OrganizationRole:
      properties:
        name:
          type: string
          title: Name
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
        organization_role_permissions:
          anyOf:
            - items:
                additionalProperties:
                  $ref: '#/components/schemas/Permission'
                type: object
              type: array
            - type: 'null'
          title: Organization Role Permissions
          description: The permissions for the organization role.
      type: object
      required:
        - name
      title: OrganizationRole
    ProjectRole:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        project_role_permissions:
          anyOf:
            - items:
                additionalProperties:
                  $ref: '#/components/schemas/Permission'
                type: object
              type: array
            - type: 'null'
          title: Project Role Permissions
          description: The permissions for the project role.
      type: object
      required:
        - id
        - name
        - created_at
        - updated_at
      title: ProjectRole
    UserProjectRoleRef:
      properties:
        project_id:
          type: string
          title: Project Id
        project_role_id:
          type: string
          title: Project Role Id
      type: object
      required:
        - project_id
        - project_role_id
      title: UserProjectRoleRef
      description: >-
        Raw project-membership reference: which role a user holds in a project.


        The frontend filters project membership by ``project_id`` (project names
        can

        collide or change), so this id-keyed array is exposed alongside the

        name-keyed ``project_roles`` dict on :class:`UserWithRoles`.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    Permission:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        action:
          type: string
          title: Action
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
      type: object
      required:
        - action
      title: Permission

````