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

# Set Current User Active Scope



## OpenAPI

````yaml /openapi/groundforge-openapi-v1.json post /v1/me/active-scope
openapi: 3.1.0
info:
  title: GroundForge REST API
  version: 86Y.5p.6v.6aq
  description: >-
    Current GroundForge SaaS administration, Agent, Channel, MCP, governance,
    observability, and LangChain integration endpoints.
servers:
  - url: https://platform.groundforge.ai
    description: GroundForge SaaS
security: []
paths:
  /v1/me/active-scope:
    post:
      summary: Set Current User Active Scope
      operationId: set_current_user_active_scope_v1_me_active_scope_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetActiveScopeRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    SetActiveScopeRequest:
      properties:
        organizationId:
          type: string
          maxLength: 128
          minLength: 1
          title: Organizationid
        teamId:
          anyOf:
            - type: string
              maxLength: 128
              minLength: 1
            - type: 'null'
          title: Teamid
      additionalProperties: false
      type: object
      required:
        - organizationId
      title: SetActiveScopeRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OIDC access token for users and CLI clients.
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Scoped service-account API key for external Agents and runtime clients.

````

## Related topics

- [Current User Scopes](/api-reference/endpoints/current-user-scopes.md)
- [Current User](/api-reference/endpoints/current-user.md)
- [Unregister Current User](/api-reference/endpoints/unregister-current-user.md)
- [Update Current User Profile](/api-reference/endpoints/update-current-user-profile.md)
