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

# Get the organization info for a user

> Returns the resolved organization context for the given user: orgId, role, active flags, organization type, fee settings, Stripe account (for the requested environment), and organization wallet. When `orgId` is supplied the membership for that specific org is returned; otherwise it falls back to the user most-recent active membership. Callers may only request their own `:userId` (ownership is enforced). Requires a Nevermined API key or a Privy identity token.



## OpenAPI

````yaml /api-reference/organizations-openapi.json get /organizations/user-info/{userId}
openapi: 3.0.0
info:
  title: Nevermined Organizations API
  description: >-
    Manage a Nevermined organization programmatically — members, tiers, groups &
    budgets, treasury wallets, customers, webhooks, analytics, and
    agent-discovery surfaces.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.sandbox.nevermined.app/api/v1
    description: Sandbox
  - url: https://api.live.nevermined.app/api/v1
    description: Live
security: []
tags:
  - name: Organizations
    x-group: General
    description: Organization settings, members & roles, and workspace context.
  - name: Organizations - Billing
    x-group: Billing
    description: Tiers, subscriptions, invoices, checkout, and the public tier catalog.
  - name: Groups
    x-group: Groups & Budgets
    description: Organization groups, per-group budgets, and shared payment methods.
  - name: Organizations - Wallets
    x-group: Wallets
    description: Custodial stablecoin treasury wallets.
  - name: Organizations - Customers
    x-group: Customers
    description: The white-label customer CRM (Enterprise).
  - name: Organizations - Analytics
    x-group: Analytics
    description: Revenue, MRR, usage, conversion, and per-member metrics.
  - name: Organizations - Webhooks
    x-group: Webhooks
    description: Outbound webhook subscriptions and deliveries.
  - name: Organizations - Activity
    x-group: Activity
    description: The organization activity feed.
  - name: Organizations - Realtime
    x-group: Realtime
    description: Realtime WebSocket secret management (Enterprise).
  - name: Invitations
    x-group: Invitations
    description: Invite people to an organization.
  - name: Organizations - Integration
    x-group: Agent Discovery
    description: >-
      Public agent-discovery surfaces (llms.txt, agentic-instructions.md,
      ai-catalog.json).
paths:
  /organizations/user-info/{userId}:
    get:
      tags:
        - Organizations
      summary: Get the organization info for a user
      description: >-
        Returns the resolved organization context for the given user: orgId,
        role, active flags, organization type, fee settings, Stripe account (for
        the requested environment), and organization wallet. When `orgId` is
        supplied the membership for that specific org is returned; otherwise it
        falls back to the user most-recent active membership. Callers may only
        request their own `:userId` (ownership is enforced). Requires a
        Nevermined API key or a Privy identity token.
      operationId: OrganizationsController_getUserOrganizationInfo
      parameters:
        - name: userId
          required: true
          in: path
          description: >-
            The Nevermined user id to look up. Must match the authenticated
            caller.
          schema:
            example: user-abc123
            type: string
        - name: environment
          required: false
          in: query
          description: Which Stripe account to surface on the organization record.
          schema:
            enum:
              - live
              - sandbox
            type: string
        - name: orgId
          required: false
          in: query
          description: >-
            Workspace selection from the webapp switcher. When provided, returns
            the membership for this specific org; when omitted, falls back to
            the most-recent active membership.
          schema:
            type: string
            example: org-abc123
      responses:
        '200':
          description: User organization info returned
        '403':
          description: Caller attempted to read another user organization info.
        '404':
          description: >-
            No matching active membership found for the user
            (BCK.ORGANIZATIONS.0028).
      security:
        - Authorization: []
components:
  securitySchemes:
    Authorization:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

## Related topics

- [Get public info for a pending invitation by token](/docs/api-reference/invitations/get-public-info-for-a-pending-invitation-by-token.md)
- [Get an organization customer](/docs/api-reference/organizations--customers/get-an-organization-customer.md)
- [List organization customers](/docs/api-reference/organizations--customers/list-organization-customers.md)
- [Get plan consumption](/docs/api-reference/organizations--analytics/get-plan-consumption.md)
- [Organizations](/docs/solutions/organizations/overview.md)
