Skip to content

enh(occ): make it possible to add an arbitrary number of users to a g…#59271

Draft
blizzz wants to merge 1 commit intomasterfrom
feat/occ-group-add-user-batch
Draft

enh(occ): make it possible to add an arbitrary number of users to a g…#59271
blizzz wants to merge 1 commit intomasterfrom
feat/occ-group-add-user-batch

Conversation

@blizzz
Copy link
Copy Markdown
Member

@blizzz blizzz commented Mar 28, 2026

…roup

Summary

Allows to provide an arbitrary number of users to the group:adduser command, e.g.

occ group:adduser "Team 42" alice bob carmen

Still works with one :)

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

…roup

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz blizzz added this to the Nextcloud 34 milestone Mar 28, 2026
@blizzz blizzz added enhancement 2. developing Work in progress labels Mar 28, 2026
$user = $this->userManager->get($userId);
if (is_null($user)) {
$output->writeln('<error>user ' . $userId . ' not found</error>');
return 1;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe better not stop, but return the 1 after processing the full list if there was someone not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant