OSS-first docs

These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.

identity.org.list

List organizations the current user belongs to.

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.identity-rbac
  • Tags: identity, org, list
  • File: packages/libs/identity-rbac/src/contracts/organization.ts
  • field.key.label
    identity.org.list
    field.version.label
    1.0.0
    field.type.label
    operation (query)
    field.title.label
    identity.org.list
    field.description.label

    List organizations the current user belongs to.

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.identity-rbac
  • Tags: identity, org, list
  • File: packages/libs/identity-rbac/src/contracts/organization.ts
  • field.tags.label
    identity,org,list
    field.owners.label
    platform.identity-rbac
    field.stability.label
    stable

    List organizations the current user belongs to.

    Goal

    Show user their organizations for workspace switching.

    Context

    Workspace switcher, org selection.

    Source Definition

    import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
    import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
    import { SuccessResultModel } from './user';
    
    export const ListUserOrgsContract = defineQuery({
    	meta: {
    		key: 'identity.org.list',
    		version: '1.0.0',
    		stability: 'stable',
    		owners: ['platform.identity-rbac'],
    		tags: ['identity', 'org', 'list'],
    		description: 'List organizations the current user belongs to.',
    		goal: 'Show user their organizations for workspace switching.',
    		context: 'Workspace switcher, org selection.',
    	},
    	io: {
    		input: null,
    		output: ListUserOrgsOutputModel,
    	},
    	policy: {
    		auth: 'user',
    	},
    });