login to your server using SSH, switch to the Nextcloud document root and use the occ cmmand line tool to enable the user again, e.g. ./occ user:enable <username>.
I installed a new site with nextcloud but the new database doesn’t contain “oc_group_user” table,
Is there any other way to activate the accounts through the database?
root@nextcloud:~# sudo -u www-data php occ user:resetpassword admin_username
Could not open input file: occ
root@nextcloud:~# sudo -u www-data php /var/www/nextcloud/occ user:add --display-name=“ahmed” --group=“admin” ahmed
Could not open input file: /var/www/nextcloud/occ
I am trying to re-enable my admin user from shell but I get those errors where the occ file cant be found