Groups cannot be deleted from "Group admin for"

Nextcloud version: 20.0.0
Operating system and version: Ubuntu 20.04
Server version: Apache/2.4.41 (Ubuntu)
Server built: 2020-08-12T19:46:17
PHP Version: 7.4.3 (cli) (built: May 26 2020 12:24:22) ( NTS )
Zend Engine v3.4.0, Copyright © Zend Technologies

If you want to delete existing entries in the “Group Admin for” field for an authorization group, the following error occurs when you click on the checkbox.
Directly on the page the error “An error occured during the request. Unable to proceed” is displayed.

Steps

  1. Adding the group “HSK-A” in “Group Admin for”
  2. After clicking on the check mark at the group “HSK-A” the error occurs and the group is not deleted from the field.

The output of your config.php file in /var/www/nextcloud/config:
$CONFIG = array (
‘instanceid’ => ‘xxxxxx’,
‘passwordsalt’ => ‘xxxxxx’,
‘secret’ => ‘xxxxx’,
‘trusted_domains’ =>
array (
0 => ‘scu-cloud.de’,
),
‘datadirectory’ => ‘/var/www/nextcloud/data’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘20.0.0.9’,
‘overwrite.cli.url’ => ‘http://scu-cloud.de’,
‘dbname’ => ‘xxxxxxx’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘mysql.utf8mb4’ => true,
‘dbuser’ => ‘xxxxxx’,
‘dbpassword’ => ‘xxxxxx’,
‘installed’ => true,
‘mail_from_address’ => ‘xxxx’,
‘mail_smtpmode’ => ‘smtp’,
‘mail_sendmailmode’ => ‘smtp’,
‘mail_domain’ => ‘xxxxxx’,
‘mail_smtpauthtype’ => ‘LOGIN’,
‘mail_smtpauth’ => 1,
‘mail_smtphost’ => ‘xxxxx’,
‘mail_smtpname’ => ‘xxxxx’,
‘mail_smtppassword’ => ‘xxxxx’,
‘mail_smtpport’ => ‘25’,
‘mail_smtpsecure’ => ‘tls’,
);

This error appears in the log:
Exception: Argument 2 passed to OCA\Provisioning_API\Controller\UsersController::removeSubAdmin() must be of the type string, null given, called in /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php on line 169
/var/www/nextcloud/lib/private/AppFramework/App.php - line 152:

OC\AppFramework\Http\Dispatcher->dispatch()

/var/www/nextcloud/lib/private/Route/Router.php - line 308:

OC\AppFramework\App::main()

/var/www/nextcloud/ocs/v1.php - line 88:

OC\Route\Router->match()

/var/www/nextcloud/ocs/v2.php - line 24:

require_once("/var/www/nextcloud/ocs/v1.php")

Caused by TypeError: Argument 2 passed to OCA\Provisioning_API\Controller\UsersController::removeSubAdmin() must be of the type string, null given, called in /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php on line 169

/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:

OCA\Provisioning_API\Controller\UsersController->removeSubAdmin()

/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:

OC\AppFramework\Http\Dispatcher->executeController()

/var/www/nextcloud/lib/private/AppFramework/App.php - line 152:

OC\AppFramework\Http\Dispatcher->dispatch()

/var/www/nextcloud/lib/private/Route/Router.php - line 308:

OC\AppFramework\App::main()

/var/www/nextcloud/ocs/v1.php - line 88:

OC\Route\Router->match()

/var/www/nextcloud/ocs/v2.php - line 24:

require_once("/var/www/nextcloud/ocs/v1.php")

Can you help me?
Thank you
Greets Mic

Yes. Please help.
Browser console log
xhr.js:184 DELETE https://xxx/ocs/v2.php/cloud/users/userid/subadmins 404 (Not Found)

Hi,
here ist the browser console log. I’ve replaced my real UserId with “MyUser”.

