The app admin role
Prism has three roles.
- A user asks questions and sees their own history.
- A super admin asks questions and uses every Admin page.
- An app admin uses the Admin pages and cannot ask questions.
Give the app admin role to a person who runs Prism for others. For example, the person who keeps the context streams working. That person can test a stream, run its verification and read the self test. Prism does not let that person ask a question or read anyone's answers.
The role needs a sign-in front door: easyauth, iap or local. With no
front door, every request is the same operator, and that operator is a super
admin.
What an app admin can use
An app admin can use every Admin page except the ones listed in the next section. The pages show what they show a super admin, in full. That includes run logs, Test results, the self test report, verification figures, Usage and the audit log.
On App users, an app admin can:
- add a person with the
userrole; - deactivate, reactivate, reset, remove or erase a row that holds
user; - link or unlink the sign-in of a row that holds
user, and change its scope; - revoke the Router keys of a row that holds
user.
What an app admin cannot do
- Ask a question. That covers chat, a ticket, attachments and saved prompts. When an app admin opens Prism, Prism sends them to the Admin page.
- Read History. That covers every person's questions and answers, their own included.
- Read reports on the Answer feedback page.
- Use Stream setup. Stream setup is a conversation with an agent.
- Preview Prism as a named person.
- Change anyone's role, or add a person with any role except
user. - Change a row that holds
app_adminorsuper_admin, or their own row. - Add or change a row whose address is in
app.auth.superAdmins. A row decides the role, so auserrow there would remove a super admin. - Link a sign-in id that Prism knows belongs to any of the people in point 7 or point 8, revoke their Router keys by that id, or delete their runner conversations. Prism knows whose id it is when a row holds it, or when the person has signed in with it.
- Save or clear the per-person floor on App users. An app admin can read the floor.
A person whose address is in app.auth.superAdmins takes their sign-in id back
from every other active row when they sign in. So a link someone made to an
active row before their first sign-in does not lock them out. The Helm list
wins over an active row and does not undo a Deactivate, Reset or Erase. A
sign-in id held by a deactivated, reset or erased row is refused, as for any
other person. This holds while their own row is an active super admin row. The
audit log records each row that loses the id as auth_sub_cleared, by the
system.
App users does not offer these controls to an app admin. Preview as is hidden. On a row the role cannot change, each control says that a super admin makes the change. Usage shows no Answers link, and the audit log links to no feedback report.
Each refusal is a 403. Prism records it on the audit log.
Give a person the role
- A super admin opens App users.
- If the person has no row, the super admin adds one.
- The super admin sets the row's role to app admin.
Prism reads the role on each request, so the change applies to the person's
next page. A row on App users wins over app.auth.superAdmins. So an address
in that list becomes an app admin when its row says so.
Prism finds the role by the person's email address. If your sign-in proxy sends no address for a person, Prism may not find their row. Then the person is treated as any signed-in user.
Give the role from Entra ID
Under easyauth with the signed token verified, your identity provider can
give the role instead. You set one claim in the token that means "app admin".
We recommend an Entra app role, because the groups claim stops listing
groups for a person in more than 200 of them.
- In Entra ID, open the app registration of your sign-in proxy.
- Under App roles, create a role. For example, the value
Prism.AppAdmin. - Under Enterprise applications, assign that role to each person or group.
- Set the claim in the chart:
app:
identity:
easyauth:
token:
verify: true
appAdminClaim: roles=Prism.AppAdmin
The value is <claim>=<value>. A claim that holds a list, as roles and
groups do, matches when the list holds the value. The chart refuses
appAdminClaim without token.verify: true, because only the signed token can
be trusted to carry it. See Verify the signed ID token.
How the claim works:
- A person whose token carries the claim holds the role on that request. With
viewer scoping off, this holds even when Prism cannot read the datapond.
With viewer scoping on, a failed read stops the request first. An address
in
app.auth.superAdminsis the exception. See When Prism cannot read the datapond. - Their App users row follows the claim. When the claim appears, a
userrow becomesapp_admin. When the claim goes, the row goes back touser. That includes a row linked to their sign-in under another address. The audit log records each change asrole_changed, withsourceset toidp_claim. - A role that a super admin set on App users is left alone. So is a row the
chart made for an address in
app.auth.superAdmins. - A person whose token carries the claim is an app admin on each request,
also when a super admin set their row to
user. - If you add an address to
app.auth.superAdminsafter the claim changed its row, the next start makes that row a super admin. The chart does the same for a row made at a first sign-in. - The claim never makes anyone a super admin, and never changes a super admin.
An address in
app.auth.superAdminsstays a super admin while Prism cannot read the datapond, with the claim or without it.
Under email sign-in
Under local sign-in, a row on App users is what lets an address sign in. So
an app admin who adds a user row gives that mailbox a sign-in. This is
expected. The audit log records each add with the app admin's address.
When Prism cannot read the datapond
Prism reads the role from the datapond on each request. What happens when that read fails depends on viewer scoping.
- Viewer scoping on: Prism reads the role in the same read that tells it what
the person may see. When Prism cannot read App users, every person sees
"Prism could not look up what you have access to just now", except an
address in
app.auth.superAdmins. That address still opens the Admin pages, and cannot ask a question until the read works again. - Viewer scoping off: Prism reads the role on its own. If that read fails, or
takes longer than two seconds, Prism treats the person as a
user, as it does for a deactivated person. An app admin could then ask a question. Prism records each failed read as arole_uncheckedevent, at most once in ten minutes. Undereasyauthoriapsign-in, the self test's App users line warns for an hour after one.
What the role is for
The role keeps an administrator out of the question-and-answer pages. It does not stop a person who also has access to your cluster, the Secret or the datapond. Give cluster access with that in mind.