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.
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',
},
});