Org Unit Schema
Felder
Org Unit Schema
Schema for organisational units (Abteilungen, Teams)
name
Name of the organisational unit
parentUnitId
Parent org unit ID for hierarchical structures
kind
Structural classification (ADR 0107). TEAM = operational unit (people work here, customers get assigned here); DEPARTMENT = Abteilung (mid-layer); DIVISION = Fachbereich (top-layer, carries cost-center/budget identity). Informational by default — actual permission behavior is driven by data_scope.* and parties.allowed_assignment_ou_kinds setting_overrides.
TEAMDEPARTMENTDIVISIONmanagerIds
User IDs of the unit managers/leads. Supports co-leadership (Doppelspitze): all entries are equal leads — each is a SpiceDB `manager` and a valid approver source (ADR 0144). Replaces the former single `managerId` field (ADR 0148).
description
Description of the organisational unit
costCenterId
FK auf cost_center. Wird von Positionen dieser OU geerbt; Positionen können übersteuern. Siehe ADR 0116a.
isActive
Whether this unit is currently active
timeZone
IANA-Zeitzone des Unit-Standorts (z.B. "Europe/Berlin"). Wird vom Working-Time-Resolver für Schicht-/Zuschlag-Zeitfenster benutzt. Override gegenüber Tenant-Default, überschrieben durch employee_profile.timeZone.
holidayRegion
ISO 3166-2 Feiertagsregion der Unit (z.B. "DE-NW"). Override gegenüber tenant.settings.defaultHolidayRegion, überschrieben durch employee_profile.holidayRegion.
dailyClosingConfig
Configuration for daily closing (Tagesabschluss) requirement
enabled
Whether daily closing is required for this org unit
deadlineTime
Deadline for daily closing (HH:MM, e.g. 18:00)
reminderMinutesBefore
Minutes before deadline to send reminder
excludeWeekends
Whether weekends are excluded from daily closing requirement
staffingRules
Minimum staffing rules for this org unit
id
Unique rule identifier (UUIDv7)
ruleType
Type of staffing rule
MIN_HEADCOUNTMIN_HEADCOUNT_WITH_SKILLminCount
Minimum number of employees required
skillId
Required skill (for MIN_HEADCOUNT_WITH_SKILL)
minSkillLevel
Minimum proficiency level for the required skill
BEGINNERINTERMEDIATEADVANCEDEXPERTdaysOfWeek
ISO weekdays (1=Mon … 7=Sun), defaults to Mon-Fri
isActive
Whether this rule is currently active
skillTargets
Strategic skill staffing targets for this org unit (e.g. "≥2 Mitarbeiter müssen M365 Administration auf Experten-Level beherrschen"). Targets are NOT inherited downward — they apply only to the OU they are defined on. However, members of sub-OUs DO contribute to the target count when evaluating coverage (transitive members count). Used by the Skill-Matrix to flag Lücken. Distinct from staffingRules, which model shift-time coverage (timeWindow/daysOfWeek). See ADR 0137.
id
Unique target identifier (UUIDv7)
skillId
FK to skill_definitions._id (leaf or parent skill)
minHolders
Minimum number of employees that must meet the target
minLevel
Minimum proficiency tier required. NULL means any level counts (and is implied for binary skills, which have no level).
BEGINNERINTERMEDIATEADVANCEDEXPERTnotes
Free-text rationale / context for this target
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/org_units— Liste, paginiert + filterbarGET /api/v1/org_units/<id>— Einzelne EntityPOST /api/v1/org_units— AnlegenPATCH /api/v1/org_units/<id>— Teil-UpdateDELETE /api/v1/org_units/<id>— Soft-DeleteGET /api/v1/org_units/<id>/timeline— Audit + Aktivitäten