Groups decide which people may use which agents and apps, and at what data level. They are a licensed feature (see Licence). Owners and admins manage them under Company Settings → Groups.
What groups do
A group has four things:
- People: company members.
- Agents: people outside the group cannot give these agents work or chat with them.
- Apps: people outside the group cannot see or open these apps.
- A data level (optional):
read,writeorschema. It sets what the group's members may do on the Data page and in apps.
A person can be in several groups. They get everything any of their groups gives them.
A suspended or pending member keeps their groups, so a lowered data level still applies when they are active again. Someone removed from the company (archived) loses their group memberships within about a minute.
Open by default
An agent or app that is in no group is open to everyone, as it was before groups. Upgrading changes nothing until someone creates a group.
This works in both directions. Deleting a group, or taking an agent or app out of its last group, makes it open to everyone. The Groups page warns you first, naming what becomes open: "This makes Support Bot, Refunds usable by everyone. Continue?"
A group with agents but no members leaves those agents to owners and admins only.
Owners and admins
Owners and admins are never restricted by a group. They see every app, may give work to every agent,
and always have the schema data level. A group cannot lock out the people who manage groups.
They also keep data-access administration by role: agent data grants, company data settings and
typed-decision settings. A group's schema level lets its members change tables and publish apps. It
never lets them decide who else gets access.
Operators
From KyoubeAI 1.15 (core 2026.1023.0) an operator holds fourteen grants from the core: creating and
configuring agents (agents:create, agents:configure), skills, environments, inviting people,
assigning tasks, pipelines, managing connections and tool profiles, using and administering tools,
and reading the tool and agent audit. Joining approvals and member permissions stay with owners and
admins, and an operator cannot invite an admin or an owner. Existing operators get the new grants on
the first start. KyoubeAI follows the core here.
Groups decide who may give an agent work, not who may change it. An operator can therefore open and
change any agent's settings and instructions, including an agent in a group they are not in, and can
connect accounts (an email inbox among them). If an operator should not do that, make them a viewer,
or remove those grants on the core's member permissions page. KyoubeAI's rules loop changes only the
operator's tasks:assign grant (see What KyoubeAI changes in the core).
Data levels
- A person's level is the highest level among their groups that set one. If none of their groups
sets a level, their company role decides (owner and admin:
schema, operator:write, viewer:read), as before. - A group can lower an operator (an operator in a
readgroup getsread) or raise one toschema. It never raises a viewer: the core refuses every change a viewer sends ("Viewer access is read-only"), so a viewer stays atreadwhatever their groups say, and the Data access page shows "role: viewer (groups cannot raise a viewer)". - A group level is never below
read. There is nonone: every company member can read, and the Data page's reads rely on that (seeSECURITY.md). - The Data access page shows each person's level and where it comes from ("role: operator" or "group: Sales").
Level changes take effect on the person's next action.
People are shown by id and role
The Groups page and the Data access people table list members by id and role. The core's plugin API
gives KyoubeAI no display names (the same gap as viewer.name in apps.md).
Apps
An app in a group is listed and opened only by members of one of its groups. Everyone else does not see it in the gallery. Following a direct link shows "You don't have access to this app. Ask a company admin." This applies to opening, running, saving data from and deciding in the app.
Apps that hand work to an agent (app-tasks.md) follow the same assignment rules as the rest of KyoubeAI. When a person presses the button, the task is created as them, after the core's own check of whether they may assign that agent. In a group that cannot assign a protected agent, the person can open the app but the button is refused with the core's reason, and no task is created.
Restricting an app hides and refuses the app only. Its tables stay reachable on the Data page and through any other app that declares them, at the person's own data level.
Apps take effect on the next request. An archived app keeps its groups, so restoring it restores its restrictions.
Agents
Someone outside the agent's groups cannot assign it a task or chat with it. The Groups page is where an agent's restrictions are seen: each group lists its agents, and an agent in no group is open to everyone. Only owners and admins see that page; anyone else who tries to assign or chat with a restricted agent gets the core's own refusal. (Core 2026.1012.0 shows plugin tabs only on issues, projects and workspaces, so there is no tab on the agent page.)
- Takes effect within about a minute. The agent rules loop (
kyoube agent-rules --watch) applies group changes once a minute. Apps and data levels change at once. - Seeing is not restricted. The core has no per-agent visibility, so people outside a group can still see its agents. Their tasks and runs follow the company's visibility.
- Chat follows assignment. Opening a chat with a protected agent, and sending a message in one, needs the right to assign that agent. Someone who loses the right can no longer reopen their old chat panel. The conversation stays readable as an issue.
- Viewers. On this core a viewer cannot assign work to or chat with any agent, in a group or not: the core refuses every change a viewer sends. Putting a viewer in a group gives them no agent. Owners, admins and operators keep chat with managers.
- Other actions in an already-open chat, such as answering an interaction card or uploading an attachment, are only checked against the chat's owner by the core.
Visibility
Groups can also decide which projects and tasks people see. A company has one of two modes, set on the Groups page:
- Open (the default): everyone in the company sees every project and task, as the core always did. Upgrading changes nothing until an admin switches a company.
- Need-to-know: operators and viewers see the projects of their groups and the tasks they are involved in, unless their group sees everything.
The page shows which mode the company is in: "Visibility: open — everyone in the company sees every project and task." or "Visibility: need-to-know — operators and viewers see the projects of their groups and the tasks they are involved in, unless their group sees everything."
Who is restricted. In a need-to-know company, an operator or a viewer is restricted unless they are in a group that has Sees everything in the company ticked. Owners, admins and instance admins are never restricted, and a broken policy never locks them out.
What a restricted person sees.
- The projects of their groups. A group lists its projects with the Projects picker on the group's form. A person in several groups sees the projects of all of them.
- The tasks they created, are assigned to, are responsible for, or chat in, and every subtask beneath those tasks, whichever project it is in. Every task in a project they can see is theirs to see too.
- Task creation inside that: a new task or subtask, or a plan's subtasks, may go into a project they see or under a task they see. A person creating a task anywhere else is refused.
- Agents, by name, role and status.
Search and the live updates the screen subscribes to follow the same rule. Search finds only what the
person may see, and its counts cover only that. Live updates carry only a type and ids for a
restricted person, enough for the screen to know what to refresh. Anything addressed by one task or
project follows it too: opening, changing or deleting a hidden task or project, or its documents,
comments, work products and the rest, by its id or by an identifier such as PAP-17, answers "not
found", the same answer as for one that does not exist.
What refuses. Some pages and answers are company-wide and cannot be cut down per person, so a restricted person gets the core's error state instead: Activity, Approvals, Costs, Execution workspaces, Timeline, status cards, decision queues and run telemetry. Approvals are the same: a restricted person sees none and cannot decide one, including one on their own task. Anyone who needs these should be in a group that sees everything.
Agents. An agent that works for a restricted person sees what that person sees during that run. A task it creates is visible to the person. An agent whose instructions assume company-wide context has less to go on during that run. Agents themselves are not restricted: a restricted person still sees them by name, role and status.
Switching. An owner or admin switches a company with Switch to need-to-know or Switch to open on the Groups page. Switching to need-to-know first lists who becomes restricted, by id and role, and asks you to confirm. If nobody is restricted yet (every operator and viewer is in a group that sees everything), it says so.
Licence. Switching to need-to-know needs a valid licence. Switching back to open never does, and neither does deleting a group. Without a licence, a company that is already need-to-know stays need-to-know. Enforcement never depends on the licence, for the reason given under Licence.
The policy files. The groups plugin writes what the core needs to know to two kinds of file on
the home volume, in /kyoubeai/kyoube/visibility/: index.json (each company's mode) and
<companyId>.json (one per need-to-know company: who sees everything, and who sees each project). It
rewrites them on every group or mode change, when the plugin worker starts, and every five minutes
(the write-visibility job). The core reads them, re-checking every two seconds. The Files and notify
plugins read the same files.
Fails closed. If the policy of a need-to-know company, or the index, cannot be read, or the
decision module in the image does not load, operators and viewers are refused the covered reads and
writes: projects, tasks and comments. Owners, admins and instance admins keep their access. A refused
state is read again at the next two-second check, so it heals as soon as the file is back. A decision
module that does not load (a broken image; the build checks it) is the one case that reaches owners
too: until the image is fixed, live updates are stripped for everyone, and every page or action on one
task or project answers "not found" to every person. kyoube doctor shows it.
Never set the shadow variables. PAPERCLIP_RESPONSIBLE_USER_AUTHZ_MODE=shadow and
PAPERCLIP_RESPONSIBLE_USER_AUTHZ_SHADOW make the core only log an agent run that reaches past what
the person it works for may see, instead of refusing it. Do not set either on an instance that has a
need-to-know company. kyoube doctor fails if they are set. Need-to-know also needs the core to run
with sign-in (PAPERCLIP_DEPLOYMENT_MODE=authenticated, which docker-compose.yml sets); doctor
fails if it does not.
Checking it. docker compose exec app kyoube doctor prints a visibility line for the instance:
the decision module loads, the core patches are all in place, the shadow variables are unset, sign-in
is on, and the home directory matches where the core reads. Then it prints one visibility <companyId>
line for each need-to-know company: the database and the index agree, the file is present and valid,
and a count such as 2 sees all, 5 projects, 3 restricted. A file whose writtenAt is more than 15
minutes old warns: the plugin worker writes it every five minutes, so check the plugins line and the
app log. A company that is need-to-know in only one of the database and the index fails, with the fix
(any group change rewrites the files).
What it does not cover. See SECURITY.md, Groups, "Visibility", for the full list. The ones to
know about:
- Most of the core asks its authorization decision, and KyoubeAI's patches cover search, live updates, task creation and everything addressed by one task or project. A few write routes addressed by an attachment or work-product id (deleting an attachment, changing or deleting a work product) check only that the person is in the company. Those ids appear only on the hidden task's own pages. The same goes for reading one email delivery by its publication id: the core checks only agents there, so a person who learns the id can read the record of that one email.
- Task identifiers are sequential (
PREFIX-17), and hidden task ids reach a restricted person in live updates and in a visible task's parent and ancestor links. They cannot be used to open anything: the task and project routes answer "not found". - A task the person can see still shows the titles of its hidden ancestors, the name of its project when that project is hidden, and its blocked-by and blocks relations. Search keeps such a task's artifacts with their task title and project name.
- The dashboard and the sidebar badges show company-wide counts (open and in-progress totals, agent, cost and chart data), without titles.
- A restricted person who can give work to an agent with shell access can ask it to read hidden work: the shell reaches every project folder and the database. Need-to-know covers people through the UI and API, and agents through the API only. Keep the Terminal's allowed roles at owner and admin (the default) in a need-to-know company.
- A person can still create tasks under a hidden task or in a hidden project by accepting a
suggest_taskscard they wrote on their own task that names it, and can move a task they see there. They cannot read it afterwards. - Approvals, and the pages listed under "What refuses", are not cut down; they refuse.
- Disabling the
kyoube.appsplugin leaves the last written policy in force. To lift need-to-know without it, delete/kyoubeai/kyoube/visibility/index.json, then restart or wait two seconds.
Private tasks and projects
From KyoubeAI 1.15 the core has private work of its own. A task can be marked private when it is
created, and a project can be made private with its own member list. A private task is readable only
by the person responsible for it, its creator, its assignee, the people and agents it is shared with
and, in a private project, the project's members. That covers task lists and counts, search,
activity, runs and their transcripts, documents and attachments. Subtasks of a private task are
private too; sharing a subtask does not share its parent. Owners and admins do not see private work
either, except through an audited emergency read (?breakGlass=true), which records who read it and
leaves a notice on the task.
It works alongside need-to-know, not instead of it: a person sees a task only when both allow it. A private task is hidden from someone who could otherwise see everything in the company, and a need-to-know company still hides the projects and tasks outside a restricted person's groups, which private tasks cannot express.
Kyoube plugins on a private task. The core treats every plugin as someone who is not on the task, so Kyoube's plugins cannot read a private task. Agents and people on it still use Kyoube data and apps as usual. What does not work there:
- An app's confirm-first actions (Data & Apps) cannot be run against the task.
- Notify sends no notice about it.
- The task page shows no Files link.
- An app that started a task cannot follow or cancel it once it is private.
Two things stay company-wide on purpose, as the core designed them: the dashboard and sidebar totals count private work (without titles), and the company's run list shows a locked row for a private task's run, with only the agent, status, timing, tokens and cost.
Leave PAPERCLIP_ISSUE_PRIVACY_MODE unset (it defaults to enforce). shadow only logs what it
would refuse, and off turns private tasks off.
Licence
Creating and changing groups needs any valid licence (see licensing.md). Without one, the Groups page shows your groups read-only with a pointer to the licence page (Settings → Plugins → KyoubeAI Licence).
Enforcement never depends on the licence. Existing groups keep restricting apps, agents and data levels when the licence is free, expired or removed, and you can still delete them. Switching enforcement off at expiry would silently open every restricted app and agent to everyone.
What KyoubeAI changes in the core
Agent restrictions use the core's own mechanism, written by the agent rules loop (agent-rules.md). Each pass, per company:
- Protected agents. Every agent in a group is marked protected, so only someone holding a
matching
tasks:assigngrant can assign it. KyoubeAI removes the mark again only from agents it protected for groups that no longer list them, and never from a manager agent the manager rule protects. - Operators. An operator's unscoped
tasks:assigngrant is replaced by one scoped to every live agent except the restricted agents they are not allowed. Unrestricted agents and managers stay assignable. - Viewers are never given an assignment grant: the core refuses their every change anyway.
- Owners and admins are not touched.
- Grants set by hand. A grant someone scoped by hand is left alone and reported. A grant someone changes after KyoubeAI wrote it is left as they set it. The exception is a row equal to the person's original role-default grant, or to what KyoubeAI last wrote: KyoubeAI treats that as its own and re-scopes it while restricted agents exist.
- Undo. When the last restricted agent goes, or a person becomes an owner or admin, the original grants are put back.
- Suspended members are left untouched until they are active again.
- Agents KyoubeAI cannot protect. If an agent's authorization policy has keys KyoubeAI does not change, KyoubeAI leaves it alone and reports it as skipped. The core already refuses everyone assignment to an agent with such a policy, so its groups change nothing there. The chat check covers protected agents only and does not cover such an agent.
- Email inboxes. From core 2026.1012.0 an agent can have an email inbox (an AgentMail connection)
without the experimental Chat connectors setting. Every new email thread to it becomes a task
assigned to that agent, and the core runs no assignment check for it, so a restricted agent with an
inbox takes work from anyone who emails it. Setting up an inbox needs
tools:manage_connections, which owners, admins and, from KyoubeAI 1.15, operators hold.
Work-object visibility needs eight standing core patches, the visibility-* entries in
docker/core-patches/patches.mjs. Four, visibility-board-decide, visibility-live-events,
visibility-search-scope and visibility-search-filter, call KyoubeAI's decision module
(/opt/kyoube/visibility/decide.mjs) in the board branch of the core's authorization decision, in its
live-events socket and in its company search. Three, visibility-create-check,
visibility-create-child-check and visibility-create-plan-check, make the core's task, subtask and
plan routes ask the same decision when a person creates a task without naming an assignee, which the
core otherwise does not check. One, visibility-route-gate, puts the decision in front of every route
addressed by a task or project id or task identifier, many of which check only that the person is in
the company. The core's own private tasks hide a single task or project from everyone not named on
it, but the core has no rule that hides by group, so without these patches everyone in a company sees
all of its open tasks and projects. On core 2026.1023.0 the live-events patch filters what the core's
own privacy check already lets through, and the search filter runs after the core's own private-task
filter. The build fails if a core release moves the code one
of them anchors on.
Chat needs one standing core patch, groups-chat-open-assign-check and
groups-chat-message-assign-check in docker/core-patches/patches.mjs. It adds the core's own
assignment check to the chat routes, for protected agents only. The build fails if a core release
moves the code it anchors on.
Groups do not depend on the agent working rules. With KYOUBE_AGENT_RULES=off the loop keeps
running and syncs only user groups each minute, so adding or deleting a group still takes effect.
kyoube agent-rules off does not remove group enforcement. Delete the groups to lift it.
Troubleshooting
- The Groups page shows Agent rules last synced N min ago, with the error if the last pass failed. If it says the rules have not synced, or the time is old, check that the loop is running.
- If the agent-access list cannot be read, or is malformed, KyoubeAI skips the group step for that company and reports it. It never applies an unreadable list as "no groups", which would lift every restriction. The current restrictions stay as they were.
docker compose exec app kyoube doctorshows group failures and skipped agents with the agent rules lines, and warns when the last pass is more than 5 minutes old. WithKYOUBE_AGENT_RULES=offthey appear on their ownuser groupsanduser groups skippedlines.docker compose exec app kyoube agent-rules --onceruns a pass now and prints every message.- The group routes answer only the agent rules loop, which proves itself with the rules token
(
/kyoubeai/kyoube/rules-token, see agent-rules.md), or a company owner or admin. Studio's/ask-levels, which the same loop reads, answers the same callers. The board key's user must be a member of each company, in any role: the core refuses the key in a company it does not belong to, before any plugin runs. The rules token only lets that member pass the owner-or-admin check without being an owner or admin. Ifkyoube doctorsays the board key's user does not have access to a company, add that user to it as a member. If it says a plugin refused the kyoube CLI, check that the token file exists and that thenodeuser can read it. - A restricted person who can still assign an agent: wait a minute, then check the pass report for "has a custom assignment grant" or a skipped agent.