Roles

Who is what in each application: set on Checkin, sent in the tokens, mapped by the application.

Checkin does not decide what a person may do inside an application: it tells the application which roles the person has there, and the application maps them onto its own.

  1. On Checkin — Administration → Applications → the application → Roles: the default roles (for everyone without roles of their own there) and the roles of each person, comma separated (admin, or pm, billing).
  2. In the tokens — an application that asks for the roles scope finds them in the roles claim of the ID token and of UserInfo: "roles": ["admin"].
An application on Checkin: who can sign in, its default roles and the roles of each person
  1. In the application — a product of the family: Single sign-on → Checkin → Role claim roles, one rule per value, a default role for everyone else, and Keep roles in sync to apply them at every sign-in (the last administrator is never demoted). Or in its .env: SSO_OIDC_ROLE_CLAIM=roles, SSO_OIDC_ROLE_MAP="admin=admin,member=member", SSO_OIDC_SYNC_ROLES=true. Any other client maps a claim onto its roles its own way (Grafana: role_attribute_path = contains(roles[*], 'admin') && 'Admin' || 'Viewer').
ProductIts rolesRole map
Studioadmin, pm, dev, clientadmin=admin,pm=pm,dev=dev,client=client
Boogleadmin, memberadmin=admin,member=member
IndieStatsadmin, base (only the sites assigned)admin=admin,base=base
Newsletteradministrator, manager, editoradmin=administrator,manager=manager,editor=editor
Hackly, Johnnynone: whoever signs in administers— (use Assigned people only on Checkin)