Tenant Context
Audience
Developers, QA engineers, support engineers, security engineers, solution architects, and implementation partners.
Reference Content
This page records source-verified Workforce Scheduling API behavior and boundaries.
Summary
Application commands require a positive tenant context before processing. Queries depend on tenant-scoped persistence. Tenant identity can be derived from authenticated claims or incoming request headers; a tenant key can also be propagated.
Enforcement layers
- HTTP tenant context resolves tenant and caller metadata.
- Commands call the required-tenant guard before writes.
- EF Core global query filters constrain tenant-owned scheduling records.
- Privileged administrator context can bypass query filters.
- Missing tenant context is translated to a bad-request response by the API adapters or outer middleware.
Security boundary
Header-derived tenant identity is trustworthy only if the edge removes caller-supplied values and adds verified context. Such edge sanitization was not verified. Because scheduling endpoints do not explicitly require authentication, tenant presence must not be treated as proof of caller identity.
Classification
Tenant filtering is Implemented. Trusted propagation and privileged cross-tenant authorization require confirmation.
Source References
microservices/src/attendance-service/Infrastructure/Persistence.csmicroservices/src/attendance-service/Infrastructure/AttendanceDbContext.csmicroservices/src/attendance-service/Application/Services/ShiftPolicyCommands.cs
Related Articles
See Also
Keywords
- Workforce Scheduling API
- Shift endpoints
- Attendance policy API
Revision Information
- Status: Draft
- Last reviewed: 2026-07-20
- Next review: 2026-10-20