AfterBackendGroupFilterListIsAssembledEvent
New in version 14.0
A list of user groups can be used to filter the users list in the backend module.
The PSR-14 event
\TYPO3\
is dispatched right after this list is assembled and makes it possible to modify it.
Note
This is a sensitive area in terms of security. Please ensure that you are not introducing any breach of security when using this event, for example, by revealing restricted information.
Example: Remove the last group from the group filter
EXT:my_extension/Classes/Backend/EventListener/MyEventListener.php
<?php
declare(strict_types=1);
namespace MyVendor\MyExtension\Backend\EventListener;
use TYPO3\CMS\Beuser\Event\AfterBackendGroupFilterListIsAssembledEvent;
use TYPO3\CMS\Core\Attribute\AsEventListener;
final readonly class MyEventListener
{
#[AsEventListener]
public function __invoke(AfterBackendGroupFilterListIsAssembledEvent $event): void
{
array_pop($event->backendGroups);
}
}