@@ -33,11 +33,14 @@ protected function configure(): void {
3333 ->setDescription ('Get the mapping between users and object store buckets ' )
3434 ->addOption ('bucket ' , 'b ' , InputOption::VALUE_REQUIRED , 'Only list users using the specified bucket ' )
3535 ->addOption ('object-store ' , 'o ' , InputOption::VALUE_REQUIRED , 'Only list users using the specified object store configuration ' )
36- ->addOption ('user ' , 'u ' , InputOption::VALUE_REQUIRED , 'Only show the mapping for the specified user, ignores all other options ' );
36+ ->addOption ('user ' , 'u ' , InputOption::VALUE_REQUIRED , 'Only show the mapping for the specified user, ignores all other options ' )
37+ ->addOption ('all ' , 'a ' , InputOption::VALUE_NONE , 'Show the mapping for all users ' );
3738 }
3839
3940 public function execute (InputInterface $ input , OutputInterface $ output ): int {
40- if ($ userId = $ input ->getOption ('user ' )) {
41+ if ($ input ->getOption ('all ' )) {
42+ $ users = $ this ->userManager ->getSeenUsers ();
43+ } elseif ($ userId = $ input ->getOption ('user ' )) {
4144 $ user = $ this ->userManager ->get ($ userId );
4245 if (!$ user ) {
4346 $ output ->writeln ("<error>User $ userId not found</error> " );
@@ -57,7 +60,7 @@ public function execute(InputInterface $input, OutputInterface $output): int {
5760 $ this ->config ->getUsersForUserValue ('homeobjectstore ' , 'objectstore ' , $ objectStore )
5861 ));
5962 } else {
60- $ users = $ this -> userManager -> getSeenUsers () ;
63+ return 0 ;
6164 }
6265 }
6366
0 commit comments