You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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');
}
}
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().
@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).
@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 :)
Activity
janbaum commentedon Oct 12, 2025
@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:78the functionverify()calls:$initiatorHelper->mustBeOwner();which inturn calls:
$this->mustHaveLevelEqualOrAbove(9);This however is false for admins:
Should we move this to circles?
mejo- commentedon Oct 13, 2025
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 ourCircleHelperclass by usingstartSuperSession().max-nextcloud commentedon Oct 13, 2025
mejo- commentedon Oct 13, 2025
@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).
janbaum commentedon Oct 13, 2025
@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 circlesLocalController. If I understand it right we would have to do something like$this->circleService ...but this wasn't done before inCircleHelperso I was unsure what implications that would have, since thecirclesManagerwill 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 :)
janbaum commentedon Oct 13, 2025
https://github.com/janbaum/collectives/tree/fix/allow-admin-rename
janbaum commentedon Oct 29, 2025
I opened a PR in circles: nextcloud/circles#2190
mejo- commentedon Jan 22, 2026
@janbaum the PR in circles finally got merged 🎉
So it should be easy to get this working in Collectives now.
fix(CollectiveSettings): allow to rename a collective as admin
fix(CollectiveSettings): allow to rename a collective as admin
janbaum commentedon Mar 1, 2026
As far as I can tell, it is already working (?)
mejo- commentedon Mar 2, 2026
Yes, it got fixed in #2250 and the fix released with 3.6.0.