Skip to main content

The app admin role

Prism has three roles.

  1. A user asks questions and sees their own history.
  2. A super admin asks questions and uses every Admin page.
  3. 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:

  1. add a person with the user role;
  2. deactivate, reactivate, reset, remove or erase a row that holds user;
  3. link or unlink the sign-in of a row that holds user, and change its scope;
  4. revoke the Router keys of a row that holds user.

What an app admin cannot do​

  1. 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.
  2. Read History. That covers every person's questions and answers, their own included.
  3. Read reports on the Answer feedback page.
  4. Use Stream setup. Stream setup is a conversation with an agent.
  5. Preview Prism as a named person.
  6. Change anyone's role, or add a person with any role except user.
  7. Change a row that holds app_admin or super_admin, or their own row.
  8. Add or change a row whose address is in app.auth.superAdmins. A row decides the role, so a user row there would remove a super admin.
  9. 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.
  10. 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​

  1. A super admin opens App users.
  2. If the person has no row, the super admin adds one.
  3. 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.

  1. In Entra ID, open the app registration of your sign-in proxy.
  2. Under App roles, create a role. For example, the value Prism.AppAdmin.
  3. Under Enterprise applications, assign that role to each person or group.
  4. 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:

  1. 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.superAdmins is the exception. See When Prism cannot read the datapond.
  2. Their App users row follows the claim. When the claim appears, a user row becomes app_admin. When the claim goes, the row goes back to user. That includes a row linked to their sign-in under another address. The audit log records each change as role_changed, with source set to idp_claim.
  3. 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.
  4. A person whose token carries the claim is an app admin on each request, also when a super admin set their row to user.
  5. If you add an address to app.auth.superAdmins after 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.
  6. The claim never makes anyone a super admin, and never changes a super admin. An address in app.auth.superAdmins stays 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.

  1. 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.
  2. 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 a role_unchecked event, at most once in ten minutes. Under easyauth or iap sign-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.