> ## 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 Current User Git Organizations

> Return the Git organizations, groups, or workspaces the user belongs to
on their active provider.

In SAAS mode users sign in with one provider at a time, so the response
reflects that single provider.



## OpenAPI

````yaml /openapi/openhands-cloud.json get /api/v1/users/git-organizations
openapi: 3.1.0
info:
  title: OpenHands
  description: 'OpenHands: Code Less, Make More'
  version: 0.0.1
servers: []
security: []
paths:
  /api/v1/users/git-organizations:
    get:
      tags:
        - User
      summary: Get Current User Git Organizations
      description: |-
        Return the Git organizations, groups, or workspaces the user belongs to
        on their active provider.

        In SAAS mode users sign in with one provider at a time, so the response
        reflects that single provider.
      operationId: get_current_user_git_organizations_api_v1_users_git_organizations_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GitOrganizationsResponse'
      security:
        - APIKeyHeader: []
components:
  schemas:
    GitOrganizationsResponse:
      properties:
        provider:
          $ref: '#/components/schemas/ProviderType'
        organizations:
          items:
            type: string
          type: array
          title: Organizations
      type: object
      required:
        - provider
        - organizations
      title: GitOrganizationsResponse
      description: >-
        Response model for the Git organizations the user belongs to on their
        active provider.
    ProviderType:
      type: string
      enum:
        - github
        - gitlab
        - bitbucket
        - bitbucket_data_center
        - forgejo
        - azure_devops
        - enterprise_sso
      title: ProviderType
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Access-Token

````