Occ:user setting to set email's account

Support intro

Using CLI to set email value for local backend account’s type not working.

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 19
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian Buster
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.59
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx 1.26.3
  • PHP version (e.g, 8.3):
    • 7.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • No
  • When did this problem seem to first start?
    • Always with this version
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • bare metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Yes

Summary of the issue you are facing:

Cannot set an email for an account from cli.

Steps to replicate it (hint: details matter!):

  1. occ user:info UID
  2. occ user:setting UID “” email “courriel@mail.xyz”
  3. occ user:info UID

Log entries

{"reqId":"IBfpXvlusg2fxlaWIv7U","level":3,"time":"2025-04-18T00:11:58+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/vhosts/ticunivers.com/nuage.ticunivers.com/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"19.0.13.1"}
{"reqId":"fTHZifpUWvCeULGvDsnn","level":3,"time":"2025-04-18T00:12:10+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/vhosts/ticunivers.com/nuage.ticunivers.com/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"19.0.13.1"}
{"reqId":"lZogCtBmssgSEfrVIsHM","level":3,"time":"2025-04-18T00:12:18+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/vhosts/ticunivers.com/nuage.ticunivers.com/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"19.0.13.1"}
{"reqId":"ScmA5r9DyUxdYEM4zhvZ","level":3,"time":"2025-04-18T00:28:19+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/vhosts/ticunivers.com/nuage.ticunivers.com/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"19.0.13.1"}
{"reqId":"XvsNvD1GShFwlQRuKs9K","level":3,"time":"2025-04-18T00:32:07+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/vhosts/ticunivers.com/nuage.ticunivers.com/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"19.0.13.1"}
{"reqId":"Zl1yJLSp4RWz4i1IuuSB","level":3,"time":"2025-04-18T00:33:06+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/vhosts/ticunivers.com/nuage.ticunivers.com/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"19.0.13.1"}
{"reqId":"SDNwZuDuv9SLYkmXczrY","level":3,"time":"2025-04-18T00:33:13+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/vhosts/ticunivers.com/nuage.ticunivers.com/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"19.0.13.1"}
{"reqId":"5wOcXXxtDTfE9gPWLemP","level":3,"time":"2025-04-18T00:33:36+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/vhosts/ticunivers.com/nuage.ticunivers.com/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"19.0.13.1"}
{"reqId":"tPXVDHxOEvuKgRdiNc6Q","level":3,"time":"2025-04-18T00:34:30+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/vhosts/ticunivers.com/nuage.ticunivers.com/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"19.0.13.1"}
{"reqId":"YkqCqkKXGxteJWPO9LmO","level":3,"time":"2025-04-18T00:34:52+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/vhosts/ticunivers.com/nuage.ticunivers.com/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"19.0.13.1"}

Web server / Reverse Proxy

165.225.205.33 - - [16/Apr/2025:07:44:01 +0000] "GET /core/l10n/fr.js?v=96d81b8f-2 HTTP/2.0" 200 16788 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
165.225.205.33 - - [16/Apr/2025:07:44:01 +0000] "GET /apps/files_sharing/l10n/fr.js?v=96d81b8f-2 HTTP/2.0" 200 5073 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
165.225.205.33 - - [16/Apr/2025:07:44:01 +0000] "GET /apps/files_sharing/js/dist/main.js?v=96d81b8f-2 HTTP/2.0" 200 556 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
165.225.205.33 - - [16/Apr/2025:07:44:01 +0000] "GET /apps/files_videoplayer/js/main.js?v=96d81b8f-2 HTTP/2.0" 200 2472 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
165.225.205.33 - - [16/Apr/2025:07:44:01 +0000] "GET /apps/files_pdfviewer/js/previewplugin.js?v=96d81b8f-2 HTTP/2.0" 200 1997 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
165.225.205.33 - - [16/Apr/2025:07:44:02 +0000] "GET /core/search/js/searchprovider.js?v=96d81b8f-2 HTTP/2.0" 200 3414 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
165.225.205.33 - - [16/Apr/2025:07:44:02 +0000] "GET /core/js/files/fileinfo.js?v=96d81b8f-2 HTTP/2.0" 200 809 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
165.225.205.33 - - [16/Apr/2025:07:44:02 +0000] "GET /core/js/files/client.js?v=96d81b8f-2 HTTP/2.0" 200 5387 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
165.225.205.33 - - [16/Apr/2025:07:44:02 +0000] "GET /core/js/dist/login.js?v=96d81b8f-2 HTTP/2.0" 200 210832 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
165.225.205.33 - - [16/Apr/2025:07:44:03 +0000] "GET /core/img/loading-dark.gif HTTP/2.0" 200 4683 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"

Configuration

{
   "system": {
       "instanceid": "***REMOVED SENSITIVE VALUE***",
       "passwordsalt": "***REMOVED SENSITIVE VALUE***",
       "secret": "***REMOVED SENSITIVE VALUE***",
       "trusted_domains": [
           "nuage.ticunivers.com"
       ],
       "datadirectory": "***REMOVED SENSITIVE VALUE***",
       "dbtype": "mysql",
       "version": "19.0.13.1",
       "overwrite.cli.url": "https:\/\/nuage.ticunivers.com",
       "dbname": "***REMOVED SENSITIVE VALUE***",
       "dbhost": "***REMOVED SENSITIVE VALUE***",
       "dbport": "",
       "dbtableprefix": "oc_",
       "mysql.utf8mb4": true,
       "dbuser": "***REMOVED SENSITIVE VALUE***",
       "dbpassword": "***REMOVED SENSITIVE VALUE***",
       "installed": true,
       "mail_smtpmode": "smtp",
       "mail_smtpsecure": "ssl",
       "mail_sendmailmode": "smtp",
       "mail_from_address": "***REMOVED SENSITIVE VALUE***",
       "mail_domain": "***REMOVED SENSITIVE VALUE***",
       "mail_smtpauthtype": "LOGIN",
       "mail_smtpauth": 1,
       "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
       "mail_smtpport": "465",
       "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
       "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
   }
}

Apps

Enabled:
  - accessibility: 1.5.0
  - activity: 2.12.1
  - admin_audit: 1.9.0
  - announcementcenter: 3.8.1
  - auto_groups: 1.5.1
  - bruteforcesettings: 2.2.0
  - calendar: 2.0.5
  - checksum_api: 0.1.2
  - cloud_federation_api: 1.2.0
  - comments: 1.9.0
  - contacts: 3.5.1
  - contactsinteraction: 1.0.0
  - dav: 1.15.0
  - federatedfilesharing: 1.9.0
  - federation: 1.9.0
  - files: 1.14.0
  - files_accesscontrol: 1.9.3
  - files_downloadactivity: 1.8.0
  - files_pdfviewer: 1.8.0
  - files_rightclick: 0.16.0
  - files_sharing: 1.11.0
  - files_trackdownloads: 1.8.0
  - files_trashbin: 1.9.0
  - files_versions: 1.12.0
  - files_videoplayer: 1.8.0
  - firstrunwizard: 2.8.0
  - flowupload: 1.1.2
  - groupfolders: 7.1.3
  - logreader: 2.4.0
  - lookup_server_connector: 1.7.0
  - music: 1.11.0
  - nextcloud_announcements: 1.8.0
  - notifications: 2.7.0
  - oauth2: 1.7.0
  - password_policy: 1.9.1
  - photos: 1.1.0
  - privacy: 1.3.0
  - provisioning_api: 1.9.0
  - quota_warning: 1.8.0
  - ransomware_protection: 1.7.1
  - recommendations: 0.7.0
  - serverinfo: 1.9.0
  - settings: 1.1.0
  - sharebymail: 1.9.0
  - socialsharing_email: 2.4.0
  - support: 1.2.1
  - survey_client: 1.7.0
  - systemtags: 1.9.0
  - tasks: 0.13.6
  - terms_of_service: 1.5.2
  - text: 3.0.1
  - theming: 1.10.0
  - twofactor_backupcodes: 1.8.0
  - unsplash: 1.2.5
  - updatenotification: 1.9.0
  - user_usage_report: 1.3.3
  - viewer: 1.3.0
  - workflowengine: 2.1.0
Disabled:
  - encryption
  - files_external
  - user_ldap

At first I would install the missing PHP module to make sure the issue isn’t a side effect.

Step 2 looks wrong to me, it should be:

occ user:setting layla settings email "new-layla@example.tld"

Nextcloud 19.0.13.1 is end-of-life since 2021-06. You need to upgrade your installation.