---
title: "Feature: Grant roles to single people in the Horilla import"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:feature-1793280219@main"
source: "Changelog/1.0.0/Feature-1793280219-GrantRolesToSinglePeopleInTheHorillaImport.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Feature: Grant roles to single people in the Horilla import {#feature-1793280219}

## Description {#description}

`roles.yaml` maps Horilla groups to roles, but some people need a role no group of theirs describes, for example
the second person in HR whose group must stay `employee` for its other members. They had to be given the role by
hand after every fresh import. The file now has an optional section `people` that maps a personnel number (the badge
id, or the number `personnel-numbers.csv` gives) to roles from `employee`, `hr` and `admin`. They are
granted on top of those of the groups, never removing one, when the account is created through `invite-users` or the
normal invitation. An unknown role stops the import as a broken mapping entry (`people.<personnel number>`). The new
stage `person-roles` writes nothing and lists every granted role with `roleGranted`; a personnel number no
employee has (`unknownPersonnelNumber`) or several have (`ambiguousPersonnelNumber`) is an error of the row and
grants nothing.

## Impact {#impact}

Only with `MIGRATION_ENABLED=1` and a `people` section in `roles.yaml`. Without it nothing changes. A second
run grants nothing twice, and a dry run writes nothing.
