‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent Class Reference

Public Member Functions

 __construct (private readonly string $sourceDatabaseTable, private array $groups, private readonly array $originalGroupIds, private readonly array $userData)
string getSourceDatabaseTable ()
 getGroups ()
 setGroups (array $groups)
 getOriginalGroupIds ()
 getUserData ()

Detailed Description

Event fired after user groups have been resolved for a specific user

Definition at line 23 of file AfterGroupsResolvedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::__construct ( private readonly string  $sourceDatabaseTable,
private array  $groups,
private readonly array  $originalGroupIds,
private readonly array  $userData 

Definition at line 25 of file AfterGroupsResolvedEvent.php.

Member Function Documentation

◆ getGroups()

TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::getGroups ( )

List of group records including sub groups as resolved by core.

Note order is important: A user with main groups "1,2", where 1 has sub group 3, results in "3,1,2" as record list array - sub groups are listed before the group that includes the sub group.

Definition at line 47 of file AfterGroupsResolvedEvent.php.

◆ getOriginalGroupIds()

TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::getOriginalGroupIds ( )

List of group uids directly attached to the user

Definition at line 63 of file AfterGroupsResolvedEvent.php.

◆ getSourceDatabaseTable()

string TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::getSourceDatabaseTable ( )
‪string 'be_groups' or 'fe_groups' depending on context.

Definition at line 35 of file AfterGroupsResolvedEvent.php.

◆ getUserData()

TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::getUserData ( )

Full user record with all fields

Definition at line 71 of file AfterGroupsResolvedEvent.php.

◆ setGroups()

TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::setGroups ( array  $groups)

List of group records as manipulated by the event.

Definition at line 55 of file AfterGroupsResolvedEvent.php.