Neos\Neos\Command\UserCommandController::showCommand PHP Method

showCommand() public method

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.
public showCommand ( string $username, string $authenticationProvider = null ) : void
$username string The username of the user to show. Usually refers to the account identifier of the user's Neos backend account.
$authenticationProvider string Name of the authentication provider to use. Example: "Typo3BackendProvider"
return void
    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', array($username));
            $this->quit(1);
        }
        $headerRow = array('Name', 'Email', 'Account(s)', 'Role(s)', 'Active');
        $tableRows = array($this->getTableRowForUser($user));
        $this->output->outputTable($tableRows, $headerRow);
    }