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
In one of our Nextcloud 30.0.9 instances, Group Admins (Subadmins) are unable to access the API endpoint /ocs/v2.php/cloud/groups/detail, even though they are properly assigned to groups as Group Admins.
Only the local cloud admin is shown a group list.
The API call fails with the following message:
{"reqId":"G5n3o9gC6FWTImfZFCv4","level":0,"time":"2025-04-22T10:03:42+00:00","remoteAddr":"ip","user":"user_id","app":"no app in context","method":"GET","url":"/ocs/v2.php/cloud/groups/details?search=f&offset=0&limit=25","message":"The logged-in account must be an administrator, a subadministrator, or have special permissions to access this setting","
Steps to reproduce
Create a user and assign them as Group Admin (Subadmin) of at least one group.
Log in as this Group Admin.
Open developer tools in the browser or use curl to call
➡️ Note: This behavior occurs only on one of our environments. On a second, nearly identical setup, the same request as Group Admin works as expected.
I'm not sure what causes the difference. Same roles, same endpoint, same version (30.0.9). This could point to an inconsistent permission check or edge case.
Expected behavior
A user who is assigned as Group Admin for one or more groups should be able to query groups (at least for their own groups) via /ocs/v2.php/cloud/groups/detail.
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
{"reqId":"G5n3o9gC6FWTImfZFCv4","level":0,"time":"2025-04-22T10:03:42+00:00","remoteAddr":"ip","user":"user_id","app":"no app in context","method":"GET","url":"/ocs/v2.php/cloud/groups/details?search=f&offset=0&limit=25","message":"Das angemeldete Konto muss ein Administrator, ein Unteradministrator sein oder ein Sonderrecht haben, um auf diese Einstellung zuzugreifen","
Additional info
The text was updated successfully, but these errors were encountered:
joshtrichards
changed the title
[Bug]:
[Bug]: Group Admins (Subadmins) are unable to access the API endpoint /ocs/v2.php/cloud/groups/detail
Apr 23, 2025
I think I'm also impacted by this bug and as a side effect I think that it also block the creation of users because the "admin" group is forced. It was not the case before.
In my Nextcloud instance, I have :
one admin user
I create normal user that are admin of a group named with the same name of the user. So User1 is admin and part of group User1
When I'm connected with User1, I can't create users because the "admin" group is forced, and I can't remove it
And I have the same 403 on https://xxxxxx.com/ocs/v2.php/cloud/groups/details?search=&offset=0&limit=25
So I'm guessing the frontend is not able to retrieve the group list or the group the user is in, and so it forces "admin" but it block later because user is not admin.
Can it be related to #51336 ? I'm almost sure it's related to the last update, the issue is recent, I'm on Nextcloud 31.0.4 and the pull request I found was backported.
I'm not familiar with Nextcloud internals, but when checking the last commit log, #51336 seems to be a good candidate.
We're having the same issue as @madrzejewski since updating from 31.0.2 to 31.0.4 about a week ago. Whether the admin group automatically appears when creating a new account depends on which tab you're currently on. If you do it while looking at the deactivated users, it does not happen. Either way it's not possible to assign a group you administrate, leaving our group admins unable to correctly create new accounts.
Another thing I noticed is that when you're in the process of creating a new account, it's impossible to remove a group once you've added it. This is an issue for everyone, not just group admins. Removing a group when editing an existing account works fine. I'm not sure if this issue is related though.
Bug description
In one of our Nextcloud 30.0.9 instances, Group Admins (Subadmins) are unable to access the API endpoint
/ocs/v2.php/cloud/groups/detail
, even though they are properly assigned to groups as Group Admins.Only the local cloud admin is shown a group list.
The API call fails with the following message:
{"reqId":"G5n3o9gC6FWTImfZFCv4","level":0,"time":"2025-04-22T10:03:42+00:00","remoteAddr":"ip","user":"user_id","app":"no app in context","method":"GET","url":"/ocs/v2.php/cloud/groups/details?search=f&offset=0&limit=25","message":"The logged-in account must be an administrator, a subadministrator, or have special permissions to access this setting","
Steps to reproduce
➡️ Note: This behavior occurs only on one of our environments. On a second, nearly identical setup, the same request as Group Admin works as expected.
I'm not sure what causes the difference. Same roles, same endpoint, same version (30.0.9). This could point to an inconsistent permission check or edge case.
Expected behavior
A user who is assigned as Group Admin for one or more groups should be able to query groups (at least for their own groups) via
/ocs/v2.php/cloud/groups/detail
.Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
The text was updated successfully, but these errors were encountered: