Restrict what a viewer sees
Out of the box, every signed-in viewer can ask about every person Prism measures. Scoped viewers change that per viewer. A viewer set to own reporting line gets answers only about themselves and the people beneath them in your organization, at any depth. A viewer set to everything is unaffected.
Restriction is enforced where the data is read, inside the query that computes each answer. It does not depend on the assistant following an instruction, and a question worded to reach outside the line gets an answer about the line or a refusal.
It is off by default. With it off, an upgrade renders exactly as before.
Before you start
You need all of these. The chart refuses to render if any of the ones it can check is missing, and the message names the value.
| Requirement | Why |
|---|---|
A sign-in front door: app.identity.mode set to easyauth, iap or local | Under static, every request is the same configured person, so there is nobody to place in a reporting line. |
| A designated organizational context stream, with dates | The reporting line is walked over its latest dated copy, so the stream must be copied, not read in place: see a copied warehouse table or an uploaded staff list. An undated stream, or a query-through one, is refused. |
| The semantic query tools (always installed) | They are the only tools that can restrict an answer to a reporting line. Every other tool refuses a restricted viewer. |
A fence around the app, under easyauth or iap | See the next section. Prism does not verify the identity headers it is given. Under iap, you can verify IAP's signed token as well. |
A new secret, secrets.mcpViewerSecret, or an mcp-viewer-secret key in your existingSecret | The key the agent runner signs each viewer token with, and every query server checks. |
No agentRunner.clientsYaml override | Scoping needs the chart to write the runner's client file itself. |
| A directory registered before this release: its chain columns declared | Prism can't stop you allowing a column the recipe doesn't declare as naming a person. See Before you allow a directory column. |
Upgrade to the release first, and turn scoping on in a separate upgrade once every pod has rolled out. Turning it on in the same upgrade can leave a query server from the previous release answering while the new ones start.
The fence, under easyauth or iap
Under iap, Prism takes the signed-in person from request headers that your
sign-in proxy sets, and does not verify them. With scoping on, those headers
decide whose reporting line a viewer reads. Anything that can reach the app pod
without passing through your proxy could name any manager and read their line.
To close that, verify IAP's signed token.
Under easyauth, scoping requires Prism to verify the signed Entra ID
token instead, and the chart
refuses to render scoping on without it. The headers are then not read, and the
fence below is defence in depth.
The chart's fence is a Kubernetes NetworkPolicy that admits the app's port
only from the peers you list. Scoping is only as strong as your cluster's
enforcement of that policy. Some network plugins accept a NetworkPolicy and
ignore it. local sign-in trusts no header and needs no fence.
Set viewerScoping.networkPolicy.from to where your proxy's traffic comes
from. The peers you list must be something that overwrites every identity
header on the way in. An ingress controller that passes client headers through
does not qualify on its own.
-
oauth2-proxy running as its own Deployment in front of the app: a
podSelectoron the oauth2-proxy pods.viewerScoping:networkPolicy:from:- podSelector:matchLabels:app.kubernetes.io/name: oauth2-proxy -
ingress-nginx, where the controller itself strips and sets the identity headers: a
namespaceSelectoron the controller's namespace plus apodSelectoron the controller.viewerScoping:networkPolicy:from:- namespaceSelector:matchLabels:kubernetes.io/metadata.name: ingress-nginxpodSelector:matchLabels:app.kubernetes.io/name: ingress-nginx -
A cloud load balancer, such as Google Cloud IAP with a container-native load balancer: an
ipBlockfor the load balancer's proxy and health-check ranges. Take the ranges from your provider's current documentation, not from an example. Those ranges admit every load balancer of that provider in your project, not only yours, so make sure IAP fronts every load balancer that routes to the app. An ipBlock in the fence is for the load balancer's external ranges only (for example GKE IAP's), never pod or service CIDRs; the self test FAILs a block that contains the app pod's own address.
Or, if you run an equivalent policy yourself, set
viewerScoping.networkPolicy.externallyEnforced: true and the chart renders
none.
What the chart refuses, and what it can't:
- It refuses an empty
from, a peer that is an emptypodSelector, and any/0range. AnamespaceSelectorcounts as confining a peer only when it has non-emptymatchLabelsor anInexpression with values; anything else (empty in any spelling, or onlyExists,NotInorDoesNotExist) is open. An opennamespaceSelectorwith nopodSelectoris always refused. One beside a non-emptypodSelector, which admits pods with those labels in every namespace, is refused unless you setviewerScoping.networkPolicy.allowAnyNamespace: true(a YAML boolean). If you do and a peer relies on it, the self test's viewer identity line fails. - It can't tell a namespace label that every namespace happens to carry, nor several ranges that add up to everything. Check what you list.
- It refuses
app.ingress.enabledwith scoping on undereasyauthoriap. Underiapthe chart can't attach IAP to its own Ingress: front the app with your own IAP-protected load balancer or Ingress, and list its ranges infrom. kubectl port-forwardgoes through the kubelet and isn't subject to a NetworkPolicy, and many network plugins admit traffic from the node itself and from host-network pods. Anyone who can create a pod that matches yourfrompeers, in any namespace they select, is inside the fence too. Who can do those things is a matter for your cluster's RBAC, and the chart can't control it.
Verify IAP's signed token
Under iap, Google Cloud IAP also sends a signed token on every request it lets
through, in the x-goog-iap-jwt-assertion header. Turn on
app.identity.iap.token.verify and Prism checks that token against Google's
IAP signing keys. Prism then takes the signed-in person from the token. Prism
no longer reads the x-goog-authenticated-user-* headers at all. A request with
no token, or with a token that fails a check, gets a 401. The fence above
becomes defence in depth.
app:
identity:
mode: iap
iap:
token:
verify: true
audience: /projects/123456789012/global/backendServices/987654321
-
The audience. IAP signs each token for one service. Prism refuses a token signed for any other service. Set
audienceto the value IAP uses for the service in front of Prism:- behind a load balancer:
/projects/<project number>/global/backendServices/<service id>.gcloud compute backend-services describe <name> --global --format='value(id)'prints the service id. - on App Engine:
/projects/<project number>/apps/<project id>.
gcloud projects describe <project id> --format='value(projectNumber)'prints the project number. The chart refuses an audience that does not start with/projects/<number>/. - behind a load balancer:
-
The keys. Prism fetches Google's keys from
https://www.gstatic.com/iap/verify/public_key-jwkand needs egress to it. An install with no egress puts that document in a ConfigMap and setskeysFile.configMap. You then refresh the ConfigMap when Google rotates its keys. Until you do, a token signed with a new key is refused. -
The people. Each person keeps the same sign-in id. The token carries the same IAP user id as the header did, so App users rows and links still match.
With verification on, the self test's viewer identity line checks Google's keys, whether viewer scoping is on or off. The line fails when Prism holds none, because then every sign-in is refused.
Prove the fence with helm test
Run helm test <release> --logs after installing, after every change to the
policy, and after any change to your cluster's network plugin. Don't restrict
any viewer until it passes.
helm test starts an ordinary pod on the app's own image and tries to reach the
app. The possible results:
- PASS: the connection from an ordinary pod in the release namespace timed
out, so the policy dropped it. It says nothing about pods in other
namespaces your
frompeers select. - FAIL, reachable: your cluster doesn't enforce the policy, or the policy admits ordinary pods.
- Inconclusive: the app wasn't up, or the network plugin rejects connections rather than dropping them.
Two things it needs:
- The app must be Ready. Under some kube-proxy replacements, a Service with
no ready endpoints drops connections, which looks like a PASS. Run it after
helm upgrade --wait. - The test pod must be able to reach the agent runner's Service, as its positive control. If you fence the runner, or run a namespace-wide default that denies egress, you will see inconclusive until you allow that.
The test pod is kept on success, so helm test --logs can read it. helm uninstall leaves it behind; delete it by hand.
The self test's viewer identity line stays a warning by design under
easyauth and iap. It fails if you set allowAnyNamespace and a peer uses
it, or if an ipBlock contains the app pod's own address. Prism can't see from
inside whether the cluster enforces the policy; helm test can.
Turn it on
Generate the secret. It must be at least 32 bytes and different from
secrets.appJwtSecret and secrets.mcpSharedSecret:
openssl rand -hex 32
Then, in your values file:
viewerScoping:
enabled: true
default: unrestricted # or reporting_line; see below
networkPolicy:
from: [] # your proxy's peers, as above (easyauth and iap only)
secrets:
mcpViewerSecret: "<the value you generated>"
Under easyauth, also set app.identity.easyauth.token as Verify the signed
ID token describes.
With existingSecret, put the value under the key mcp-viewer-secret instead.
The chart can't read that Secret, so it can't check it there: a missing key
stops the pods at start, naming it, and a key under 32 bytes stops each query
server at start with a message saying so. Nothing checks that it differs from
your other two secrets; make sure it does. Rotate a
credential covers changing it later.
viewerScoping.default is the scope of a viewer who has no setting of their
own:
-
unrestricted(the default) is today's behaviour. Restrict viewers one by one on the admin page.A restriction is set on an email address, and holds only for sign-ins that arrive with that address, until a sign-in is linked to the row. A viewer who signs in under another one (an alias, or an Entra B2B guest's
#EXT#user principal name) isn't matched to the row you restricted, and getsviewerScoping.default. If you restrict anyone, setviewerScoping.default: reporting_line, and mark the viewers who should see everything as everything on this page. A viewer the installation doesn't recognise is then restricted or refused, never served everything. Or link a sign-in to the row (below), and the restriction holds with any address that has no row of its own on this page.With scoping on, a sign-in that carries no email address is refused, whatever
viewerScoping.defaultsays. The viewer is told that the sign-in proxy needs to pass an email claim (for exampleemailorpreferred_username). In practice this happens only undereasyauth: underiapthe email header is always present. The one exception is a sign-in already linked, by an earlier sign-in with an email or by link a sign-in, to a row that restricts them: set to own reporting line, or left on areporting_linedefault. That row applies only once you set its organization email, even when it is the same as the address they sign in with; until then the viewer is refused and told to ask you to set it. -
reporting_linerestricts everyone except super admins, until you say otherwise per viewer.
Choose who is restricted
On Admin → App users, each row has two new columns once scoping is on:
- Sees: everything, or own reporting line. Empty means the
installation's
viewerScoping.default. Super admins always see everything, and a restricted viewer can't be made a super admin until the restriction is cleared. - Organization email: the address that places the viewer in your
organizational context stream, when it differs from the one they sign in
with. Large organizations often sign people in with a user principal name
(
[email protected]) while the directory holds their mail address ([email protected]). Set it here, and it is used only to find the viewer's place in the organization; it never changes who they are signed in as.
Add one other leader's line
A restricted viewer can also see one other leader's line: for example, two leaders who run one organization together but sit in different lines of the directory, each seeing the other's people. On their row, set the other leader's organization email beside own reporting line. Only one extra leader can be set per viewer, only on a row set to own reporting line (not one left on the default), and never on a super admin.
The viewer then sees their own line and the other leader with everyone beneath them, at any depth. A person in both lines is counted once. "Beneath you" and "your direct reports" still mean the viewer's own line; answers about the whole say "the reporting lines you can see", and name the other leader by the address you set. The viewer can see which leader they were given.
"My organization", "my team" and "under me" mean the viewer's own line, with them counted. For an activity figure asked that way, such as "how many pull requests did my organization merge", the assistant asks for their own line only, and the answer says it covers "your own reporting line". A question about everything they can see covers both lines.
The address is checked when you save: one that doesn't place exactly one person in your organizational context stream is refused with the reason. If the stream places nobody at all, whatever the address (it has no copy here yet, its latest copy is empty or carries no email addresses, the identity crosswalk holds none, or no usable stream is designated), the save is refused saying what to check. Otherwise, the save says to try again later. It is placed again on every question, as the viewer is. If it stops placing anyone (the leader leaves, or their address moves), the viewer's answers narrow to their own line and say so, rather than being refused; set a new address or clear it. The self test's restricted viewers line counts the extra leaders that place nobody, so you learn when one has left. An address Prism can't use at all (it is not an address, or it is the viewer's own) is not refused at sign-in either: their answers cover their own line and say the extra line was not included.
Saving a row without touching its extra leader keeps it; the address is checked again only when you change it. Changing the row's access to anything but own reporting line clears it. After a rollback to an earlier Prism and an upgrade back, an extra leader is ignored if the row's access was changed or the row was reset while the earlier version ran; set it again.
Setting, changing or clearing the extra leader starts the viewer a new conversation, as any change of scope does (below).
Under easyauth and iap, each address listed on this page is linked to the
first sign-in that uses it. A different sign-in under the same address is refused, and doesn't
inherit that row's role or access, until you unlink it on this page. A
sign-in is linked to one row only. Once linked, it is refused when it arrives
under another address that has a row of its own, whatever either row's access,
because that address may be someone else's. Each linked row shows the end of
its sign-in id, and a viewer refused this way is told the same ending. So when
a viewer's address changes, find the row showing it and use move link to
move the link to their new address's row; or remove the duplicate. Nobody can
move their own link: a super admin refused this way needs another super admin,
or the break-glass steps in Install.
When you first turn scoping on, every existing row is linked by its next sign-in, so
turn it on at a time when you know who will sign in first.
You can link a restricted row before its first sign-in: link a sign-in on
that row records the id your sign-in proxy sends for the person, the Entra
object id under easyauth or the IAP user id under iap. The restriction
then holds with any address that has no row of its own on this page. Under
such an address, or with no address at all, they're placed by the row's
organization email, and refused until you set one: the row's own address may
since have been given to someone else. Under an address that has a row of its
own, they're refused, as above. So link the
sign-in and then set their organization email. Until a row set to own
reporting line is linked, the page marks it, and the self test's restricted
viewers line warns with how many there are. Both also flag every row set to
own reporting line with no organization email, so you can set one before a
sign-in is refused. Rows left on a reporting_line default aren't marked or
counted; under that default the same line says once that a linked viewer
needs their organization email to sign in with no address, or under an
address with no row of its own.
Changing a viewer's scope starts them a new conversation. Nothing from a conversation held under one scope carries into the next, whether you narrow their access or widen it, and they're told why. Their earlier conversations stay in their own history, under the scope they were asked in.
A viewer can check how they're placed: /whoami reports their scope and the
address used to place them.
Check before you roll out
A super admin can see Prism as a named person would, before turning a
restriction on for them. On Admin → App users, press Preview as on
their row. For someone not on the page yet, type their organization email into
Preview as and press it; the person doesn't need
to have signed in. A row whose person sees everything (a super admin, or
everything by their setting or viewerScoping.default) has nothing to
preview: its button is greyed out and says so.
While you preview, every data answer, the dashboard and the catalogue use
that person's data scope: their own setting on this page, or
viewerScoping.default if they have none, placed by their organization email.
Everything else stays yours. You are still signed in as yourself, the admin
pages still work, and every question is recorded under your name with the
person you were previewing. A banner on the page says who you are previewing
and how many people their reporting line holds, with Stop previewing.
A preview never writes anything as the person: saving a prompt, a note or feedback is refused until you stop. Its conversation is separate from your own.
It is refused, with the reason, when:
- the person sees everything, as a super admin or anyone left unrestricted does: "This person sees everything: the same as you. Nothing to preview."
- their organization email places nobody in the organizational context stream, or more than one person, or the stream isn't available. You get the same sentence the person would see in their first answer.
- you aren't a super admin, or viewer scoping is off.
What a restricted viewer sees
Themselves and everyone beneath them, at any depth, walked over the latest dated copy of your organizational context stream. Not the chain above them, and not their peers.
A viewer given one other leader's line (above) sees both lines, each person once, and nothing else. Every rule below applies to both lines together: a row counts when everyone it names is in either line, so a pull request written in one line and reviewed in the other counts.
A restricted viewer gets no organization-wide figure of any kind: no benchmarks, no comparison with other parts of the organization, no org-wide totals or denominators. Headcounts, participation and population sizes are all the line's own.
A question that names people or a population is answered about the part of it inside the viewer's line, which may be nobody. The answer doesn't say whether the people named exist outside the line. A manager named in a question resolves only if they are in the viewer's line: a name above the viewer, or beside them, reads exactly like a name nobody holds. A question filtered to one person (by their GitHub login, say) who is not in the line is answered "no one by that name is in your reporting line", with no figure for them, and the answer is worded the same whether that person exists elsewhere or not at all. Looking a person up, or asking who owns something, likewise finds only people in the line.
A person in the line can be asked about by name, such as "how many pull
requests did <name> merge last quarter". Looking them up gives the agent the
logins their activity is recorded under. It only gets kinds of identifier that
a context stream the viewer can ask about shows, such as a GitHub login. An
identifier you mark hidden in the people roster, or in every recipe that
carries it, such as an email address, is never given out this way, to any viewer. A context stream keyed
only by a kind of identifier your roster hides can't be reached from a person's
name. To allow it, show that column in the roster.
The rest of the app follows:
- the chat page's first screen says, in one line, that answers cover only the viewer and everyone who reports to them. It names an extra leader you gave them. It names your default scope only while that scope narrows their answers;
- the dashboard's panels are empty, because they rank people across the whole organization;
- the suggested questions drop the ones built from organization-wide activity and the ones an administrator verified against the whole organization;
- the list of data on the installation, the suggested questions, the starter questions and the questions shown while Prism works on an answer name only the context streams the viewer's answers can come from. A stream they cannot be answered from, such as Agent Router spend, is not listed or suggested to them;
- your definitions are listed without how many people each selects, and the viewer is told so. A question that names a definition, or that runs under your default scope, counts only the part of it inside their line, and the answer says so: that count is not a measure of the definition's size.
With a default scope set as well, a restricted viewer gets the people in both: the installation's scope and their own line. On a stream the default scope cannot be applied to, such as one whose rows name people in more than one column of the directory's identifier, they get their own line there, and the "About these figures" list under the answer says your organization's default population could not be applied to this data.
Which records a restricted viewer is answered from
A record can name several people: a pull request its author and a reviewer, an incident its caller, assignee and resolver, a resource plan row the person and their whole management chain. Which of those records count for a restricted viewer is your setting, on the App users page, under Restricted viewers see rows:
- Only where everyone named is in their line (the default). A record counts only when it names at least one person and every person it names is in the viewer's line. A pull request authored in the line but reviewed by someone outside it is left out, and so is an incident resolved by someone outside it. On a stream naming several people per record that can be most of the line's records, and the count can be zero while the line had many. The "About these figures" band under the answer says so, in a "Rows counted" line: its figures count only rows on which everyone named is in the line, and a count of zero means none on which everyone named is in the line, not none at all.
- About someone in their line. A record counts when the person it is
about is in the viewer's line. Everyone else named on it, in a column the
manifest tags as naming a person, who is outside the line is shown as one
value,
outside your line: in a group, a drill row, a manager's name. Their identifier and their name are never shown in those columns. A record about someone outside the line is never counted. A column the manifest does not tag is shown as written, whoever it describes: an untagged column of leaders' names, or of the department of the person who raised an incident, shows those values on the line's records.
Turning on "About someone in their line", in two steps:
- Tag every column that names a person, on each stream restricted viewers
are answered from:
identity:for an identifier,name_of: <identifier field>for a name of the person in that field,person: truefor any other name or list of names. Then ask the agent to describe the stream, signed in as an administrator. Under each dataset'srestricted_viewer_rows, theunder_subject_settingblock says what the dataset would get under "About someone in their line" while the default is still in force: whether it would switch, and if not, why it would keep the default rule. Itsuntagged_fieldslists every column that has none of these tags, of any type, anduntagged_text_fieldsthe text ones among them. All of them would be shown as written on the line's records. Most are the record's own facts (its dates, its hours, its status). Judge each one, and tag or remove those that name or describe a person. A column holding a person's attribute (their department, their location, their hire date) has no tag that hides it: remove it from the manifest, or keep the default. A dataset that names nobody and is scoped through its links (through_links) follows the rule of each dataset it links to, listed underthrough. One that names nobody and is refused to restricted viewers saysrefused, under either setting. - Choose "About someone in their line" on the App users page.
Which person a record is about is read from the stream's manifest, never
from a column's name: the columns it declares as a relationship to a person,
under relationships: with to: person. A question that names its people and
matches them on one of those columns narrows the record to that column. A stream that declares no such relationship keeps the default
rule whatever you chose, and so does a stream whose records each name one
person (the two rules are then the same), one whose source: is a query rather
than a table, one where a column naming a person is written as an expression
rather than one column, and one with a field or metric whose sql: reads a
table (a subquery, FROM or JOIN): what such an expression reads is the
table itself, not the record as the viewer sees it. Each dataset's restricted_viewer_rows says which rule
applies and why. With no usable organizational directory, every dataset's
rule is refused, under either setting: every restricted question is then
refused. To declare a relationship, add it on the stream's
Manifest tab, for example:
model:
relationships:
- {name: incident_assignee, from: incidents.assignee_id, to: person,
via: employee_id, cardinality: many-to-one, verified: false}
via is the identifier kind the column declares (identity:).
A filter on a value outside the line still matches nothing and reads like a value nobody holds, under either setting. A count of different values of a column naming people counts everyone outside the line as one, and the answer says so.
Titles and descriptions of the line's own work are shown as written, even when they mention someone outside it.
A plain text column holding a name is shown as written. A column like the
manager's name is displayed the same way as titles and descriptions, even when
that person is outside the line. Under the default rule rows are still only
those on which everyone named is in the line. person: true makes Prism refuse
grouping or filtering by such a column, as it does for an assignee's display
name; under "About someone in their line", name_of: shows the name only where
the person it names is in the line.
When a stream says whose row it is
A context stream can name, in its manifest, the column saying whose row it is
(subject, see Change a context stream's manifest).
A restricted viewer isn't answered from such a stream in this release: its
agent isn't shown the dataset at all, so it doesn't offer it, and a question
naming it is refused exactly as one naming a dataset, or a stream, that doesn't exist. Without
subject, the rules above apply to it, and so they do with subject: none,
which says the records are about no person rather than naming a column
(Job 5).
A stream of links between records
A context stream can hold only links between records, such as a change number and the incident it caused, with no person on the row. Without more, a restricted viewer is refused it: nothing on the row can be checked against their line.
When its manifest relates its fields to the records they name (see Change a context stream's manifest), a restricted viewer is served the links on which any linked record is their line's. Whether a linked record is theirs is decided by the same rule as when they ask about that record directly, on its latest copy. So a link from a change outside the line to an incident in it is counted, and shows both numbers. A link with neither record in the line is left out. The answer says its rows were scoped through their links.
Only the link's related fields (the record numbers) and its dates are served. Any other column on the stream, such as a name or a description, belongs to a record that may be outside the line: grouping or filtering by it, or a figure other than a count of rows or of distinct record numbers, is refused with a sentence that names the fields they can use, and a drill leaves it out and says so. A default filter or a required filter in the stream's manifest on any other column refuses every question.
Only relationships written in the manifest are used. A link stream with none
is refused as before. A relationship may name records in another context
stream that Prism keeps a copy of; while that context stream is switched off,
or its manifest no longer fits the relationship, links are not served through
it. Nor are they through a relationship to records whose people your
organizational directory does not resolve, or to a dataset whose first copy has
not landed yet, in this context stream or another. Nor are they through a
relationship to a dataset a restricted viewer is not shown: one whose manifest
declares subject, or one that describes people the way the organizational
directory does. A question is answered through the relationships that remain,
and one that only those relationships could answer is refused.
Describing the stream says which applies. Each dataset's
restricted_viewer_rows.rule is through_links when a restricted viewer is
served through its relationships and refused when they are not, and says
gives the reason. With no usable organizational directory, every restricted
question is refused, and says says that instead.
Split by your direct reports
A restricted viewer can ask for their line split by their direct reports, such as "pull requests merged last quarter by each of my direct reports' organizations", and get it in one answer. Each row is one direct report, by name, with everyone beneath them; one more row is the viewer's own work. A direct report who manages nobody is a row of their own. They can also split one direct report's organization by that person's direct reports, and that answer covers that organization only. A name outside their line is treated like any other name outside it.
Each row is held to the same floors as any group of people, and a row they
withhold stays withheld. The rows are built by walking the reporting line, and
every name on them is someone in the viewer's line, so no directory column
needs restricted_viewers: allow. An unrestricted user gets the same split by
naming the leader, and the answer covers that leader's organization.
A viewer given one other leader's line can split either line. Splitting by their own direct reports covers both lines: the rows are their own line's, and the other line's people who aren't beneath them are one more row, (not under this leader), which names no one. To split the other line by its leader's direct reports, they name that leader, or anyone in that line; a name in neither line is treated like any other name outside them.
What a restricted viewer can't ask
These are refused for a restricted viewer. None of them can restrict its answer to a reporting line:
- Spend from the Agent Router.
- Live GitHub: the live pull-request search and detail tools.
- Jira through the older Jira tool. Jira questions are answered by the semantic query tools instead.
- Query-through context streams, which are read in place in your warehouse rather than copied. They are not listed to a restricted viewer's agent at all, so it does not offer them. Copied (snapshot) streams are fine.
- A context stream that says whose row it is (
subjectnaming a column), whatever is asked of it (see above). - Grouping or filtering by a display name that isn't an identity, such as an issue's assignee names or a manager's name, because Prism can't check whether that name is in the line.
- Questions asked of the organizational directory itself, such as a
headcount straight from the roster. The line's headcount comes with an
answer about its activity instead, such as how many pull requests its people
merged: how many people are in the line, the viewer included, beside whatever
population the answer counted and whether the viewer is one of them. It
comes only with an answer that matches the line on one column naming a
person. An answer over records that name more than one person, such as an
author and a reviewer, can match on none of them, and then comes without
it. So does an answer over a stream whose records are about no person
(
subject: none), where no number of people is a denominator. - Any other context stream carrying the directory's own employee identifier, unless its declared primary key is a record number with no person identifier in it (see above). That covers a Postgres or Snowflake copy of the roster, an effective-dated HR history, and a stream with no primary key declared. It isn't served to restricted viewers at all, and isn't listed to their agent. To have a record stream served, declare its record number as the primary key.
- Grouping, filtering or narrowing by an organizational-directory column,
unless you marked that column
restricted_viewers: allowin the directory's recipe. Every directory column needs that, one by one. A column the recipe declares as a person's name, another person's name (name_of) or an identifier can never be allowed: the recipe is refused. Prism can't recognise a column that names people but isn't declared that way, so check what a column holds before you allow it (see the box below). Allowing a column such as a cost centre or a location lets restricted viewers break their line's activity down by it. Allowing a column that one of the directory's default filters reads also lets a restricted viewer's name lookup mark the people in their line that the filter leaves out. A default filter on a column you have not allowed marks no one for them. - Anything an automation asks. A scheduled automation runs with nobody asking, so while scoping is on its data questions are refused rather than answered for everyone.
Before you allow a directory column
If your organizational directory was registered before this release, its recipe may hold management-chain columns (a leader's name at each level, a manager's name) that it doesn't declare as naming a person. Prism can't tell those apart from a harmless column like a cost centre. Before turning scoping on:
- Open the directory on Admin → Context streams, and edit it on its Manifest tab.
- Give every column that holds another person's name a
name_of:naming the identifier column it labels (for examplename_of: management_chain_level_04_id), and give each of those identifier columns itsidentity, as the current roster recipe does. A name column with no identifier column to point at can't takename_of: mark itperson: true, which can never be allowed either, or simply never allow it. - Only then mark the columns you want restricted viewers to use
restricted_viewers: allow.
A column you allow without that check can show restricted viewers the names of people above them.
A definition you author over a directory value is a disclosure you choose to make: a restricted viewer asking by two such definitions sees how your chosen value divides their own line.
The assistant doesn't keep a long-term memory for restricted viewers, so it can't carry anything from one conversation into the next.
Answers run low, and say so
Anyone whose GitHub login, Jira account or email isn't linked to a person in
your organizational context stream falls out of every restricted answer. That
is the safe direction: an unplaced person is never counted as inside a line.
But it means "my organization" figures run low when the identity links are
thin. An answer from the semantic query or drill tool usually says so at the
top of its sources, in the words Scoped to your reporting line: N people, or
Scoped to your reporting line; this answer covers N people of it, followed by M rows couldn't be attributed when there are any. N is the number
of people the question covered within the line. M counts rows that involve the
line but name someone Prism can't place; people in the line whose own logins
aren't linked aren't in M either, so a small M doesn't prove the links are
complete.
Limit a shared dashboard to one leader's line
A super admin can limit a shared dashboard to the people in one leader's reporting line. Take Ruth, who leads Merchant. Sam, a super admin, limits the dashboard "Merchant delivery" to Ruth's line. Dana is a director under Ruth. The dashboard is in Dana's sidebar. Lee works in Banking, outside Ruth's line. Lee never sees the dashboard. If Lee opens its address, Prism says "This dashboard is not available", the same as for a dashboard that does not exist.
To set it:
- Open Admin → Context streams and go to Shared dashboards.
- Under the dashboard's title, press Change audience.
- Pick One leader's reporting line, type the leader's email address, and press Save audience. Type the address your organizational context stream holds for them.
- Prism checks the address against the directory first. If the directory cannot place the leader, Prism saves nothing and says why.
- The line under the title then says who sees the dashboard. For example: "Seen by the reporting line of [email protected]: 412 people." The count is the leader and everyone beneath them, at any depth.
To show it to everyone again, pick Everyone and press Save audience.
What to know:
- An audience limits who sees a dashboard. It never changes a number. Every tile still runs as the person who opens it, so Dana sees only her own line's figures.
- Super admins see every shared dashboard, so they can manage it. A super admin who previews someone sees what that person sees.
- Prism places a person by the address that places their answers: the Organization email on their App users row, else the address they sign in with. A person the directory cannot place sees no dashboard that has an audience. They still see the dashboards shared with everyone.
- If the leader leaves the organizational context stream, the line holds nobody. Only super admins see the dashboard, and the line under its title says it needs a new leader. Erasing a person's Prism history does not change an audience that names them.
- If Prism cannot check who is in a line, for example because the semantic query MCP is down or no organizational context stream is designated, only super admins see the dashboards that have an audience. A person sees no message about it. The line under the title tells the super admin. The line also says so when the semantic query MCP runs an older release than the App.
- Prism keeps each person's answer for one minute. A person moved out of a line can still see its dashboards for up to a minute. When a check fails, Prism waits ten seconds before it asks again for that person.
- An audience needs the organizational context stream and the semantic query MCP. It does not need viewer scoping on.
The organizational context stream now decides access
With scoping on, your organizational context stream stops being only a reporting input. It becomes who can see whom:
- whoever can replace or re-upload it can change every restricted viewer's line;
- an old roster uploaded again becomes the org chart again;
- a stream that stops updating grants yesterday's lines;
- it decides who sees a shared dashboard limited to a leader's line.
Designating and uploading it are super-admin-only. For a stream copied from a warehouse, whoever can change the source view changes every restricted viewer's line too, without touching Prism. Treat both as access changes, and keep the stream current.
When a restricted viewer is refused
Restricted viewers are answered by a separate assistant that can use only the
semantic query tools. Prism checks, at most every 60 seconds, that the
assistant hasn't been changed outside Prism, and that nothing outside a
restricted viewer's line could reach it. If a check fails, every restricted viewer gets the same refusal
until an administrator fixes it. Prism records each one as a scope_refused
event with its reason. The restricted agent is named after app.agentSlug with
-scoped added, so prism-scoped by default.
| The refusal says | What to do |
|---|---|
| this installation's agent runner doesn't yet pass who is asking | Upgrade the agent runner to this release's. |
| a knowledge base is linked to the restricted agent's workspace | Unlink it. A knowledge base there would reach every restricted viewer. |
| files have been added to the restricted agent's workspace | Remove them, for the same reason. |
an agent named prism-scoped (or your slug's) exists that Prism didn't create | Delete that agent in the agent runner; Prism then creates its own. |
the agent prism-scoped has been changed outside Prism | Delete it in the agent runner; Prism creates it afresh. |
| the agent runner did not turn off the restricted agent's long-term memory | Try again. If it persists, check the agent runner's logs: it accepted the setting but didn't apply it. |
| the data tool that restricts answers to a reporting line isn't attached | The app's MCP_PROFILES setting is missing its Semantic Query entry, which every install the chart renders has. Restore it. |
| it couldn't place its restricted agent in its own workspace | Try again shortly. |
| the restricted agent's workspace has instructions or a description | Clear them. They would reach every restricted viewer. |
| the restricted agent's workspace shares conversations between users | Turn sharing off for that workspace. |
| a workspace named … exists that Prism doesn't own | Remove or rename that workspace. |
| Prism couldn't check the agent runner just now | Wait and try again; check the runner is up if it persists. |
Re-own the shared agent covers the restricted agent too, and can clear its workspace.
Unrestricted viewers are not affected by any of these.
Turn it off
Set viewerScoping.enabled: false and upgrade. Every viewer sees everything
again. The per-viewer settings on the admin page are kept, and apply again if
you turn it back on. viewerScoping.default: reporting_line must go back to
unrestricted first; the chart refuses that combination with scoping off.