Ability to query user based on roles
For application that need to be able to manage users via a custom web interface the current implementation of TYPO3\FLOW3\Security\Policy\Roles being serialized and stored within the TYPO3\FLOW3\Security\Account tables when persisted to the database. The issue is that the roles are duplicated within the database since each user has their own copy (Which of course is not huge problem) but there is no way of querying a group of users that have a certain role.
It would be nice to be able to use something like this to find users by role:
$accounts = $this->accountRepository->findByRole('FINANCE_ROLE');
And obtain either an array or QueryResult.