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

# Get Org Members

> Get all members of an organization with pagination and optional email filter.

This endpoint retrieves a paginated list of organization members. Access requires
the VIEW_ORG_SETTINGS permission, which is granted to all organization members
(member, admin, and owner roles).

Args:
    org_id: Organization ID (UUID)
    page_id: Optional page offset for pagination
    limit: Maximum number of members to return (1-100, default 10)
    email: Optional email filter (case-insensitive partial match)
    user_id: Authenticated user ID (injected by require_permission dependency)

Returns:
    OrgMemberPage: Paginated list of organization members with
        current_page and per_page metadata. Use the /count endpoint
        to get the total count separately.

Raises:
    HTTPException: 401 if user is not authenticated
    HTTPException: 403 if user lacks VIEW_ORG_SETTINGS permission
    HTTPException: 400 if org_id or page_id format is invalid
    HTTPException: 500 if retrieval fails



## OpenAPI

````yaml /openapi/openhands-cloud.json get /api/organizations/{org_id}/members
openapi: 3.1.0
info:
  title: OpenHands
  description: 'OpenHands: Code Less, Make More'
  version: 0.0.1
servers: []
security: []
paths:
  /api/organizations/{org_id}/members:
    get:
      tags:
        - Orgs
      summary: Get Org Members
      description: >-
        Get all members of an organization with pagination and optional email
        filter.


        This endpoint retrieves a paginated list of organization members. Access
        requires

        the VIEW_ORG_SETTINGS permission, which is granted to all organization
        members

        (member, admin, and owner roles).


        Args:
            org_id: Organization ID (UUID)
            page_id: Optional page offset for pagination
            limit: Maximum number of members to return (1-100, default 10)
            email: Optional email filter (case-insensitive partial match)
            user_id: Authenticated user ID (injected by require_permission dependency)

        Returns:
            OrgMemberPage: Paginated list of organization members with
                current_page and per_page metadata. Use the /count endpoint
                to get the total count separately.

        Raises:
            HTTPException: 401 if user is not authenticated
            HTTPException: 403 if user lacks VIEW_ORG_SETTINGS permission
            HTTPException: 400 if org_id or page_id format is invalid
            HTTPException: 500 if retrieval fails
      operationId: get_org_members_api_organizations__org_id__members_get
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Org Id
        - name: page_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Optional page offset for pagination
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            exclusiveMinimum: 0
            title: The max number of results in the page
            default: 10
        - name: email
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 255
                minLength: 1
              - type: 'null'
            title: Filter members by email (case-insensitive partial match)
        - name: X-Org-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgMemberPage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    OrgMemberPage:
      properties:
        items:
          items:
            $ref: '#/components/schemas/OrgMemberResponse'
          type: array
          title: Items
        current_page:
          type: integer
          title: Current Page
          default: 1
        per_page:
          type: integer
          title: Per Page
          default: 10
      type: object
      required:
        - items
      title: OrgMemberPage
      description: Paginated response for organization members.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OrgMemberResponse:
      properties:
        user_id:
          type: string
          title: User Id
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
        role_id:
          type: integer
          title: Role Id
        role:
          type: string
          title: Role
        role_rank:
          type: integer
          title: Role Rank
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
      type: object
      required:
        - user_id
        - email
        - role_id
        - role
        - role_rank
        - status
      title: OrgMemberResponse
      description: Response model for a single organization member.
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Access-Token

````