Functional contract

Staff access

A User is an independent login. Access to an Organization is a Staff record. What the person may do is a role assignment. Location grants are location-scoped (or Location-Group-scoped) assignments. One login covers every assigned site.

Founder Staff, RBAC, invite, and Location switcher shipped Location group administrator shipped (Elite) Invite email not built Updated 3 Nov 2026

Membership

FactRule
Organization membershipA Staff record links a User to exactly one Organization. A User may have 0..N Staff records
InviteOrganization administrators invite by name and email at /app/settings?tab=users. New emails create a User; existing emails reuse the login. Staff stays pending until the address is validated
Pending membershipaccepted_at blank. No org access. User#primary_staff ignores pending records. Users & Roles shows days since last send and how many times the invite was issued
Resend invitationPATCH /app/staffs/:id/resend. Rotates the token and increments the send count. Delivery is not built
Withdraw invitationDELETE /app/staffs/:id. Destroys the Staff and its assignments. The User login is unchanged
Disabled membershipdisabled_at set. Same denial as pending. The User and other memberships stay usable. Last enabled Organization administrator cannot be disabled
SettingsStaff#can_view_settings?: Organization administrator, Location administrator, Location group administrator. Users & Roles tab only if can_assign_roles?
Location grantsLocation-scoped assignments, plus Location group administrator assignments (every Location in the group). Organization-scoped assignments imply every Location. Staff#granted_locations is the list
Current LocationOne granted Location at a time (or Organization overview), stored in the session. Sidebar switcher when the Staff has more than one grant; PATCH /app/workspace
SuperUserNot Organization staff. May impersonate a staff User from /admin/users and work in /app with that User's Staff, workspace, and RBAC. Stop at DELETE /admin/impersonation or /app sign-out. No UserSession, no login-stat update. API impersonation is not built
CustomerLater. A User may associate with Customers without a Staff record

Staff with no Location assignment cannot operate clinic workflows, except organization-scoped roles, which may use every Location. See RBAC.

Roles

The role catalog is global (SuperUser at /admin). Organization, Location group, and Location administrators only assign or revoke roles at /app/settings?tab=users.

RoleScopeMay
Organization administratorWhole OrganizationAssign any role, master catalog, Legal Entities, all Locations, all Users, consolidated reports, billing settings
Location group administratorEvery Location of the assigned Location GroupLocation administrator at each member Location, plus group settings: profile; catalog, price, patient group, and tax overrides and locks; catalog grants; the group's patient groups, taxes, tax groups, and commission groups. Assigns location-scoped roles at member Locations and this role on that group. Cannot change membership, other groups, or the master catalog
Location administratorAssigned LocationsSite ops and assigning location-scoped roles there. Cannot see other sites' drawers, invoices, or stock, edit the master catalog, or assign org-scoped roles
ReceptionistAssigned LocationsScheduling, checkout, client communication, patient admission
VeterinarianAssigned LocationsMedical records, orders, appointments as provider

Invites

Organization administrators invite from Users & Roles (Staff.invite! / POST /app/staffs): first name, last name, email. Listed as Pending with days since last send and send count. Roles may be assigned before validation. Resend (Staff#resend!) or withdraw (Staff#withdraw!; deletes the membership only). Until Staff#accept!, no access. Founder provision sets accepted_at.

Invite email delivery and the accept-by-token page are not built. A newly invited email cannot /register or log in until that flow exists.

Disable staff

Organization administrators disable an accepted membership (PATCH /app/staffs/:id/disable). Disabled Staff cannot act, are not bookable, and are omitted from User#primary_staff and API session organizations. Enable restores the same membership and roles. The User is never changed. The last enabled Organization administrator cannot be disabled.

Location switcher

Reports and data visibility

ViewerSees
Organization administrator / managerOrganization totals, each Legal Entity, each Location
Location roles (including group administrators)Only granted Locations. No other site's revenue, drawer, or on-hand
SuperUserAll tenants, for support

Outstanding-balance alerts from another site are visible at checkout; collecting that invoice happens in the other Location's context (Billing).

Catalog rights

Details: Catalog and pricing.

Acceptance

Out of scope: invite email and accept-by-token, SSO, plan-based seat caps.