Neos.Neos/Classes/Command/UserCommandController.php
public function showCommand($username, $authenticationProvider = null)
    {
        $user = $this->userService->getUser($username, $authenticationProvider);
        if (!$user instanceof User) {
            $this->outputLine('The username "%s" is not in use', [$username]);
            $this->quit(1);
        }

        $headerRow = ['Name', 'Email', 'Account(s)', 'Role(s)', 'Active'];
        $tableRows = [$this->getTableRowForUser($user)];

        $this->output->outputTable($tableRows, $headerRow);
    }
public function showCommand($username, $authenticationProvider = null)
    {
        $user = $this->userService->getUser($username, $authenticationProvider);
        if (!$user instanceof User) {
            $this->outputLine('The username "%s" is not in use', [$username]);
            $this->quit(1);
        }

        $headerRow = ['Name', 'Email', 'Account(s)', 'Role(s)', 'Active'];
        $tableRows = [$this->getTableRowForUser($user)];

        $this->output->outputTable($tableRows, $headerRow);
    }
public function showCommand ( $ username , $ authenticationProvider = null ) { $ user = $ this -> userService -> getUser ( $ username , $ authenticationProvider ) ; if ( ! $ user instanceof User ) { $ this -> outputLine ( 'The username "%s" is not in use' , [ $ username ] ) ; $ this -> quit ( 1 ) ; } $ headerRow = [ 'Name' , 'Email' , 'Account(s)' , 'Role(s)' , 'Active' ] ; $ tableRows = [ $ this -> getTableRowForUser ( $ user ) ] ; $ this -> output -> outputTable ( $ tableRows , $ headerRow ) ; }
Shows the given user

This command shows some basic details about the given user. If such a user does not exist, this command
will exit with a non-zero status code.

The user will be retrieved by looking for a Neos backend account with the given identifier (ie. the username)
and then retrieving the user which owns that account. If an authentication provider is specified, this command
will look for an account identified by "username" for that specific provider.

@param string $username The username of the user to show. Usually refers to the account identifier of the user's Neos backend account.
@param string $authenticationProvider Name of the authentication provider to use. Example: "Neos.Neos:Backend"
@return void
Shows the given user