Skip to main content

Configuration, access profiles, and assignments

This page covers four things that build on each other:

  1. The hierarchy: Organization > Business Unit > Team > User.
  2. The configuration resolver: the one mechanism every setting in the product goes through.
  3. Access profiles: what someone may do beyond seeing their own team's claims.
  4. What those drive on the Dashboard table: Assigned to, tags, and saved views (which custom dashboards pin).

The hierarchy​

ContentsVision used to know only teams. Two tables now sit above them (backend/app/models/hierarchy.py):

  • organizations (id, name)
  • business_units (id, organization_id, name)

teams.organization_id and teams.business_unit_id say where a team sits. Both are "" until someone places the team, and a missing level is simply skipped during resolution, so a team with no organization behaves exactly as before.

Who can change the tree:

ActionWho
Create, delete an organizationInternal admins only (ADMIN_EXTERNAL_USER_IDS). Teams are tenants in ContentsEstimation and ContentsCapture too, so customers cannot re-parent them.
Attach a team to an organizationInternal admins only. Moving a team to another org clears its business unit.
Rename an organizationInternal admins, or an org admin of that organization.
Create, rename, delete a business unit; move a team between BUs of its orgsettings.manage_org in that organization.

Deleting an organization detaches its teams and removes its business units, its settings, and its custom profiles. Deleting a business unit clears it from its teams and removes its settings.

The configuration resolver​

Every configurable setting is a key declared once in backend/app/services/config_registry.py and stored per level in config_settings (scope_type org, bu, team or user, scope_id, key, value JSON, locked). There is no other settings table to add: a new feature registers its keys and reads them through services/config.py.

register(ConfigKey(
key="training.exempt",
default=False,
levels=("org", "bu", "team", "user"), # where it may be set (the default: every level)
self_service=False, # True: a user may set their own value (default False)
merge="replace", # or "merge_dict" (default "replace")
validate=as_bool, # coerce or raise ValueError
group="training",
description="Exempt from required training",
))

Resolution walks the person's chain from the shallowest level to the deepest:

  • The deepest level that set a value wins: User beats Team beats Business Unit beats Organization.
  • A level that set locked: true stops the walk: nothing deeper can override it (an org-wide policy a team cannot undo). Writing beneath a lock is refused with 409. User-level values cannot be locked.
  • Nothing set anywhere gives the key's registered default.
  • merge_dict keys combine sub-key by sub-key, each from the deepest level that set it. access.overrides uses this.

Every resolved value carries source_type and source_id (where it came from) and locked_at, so the admin UI can show "Inherited from Team".

Reading in code:

chain = await config.scope_chain(db, user) # [("org", id), ("bu", id), ("team", id), ("user", id)]
value = await config.resolve(db, "training.exempt", chain)
mine = await config.resolve_for_user(db, user, ["training.exempt"]) # {key: Resolved}
many = await config.resolve_for_users(db, users, ["training.exempt"]) # two queries for any number of users

Who may write a value:

LevelWho
User, self_service keyThat user (their preferences).
User, any keyWhoever manages that user's team (below).
Teamsettings.manage_team on their own team, or settings.manage_org for any team in their org.
Business unit, Organizationsettings.manage_org in that organization.
AnythingInternal admins.

Writes to access.profile and access.overrides also refuse to hand out a permission the writer does not hold. Every write and reset is recorded in activity_log (config_set, config_clear).

Registered keys​

