Skip to content

Allow to rename Collective for admins #1716

Closed

Description

@mgrundkoetter

Renaming an existing Collective is currently only allowd for the creator of the Collective, anyone else.

It would be nice if everyone configured as admin level user in this collective was able to rename the collective. Maybe I am missing some way to already do this right now, then I am grateful for tips how to do so.

Environment: Nextcloud Hub 9 (30.0.6)

Activity

  1. janbaum commented on Oct 12, 2025

    @janbaum

    @mejo-
    I think this actually belongs to https://github.com/nextcloud/circles

    If I understand it right, the circles app checks for permissions in circles/lib/FederatedItems/CircleEdit.php:78 the function verify() calls:

    $initiatorHelper->mustBeOwner();

    which inturn calls:
    $this->mustHaveLevelEqualOrAbove(9);

    This however is false for admins:

    	public function mustHaveLevelEqualOrAbove(int $level) {
    		if ($this->member->getLevel() < $level) {
    			throw new MemberLevelException('Insufficient rights');
    		}
    	}
    

    Should we move this to circles?

  2. mejo- commented on Oct 13, 2025

    @mejo-
    Member

    Great analysis @janbaum! Indeed the Teams app currently limits renaming of a team to the owner. I asked one of the maintainers whether they would be open to changing this.

    In any case, I would rather open a new issue against the Teams app instead of transferring this one, as even if gets fixed in Teams, we still need to adjust some code on our side.

    Another option would be to create an own API endpoint in Collectives for renaming a team and a renameCircle() function in our CircleHelper class by using startSuperSession().

  3. max-nextcloud commented on Oct 13, 2025

    @max-nextcloud
  4. mejo- commented on Oct 13, 2025

    @mejo-
    Member

    @max-nextcloud to my understanding, this issue is about renaming a collective as team member with admin role, not about admins of the Nextcloud instance. Currently this is only possible for the owner of the team, which is always just one person (either the one who created the team/collective, or the one who got the owner role inherited after the original owner left the team).

  5. janbaum commented on Oct 13, 2025

    @janbaum

    @mejo- @max-nextcloud I sat down and tried my luck a bit. I think I am very close, but standing infront of a problem:

    The circlesManager doesnt provide the function editName() from circles LocalController. If I understand it right we would have to do something like $this->circleService ... but this wasn't done before in CircleHelper so I was unsure what implications that would have, since the circlesManager will have it's reasons that it doesnt include this function, or?

    Anyways I will push my progress to my fork today, so maybe it's easier to discuss it if you see what i mean :)

  6. janbaum commented on Oct 13, 2025

    @janbaum

    Anyways I will push my progress to my fork today, so maybe it's easier to discuss it if you see what i mean :)

    https://github.com/janbaum/collectives/tree/fix/allow-admin-rename

  7. janbaum commented on Oct 29, 2025

    @janbaum

    I opened a PR in circles: nextcloud/circles#2190

  8. mejo- commented on Jan 22, 2026

    @mejo-
    Member

    @janbaum the PR in circles finally got merged 🎉

    So it should be easy to get this working in Collectives now.

  9. self-assigned this
    on Feb 11, 2026
  10. added 2 commits that reference this issue on Feb 11, 2026
    23d5f04
    fbef8b1
  11. janbaum commented on Mar 1, 2026

    @janbaum

    @janbaum the PR in circles finally got merged 🎉

    So it should be easy to get this working in Collectives now.

    As far as I can tell, it is already working (?)

  12. mejo- commented on Mar 2, 2026

    @mejo-
    Member

    As far as I can tell, it is already working (?)

    Yes, it got fixed in #2250 and the fix released with 3.6.0.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions