Beantragt
Operation

Accounts and roles

How staff accounts get access: membership in a municipality or department, roles for casework and form administration (Fachadministration), invitations.

Staff accounts

Staff accounts and the casework role (case_worker, Sachbearbeitung) are created and assigned in the Drupal administration. Sign-in uses a one-time code by email.

For an unknown address, sign-in with an email code creates an account without a staff role (setting auto_register, enabled as shipped). An account created through SSO does not receive a staff role either. An existing staff account is not linked to an SSO identity automatically by its email address.

Municipality and departments

An installation contains one or more municipalities. Each municipality is divided into departments (Dienststellen). Forms and applications belong to a department or to the municipality. Accounts gain access through a membership in the municipality or in a department. A membership is either a regular membership or an admin membership. Memberships are created in the Drupal group administration at /admin/group, through an invitation or, for the Fachadministration, with the Drush command below.

Casework

An account with the casework role and a regular membership in a department opens and edits the applications of that department. This covers status, deadlines, assignment and decision notices. An admin membership is not required for this. A membership in the municipality alone opens no applications. Applications assigned directly to the municipality rather than to a department are opened by the Fachadministration of the municipality.

Fachadministration

The Fachadministration manages forms, decision templates and the settings of its area. It consists of the role department_admin and an admin membership.

Admin membershipArea
Municipalitythe municipality and all its departments, including municipality-wide forms
Departmentthis department only

Departments can thus be administered decentrally: the Fachadministration of a department maintains the forms of that department. The Drush command beantragt:fachadmin:grant grants this access to an existing account. Without a department, it applies to the whole municipality.

docker compose exec drupal sh /opt/selfhost/start-drupal.sh \
  drush beantragt:fachadmin:grant person@example.org musterstadt citizen-services

Invitations

An invitation creates no account and grants no installation-wide role. It makes an existing account a member of the municipality or of a department once the account is signed in with the invited address and accepts the invitation. As shipped, an invitation grants a regular membership, not an admin membership.

Invitations are sent by an account with the additional role workspace_inviter, whose scope is limited to one municipality in the account. In the example municipality, verwaltung@example.invalid has this role for Musterstadt. In the interface, the invitation form is located in the settings of the municipality or the department. Links in invitation emails require a valid frontend_base_url, which the installer takes from UI_PUBLIC_URL.

A staff management interface is part of the Pro-Dashboard. The open casework contains no member management.

Sample accounts in Musterstadt

AccountRoleMembership
verwaltung@example.invaliddepartment_adminAdmin of the municipality of Musterstadt
stadtkasse@example.invalid, citizen-services@example.invalid and the other department accountscase_workerRegular membership in the respective department
buerger@example.invalidNo staff roleNone