xhr.js:184 DELETE https://scu-cloud.de/ocs/v2.php/cloud/users/MyUser/groups 404 (Not Found)
(anonymous) @ xhr.js:184
t.exports @ xhr.js:13
t.exports @ dispatchRequest.js:50
Promise.then (async)
c.request @ Axios.js:61
r.forEach.c. @ Axios.js:76
(anonymous) @ bind.js:9
he @ api.js:79
(anonymous) @ users.js:358
Promise.then (async)
removeUserGroup @ users.js:357
(anonymous) @ vuex.esm.js:847
f.dispatch @ vuex.esm.js:512
dispatch @ vuex.esm.js:402
(anonymous) @ UserRow.vue:543
l @ runtime.js:63
(anonymous) @ runtime.js:293
(anonymous) @ runtime.js:118
I @ vue-settings-users-d0f700c33b614b07a2ad.js?v=b77b4ade2614f8feec90:1
r @ vue-settings-users-d0f700c33b614b07a2ad.js?v=b77b4ade2614f8feec90:1
(anonymous) @ vue-settings-users-d0f700c33b614b07a2ad.js?v=b77b4ade2614f8feec90:1
(anonymous) @ vue-settings-users-d0f700c33b614b07a2ad.js?v=b77b4ade2614f8feec90:1
removeUserGroup @ UserRow.vue:533
zt @ vue.runtime.esm.js:1854
n @ vue.runtime.esm.js:2179
zt @ vue.runtime.esm.js:1854
t.$emit @ vue.runtime.esm.js:3888
removeElement @ vue-multiselect.min.js:1
select @ vue-multiselect.min.js:1
click @ vue-multiselect.min.js:1
zt @ vue.runtime.esm.js:1854
n @ vue.runtime.esm.js:2179
i._wrapper @ vue.runtime.esm.js:6917
index.js:43 {…}apps: (…)oc: (…)route: (…)settings: (…)users: (…)ob: xt {value: {…}, dep: ft, vmCount: 0}get apps: ƒ ()set apps: ƒ (e)get oc: ƒ ()set oc: ƒ (e)get route: ƒ ()set route: ƒ (e)get settings: ƒ ()set settings: ƒ (e)get users: ƒ ()set users: ƒ (e)proto: constructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()defineGetter: ƒ defineGetter()defineSetter: ƒ defineSetter()lookupGetter: ƒ lookupGetter()lookupSetter: ƒ lookupSetter()get proto: ƒ proto()set proto: ƒ proto() {userid: “MyUser”, error: Error: Request failed with status code 404
at t.exports (https://scu-cloud.de/apps/settings/js/…}error: Error: Request failed with status code 404
at t.exports (https://scu-cloud.de/apps/settings/js/vue-settings-apps-users-management.js?v=31560faa-12:1:121585)
at t.exports (https://scu-cloud.de/apps/settings/js/vue-settings-apps-users-management.js?v=31560faa-12:1:188150)
at XMLHttpRequest.d.onreadystatechange (https://scu-cloud.de/apps/settings/js/vue-settings-apps-users-management.js?v=31560faa-12:1:120450)config: {url: “https://scu-cloud.de/ocs/v2.php/cloud/users/MyUser/groups”, method: “delete”, headers: {…}, transformRequest: Array(1), transformResponse: Array(1), …}isAxiosError: truerequest: XMLHttpRequest {readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, onreadystatechange: ƒ, …}response: {data: “<?xml version="1.0"?>↵↵ ↵ fail…on-services.↵↵ ↵ ↵↵”, status: 404, statusText: “Not Found”, headers: {…}, config: {…}, …}toJSON: ƒ ()message: "Request failed with status code 404"stack: "Error: Request failed with status code 404↵ at t.exports (https://scu-cloud.de/apps/settings/js/vue-settings-apps-users-management.js?v=31560faa-12:1:121585)↵ at t.exports (https://scu-cloud.de/apps/settings/js/vue-settings-apps-users-management.js?v=31560faa-12:1:188150)↵ at XMLHttpRequest.d.onreadystatechange (https://scu-cloud.de/apps/settings/js/vue-settings-apps-users-management.js?v=31560faa-12:1:120450)"proto: constructor: ƒ Error()message: ""name: "Error"toString: ƒ toString()proto: Objectuserid: "MyUser"proto: constructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()defineGetter: ƒ defineGetter()defineSetter: ƒ defineSetter()lookupGetter: ƒ lookupGetter()lookupSetter: ƒ lookupSetter()get proto: ƒ proto()set proto: ƒ proto()
API_FAILURE @ index.js:43
(anonymous) @ vuex.esm.js:840
(anonymous) @ vuex.esm.js:462
(anonymous) @ vuex.esm.js:461
f._withCommit @ vuex.esm.js:620
f.commit @ vuex.esm.js:460
commit @ vuex.esm.js:405
(anonymous) @ users.js:362
Promise.catch (async)
removeUserGroup @ users.js:361
(anonymous) @ vuex.esm.js:847
f.dispatch @ vuex.esm.js:512
dispatch @ vuex.esm.js:402
(anonymous) @ UserRow.vue:543
l @ runtime.js:63
(anonymous) @ runtime.js:293
(anonymous) @ runtime.js:118
I @ vue-settings-users-d0f700c33b614b07a2ad.js?v=b77b4ade2614f8feec90:1
r @ vue-settings-users-d0f700c33b614b07a2ad.js?v=b77b4ade2614f8feec90:1
(anonymous) @ vue-settings-users-d0f700c33b614b07a2ad.js?v=b77b4ade2614f8feec90:1
(anonymous) @ vue-settings-users-d0f700c33b614b07a2ad.js?v=b77b4ade2614f8feec90:1
removeUserGroup @ UserRow.vue:533
zt @ vue.runtime.esm.js:1854
n @ vue.runtime.esm.js:2179
zt @ vue.runtime.esm.js:1854
t.$emit @ vue.runtime.esm.js:3888
removeElement @ vue-multiselect.min.js:1
select @ vue-multiselect.min.js:1
click @ vue-multiselect.min.js:1
zt @ vue.runtime.esm.js:1854
n @ vue.runtime.esm.js:2179
i._wrapper @ vue.runtime.esm.js:6917