Problem with users and groups (can not add new groups or edit existing users)

Nextcloud version ( 27.0.0):
Operating system and version (CentOS v7.9.2009):
Apache or nginx version (Apache 2.4.57): `
PHP version (8.2 PHP-FPM enabled):

The issue you are facing:

It was working before I Disabled all the apps there were used with Nextcloud since I was facing some errors and started adding the apps one by one to monitor the one with error… after I’m done everytime i try to add a new group nothing happens, also I can not modify user’s name, password (could not edit my own admin password)
I cleared the server cache, changed my browser, and restarted the server.

Is this the first time you’ve seen this error? (Y):

Steps to replicate it:

  1. from profile icon
  2. users
  3. add new group
    4- edit the users

The output of your Nextcloud log in Admin > Logging:

shows only when trying to edit users 
Error	ocs_api	Failed addUser attempt: User already exists.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => 'xxxx',
  'passwordsalt' => 'xxxxx',
  'secret' => 'xxxx',
  'trusted_domains' => 
  array (
    0 => '',
  'datadirectory' => '/home/xxx/public_html/nc/data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => '',
  'dbname' => 'xxx',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxx',
  'dbpassword' => 'xxxx',
  'installed' => true,
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'admin',
  'mail_domain' => '',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'xxxx',
  'mail_smtppassword' => 'xxxx',
  'mail_smtphost' => '',
  'mail_smtpport' => '465',
  'mail_smtpsecure' => 'ssl',
  'default_phone_region' => 'CH',
  'app_install_overwrite' => 
  array (
    0 => 'documentserver_community',

The output of your Apache/nginx/system log in /var/log/____:


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.


  • The inability to add a new group from the UI is a known issue with NC27. It’ll be fixed in v27.0.1. There are two alternatives for adding groups that do work. Search the forum.

  • Inability to modify user info: Make sure you’re clicking the icon at the end of the field when changing user information and not just the one at the end of the row (I think that’s right; don’t have it in front of me at the moment so going from memory).

  • Can you provide the full log entry/stack trace for user adding error? You can use the “Copy raw” option on the clipboard icon to the right of the entry in the UI to get it. Please mark it as preformatted text here.

Thank you for the kind reply,

I can add users but I can not edit any information after I do it, and it does not show any error in logs when I try.

All this did happen after I have disabled and removed all apps since I was getting some error messages ans wanted to know which app was creating it after re-addind the only apps I need the problem shows up.

also I just discovered that every user I add after this can not login says the username or password fails, this only triggers a warning in the logs and I can not change the password to know if its the problem or not.

and yes, I have modified the users before but its not working now

and the last error is not showing up

1- I could not delete the user from Mobile UI but I could in PC
2- after I deleted the user who could not loging and made a new account they were able to do it.

Warning no app in context


Login failed: xxxx (Remote IP: xxxx)

Warning core


Login failed: 'xxxx' (Remote IP: 'xxxx')