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 all users (admin only).
Goal
Allow admins to browse and manage users.
Context
Admin dashboard user management.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
export const ListUsersContract = defineQuery({
meta: {
key: 'identity.user.list',
version: '1.0.0',
stability: 'stable',
owners: ['platform.identity-rbac'],
tags: ['identity', 'user', 'admin', 'list'],
description: 'List all users (admin only).',
goal: 'Allow admins to browse and manage users.',
context: 'Admin dashboard user management.',
},
io: {
input: ListUsersInputModel,
output: ListUsersOutputModel,
},
policy: {
auth: 'admin',
},
});