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

# List Oauth Orgs

> List GitHub orgs or GitLab groups accessible via the user's linked OAuth identity.

Used by the frontend org-picker so users can connect an org without pasting a PAT.
Requires session auth — the token lives on the user's identity row, not the workspace.



## OpenAPI

````yaml /openapi.json get /api/v1/workspaces/{workspace_id}/oauth-orgs/{provider}
openapi: 3.1.0
info:
  description: Change Impact Engine for multi-repo systems
  title: Riftmap
  version: 1.12.3
servers: []
security: []
paths:
  /api/v1/workspaces/{workspace_id}/oauth-orgs/{provider}:
    get:
      tags:
        - workspaces
      summary: List Oauth Orgs
      description: >-
        List GitHub orgs or GitLab groups accessible via the user's linked OAuth
        identity.


        Used by the frontend org-picker so users can connect an org without
        pasting a PAT.

        Requires session auth — the token lives on the user's identity row, not
        the workspace.
      operationId: >-
        list_oauth_orgs_api_v1_workspaces__workspace_id__oauth_orgs__provider__get
      parameters:
        - in: path
          name: workspace_id
          required: true
          schema:
            format: uuid
            title: Workspace Id
            type: string
        - in: path
          name: provider
          required: true
          schema:
            title: Provider
            type: string
        - in: header
          name: X-Workspace-Id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Workspace-Id
        - in: cookie
          name: riftmap_access
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Riftmap Access
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/OAuthOrgInfo'
                title: >-
                  Response List Oauth Orgs Api V1 Workspaces  Workspace Id 
                  Oauth Orgs  Provider  Get
                type: array
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    OAuthOrgInfo:
      description: >-
        A GitHub org or GitLab group accessible via the user's linked OAuth
        identity.
      properties:
        avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Avatar Url
        login:
          title: Login
          type: string
        name:
          title: Name
          type: string
        scannable:
          default: false
          title: Scannable
          type: boolean
        url:
          title: Url
          type: string
      required:
        - login
        - name
        - url
      title: OAuthOrgInfo
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-API-Key
      type: apiKey
    HTTPBearer:
      description: API key as Bearer token (rfm_live_... prefix)
      scheme: bearer
      type: http

````