Neos\Neos\Domain\Service\UserService::getUsers PHP Method

getUsers() public method

Retrieves a list of all existing users
public getUsers ( ) : array
return array
    public function getUsers()
    {
        return $this->userRepository->findAll();
    }

Usage Example

 /**
  * List all users
  *
  * This command lists all existing Neos users.
  *
  * @return void
  */
 public function listCommand()
 {
     $users = $this->userService->getUsers();
     $tableRows = array();
     $headerRow = array('Name', 'Email', 'Account(s)', 'Role(s)', 'Active');
     foreach ($users as $user) {
         $tableRows[] = $this->getTableRowForUser($user);
     }
     $this->output->outputTable($tableRows, $headerRow);
 }
All Usage Examples Of Neos\Neos\Domain\Service\UserService::getUsers