KeyDefaultSelf-serviceWhat it does
dashboard.default_view_idnullyesThe saved view the Dashboard opens with (builtin:all when unset).
dashboard.visible_columnsnullyesColumns shown when no view is open (null = the grid's defaults).
dashboard.column_ordernullyesColumn order when no view is open.
dashboard.default_filters[]yesFilters applied on open. Same shape as a view's filters.
dashboard.my_assignments_onlyfalseyesShow only claims assigned to me.
dashboard.default_pins[]no (org, bu, team only)Custom dashboards pinned for everyone at the level until they customize their own.
dashboard.pins_customizedfalseyes (user only)Set on a user's first pin change; their own pins then win over the defaults.
access.profile"adjuster"noThe access profile id.
access.overrides{}noPermission exceptions (merge_dict, permission to true/false).
training.modules[]noTraining assigned at the level: [{module_key, required, due_date}], replaced wholesale. See training configuration.
training.exemptfalsenoExempt from required training (a deeper level can set false).
training.exempt_reason, training.exempt_by, training.exempt_at""noWhy, who, and when an exemption was granted (the last two set by the API).
training.due_datenullnoOverrides every required module's due date for the scope (per-user extensions).
training.reminder_days14noDays before the due date that reminders start (0 to 365).

The dashboard and access keys are declared in services/config_registry.py; the training keys are registered by services/training_config.py. GET /api/config/keys lists them all.

Access profiles​

The permission catalog is fixed in code (backend/app/services/access.py):

PermissionMeaning
claims.view_orgSee every team's claims in the organization. A team's own claims are always visible, as before.
assignments.be_assignableAppears in the assignee picker for claims they can see.
assignments.reassign_ownHand a claim assigned to them to another eligible person.
assignments.reassign_anyMove any claim they can see, or unassign it.
tags.applyAdd and remove tags on claims.
tags.manageCreate, rename, recolor, delete the team's tags.
views.manage_sharedCreate and change team or organization saved views.
settings.manage_teamTeam defaults and the access of people in the team.
settings.manage_orgOrganization and business unit defaults, profiles across the organization.

Built-in profiles (the same everywhere, cannot be edited):

IdNamePermissions
new_userNew usertags.apply only: not assignable, cannot move any claim.
adjusterAdjuster (the default)be_assignable, reassign_own, tags.apply. Matches what everyone could do before profiles existed.
team_adminTeam adminAdjuster plus reassign_any, tags.manage, views.manage_shared, settings.manage_team.
org_adminOrg adminTeam admin plus claims.view_org, settings.manage_org.

Custom profiles live in access_profiles (scope team or org, name, description, permissions list). A custom profile is only usable by people in its team or organization; if someone's configured profile no longer exists or is out of their scope, they fall back to new_user (least privilege). Deleting a custom profile clears every access.profile value that pointed at it, so those people inherit again.

Effective permissions = the profile's permissions, then access.overrides applied on top (true adds, false removes). Internal admins hold every permission. get_actor computes this per request and puts it on Actor.permissions; Actor.visible_team_ids holds the teams in the org when claims.view_org is held, and team_allowed (core/ownership.py) honours it, so every id-addressed endpoint and GET /api/claims follow it.

Day one: CV has no roles and the SSO token carries none, so nobody is a team admin until an internal admin assigns a profile (or sets one as a team default).

Assigned to​

claims.assigned_to_user_id ("" = unassigned) and claims.assigned_at are separate from created_by_user_id. A before_insert hook on Claim assigns every new claim to its creator, whichever path created it. Claims older than the column were backfilled once to their creator (claim_assigned_to_backfill_2026_11_12 in data_migrations).

Rules (backend/app/services/assignment.py):

  • An eligible assignee for a claim is an active user who can see it (same team as the claim, or same organization with claims.view_org) and holds assignments.be_assignable. Internal admins' operator access does not make them eligible. For several claims at once, the picker is the intersection.
  • Moving a claim needs reassign_own when it is currently assigned to the person moving it, otherwise reassign_any.
  • Every change writes a claim_assignment_changes row (from and to, with names snapshotted, the note, who did it) and a reassign_claim activity entry.

Tags​

tags (team, name, color, a lowercased name_key for case-insensitive uniqueness per team) and claim_tags (claim, tag). Colors are one of slate, blue, green, amber, red, purple, pink, teal. A tag can only go on a claim of its own team. Deleting a tag removes it from every claim. Every claim payload carries tags: [{id, name, color}] (added in attach_status).

Saved views​

saved_views holds a named grid configuration: resource (claims for the Dashboard), owner, scope (user personal, team or org shared), name, and config:

{
"filters": [{"column": "status", "op": "in", "values": ["ready_for_review"], "value": "", "value2": ""}],
"sort": {"key": "created_at", "dir": "desc"},
"columns": {"visible": ["claim_number", "status"], "order": ["claim_number", "status"], "widths": {"claim_number": 140}},
"status_tab": "all",
"my_assignments_only": false,
"search": "",
"archived": false
}

The backend validates the shape (schemas/views.py); column keys belong to the frontend grid. Widths are clamped to 40 to 1200 px. Two built-in views always exist with stable ids: builtin:all (All claims) and builtin:mine (My assignments).

Pins (saved_view_pins, per user, ordered, at most 10) are what custom dashboards are: a pinned view shows under Dashboard in the sidebar. A user may pin built-ins, their own views, and shared views they can see. A pin's label (added as a column by init_db) renames it in that user's sidebar only. Deleting a view removes everyone's pins of it, any dashboard.default_view_id that pointed at it, and its id from every dashboard.default_pins list.

Default dashboards use the resolver like every other setting. dashboard.default_pins (levels org, bu, team; a list of up to 10 view ids) is the list people at that level start with; the deepest level that sets it wins. Until a user changes their own pins, GET /api/views/pinned returns that resolved list with pin_source: "default". The first pin, unpin, reorder or rename copies the visible defaults into their own saved_view_pins rows and sets the user-level dashboard.pins_customized to true; from then on their own list wins (even when empty) and later default changes do not reach them. Defaults may only hold views everyone at the level can open: built-ins and org-shared views, plus team-shared views at team level. They are set through PUT /api/views/pins/defaults/{scope_type}, which checks can_manage_scope like the config API and logs dashboard_defaults_set to the activity log.

The Dashboard UI​

The claims table (frontend/src/app/dashboard/page.tsx) is the first consumer: views menu, column header menus, Columns menu, My assignments only, the Assigned To column with the reassign dialog, and tags. Each row of the views menu has a pin button. Pinned views are listed under Dashboard in the sidebar (components/Sidebar.tsx, state in lib/dashboards.tsx, provided by AppShell); clicking one opens /dashboard?view=<id>, and a click while the Dashboard is already open is handed to the page through requestView. Manage dashboards (components/ManageDashboardsModal.tsx) renames, reorders (drag or arrows), unpins and deletes, and shows a Defaults tab to anyone who can manage at least one of their levels. Help Center articles: saving-views-of-the-claims-table, pinning-custom-dashboards and assigning-and-tagging-claims.

The admin UI (Settings > Team & Access)​

Shown to holders of settings.manage_team or settings.manage_org (frontend/src/components/settings/):

  • Defaults (DefaultsCard.tsx): pick a level (every org, business unit and team the person can manage, from GET /api/hierarchy) and set dashboard.default_view_id, dashboard.my_assignments_only, access.profile and dashboard.visible_columns there, each with Inherit and Lock. Reads GET /api/config/scopes/{type}/{id} for what the level inherits.
  • People (PeopleCard.tsx): each member's profile and per-permission exceptions (/api/access/users). Options the admin cannot grant are disabled.
  • Access profiles (ProfilesCard.tsx): built-ins read only, custom team or org profiles created, edited, deleted.
  • Organization (OrgStructureCard.tsx, org admins and staff): business units, team placement; staff also create organizations and attach teams.

/settings?tab=access opens the tab directly. Help Center: setting-team-defaults-and-access.

API​

Method & pathPurposeWho
GET /api/config/keysThe registry.signed in
GET /api/config/effective?keys=a,bValues resolved for me, with source. Empty keys = every self-service key.signed in
GET /api/config/scopes/{type}/{id}{set, inherited, effective} for one level. user/me and team/mine are shorthands.managers of that level; anyone for user/me
PUT /api/config/scopes/{type}/{id}/{key}{value, locked}.see the table above
DELETE /api/config/scopes/{type}/{id}/{key}Reset to inherited.same
GET /api/hierarchyThe tree the caller can manage, where they sit, and what they can manage.signed in
POST /api/orgs, DELETE /api/orgs/{id}Create, delete an organization.internal admins
PATCH /api/orgs/{id}Rename.internal admins, org admins
POST /api/orgs/{id}/business-units, PATCH /api/business-units/{id}, DELETE /api/business-units/{id}Business units.settings.manage_org
PATCH /api/teams/{id}/placement{organization_id?, business_unit_id?}.org: internal admins; BU: settings.manage_org
GET /api/access/permissionsThe catalog.signed in
GET /api/access/meMy profile, overrides, permissions. Also on GET /api/auth/me as permissions, access_profile, access_profile_name.signed in
GET /api/access/profilesBuilt-ins, my org's, my team's.signed in
POST /api/access/profiles, PATCH /api/access/profiles/{id}, DELETE /api/access/profiles/{id}Custom profiles (scope_type team or org).settings.manage_team / settings.manage_org
GET /api/access/users?team_id=People with profile, overrides, effective permissions, and user_profile (set on them directly).team managers
PUT /api/access/users/{id}{profile, overrides}; null clears either.team managers, no escalation
GET /api/views?resource=claimsBuilt-ins, mine, shared. Each with can_edit, pinned.signed in
POST /api/views, PATCH /api/views/{id}, DELETE /api/views/{id}Saved views. Shared scopes need views.manage_shared.owner or shared-view managers
GET /api/views/pinned, PUT /api/views/{id}/pin, DELETE /api/views/{id}/pin, PUT /api/views/pins/orderPins (max 10). Items carry pin_label and pin_source (mine or default).signed in
PATCH /api/views/{id}/pin{label}: rename a dashboard in my sidebar only ("" clears it).signed in
GET /api/views/pins/defaultsThe dashboard.default_pins set at each level I may manage ([] for most people).signed in
PUT /api/views/pins/defaults/{scope_type}{view_ids} for my org, bu or team; [] clears the level. 422 for a view not everyone there can open.managers of that level
GET /api/tags, POST /api/tags, PATCH /api/tags/{id}, DELETE /api/tags/{id}Team tags with claim_count. Writing needs tags.manage.signed in
POST /api/claims/tags{claim_ids, add, remove}.tags.apply
GET /api/claims/assignable-users?claim_ids=a,bOnly people eligible for every listed claim.can see the claims
POST /api/claims/assign{claim_ids, assignee_user_id ("" unassigns), note}. 403 without the permission, 422 for an ineligible assignee.see the rules
GET /api/claims/{id}/assignment-historyNewest first.can see the claim