How to disable the creation of the contact Leon Green on new accounts

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 33.0.3
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 13
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.67
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Caddy v2.11.3
  • PHP version (e.g, 8.3):
    • 8.3.31
  • Is this the first time you’ve seen this error? (Yes / No):
    • it is not an error but very inconvenient
  • When did this problem seem to first start?
    • since i installed it on 01.May.2026
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • docker AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

Whenever i create a new User the contact Leon Green is created automaticly. I cannot delet the contact because i dont have installed the contacts app and dont need it. I have already disabled the example content in the groupware menu. I dont have the Isssue with the appointment for the Birthday that is mentioned in this Post. I neet to add/remove accounts all the time so it really isnt an fix to install the contacts app and delet the contact every time i add an new User. How can i stop it creating the Leon Green Contact with every Account i create?

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

  1. Install docker Nextcloud AIO

  2. Uninstall the apps Contacts & Contacts Interactions

  3. Create a New User and log in into that User

  4. Go into the top right menu with all Server Users and see the Contact Leon Green (it is also mentioned in the Activity tab)

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

There do not appear to be any relevant log entries.

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

N/A

Web server / Reverse Proxy

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

N/A

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "one-click-instance": true,
        "one-click-instance.user-limit": 100,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "check_data_directory_permissions": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": ****
        },
        "overwritehost": "(my domain)",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "(my domain)"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "33.0.3.2",
        "overwrite.cli.url": "https:\/\/(my domain)\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "updatechecker": true,
        "updatedirectory": "\/nc-updater",
        "loglevel": 2,
        "app_install_overwrite": [
            "nextcloud-aio"
        ],
        "log_type": "file",
        "logfile": "\/var\/www\/html\/data\/nextcloud.log",
        "log_rotate_size": 10485760,
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "jpeg_quality": 60,
        "enabledPreviewProviders": {
            "1": "OC\\Preview\\Image",
            "2": "OC\\Preview\\MarkDown",
            "3": "OC\\Preview\\MP3",
            "4": "OC\\Preview\\TXT",
            "5": "OC\\Preview\\OpenDocument",
            "6": "OC\\Preview\\Movie",
            "7": "OC\\Preview\\Krita",
            "0": "OC\\Preview\\Imaginary",
            "23": "OC\\Preview\\ImaginaryPDF"
        },
        "enable_previews": true,
        "upgrade.disable-web": true,
        "mail_smtpmode": "smtp",
        "trashbin_retention_obligation": "auto, 30",
        "versions_retention_obligation": "auto, 30",
        "activity_expire_days": 30,
        "simpleSignUpLink.shown": false,
        "share_folder": "\/Shared",
        "one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/",
        "upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",
        "maintenance_window_start": 100,
        "allow_local_remote_servers": true,
        "davstorage.request_timeout": 3600,
        "documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
        "htaccess.RewriteBase": "\/",
        "dbpersistent": false,
        "auth.bruteforce.protection.enabled": true,
        "ratelimit.protection.enabled": true,
        "files_external_allow_create_new_local": false,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "onlyoffice": {
            "editors_check_interval": 0,
            "jwt_secret": "***REMOVED SENSITIVE VALUE***",
            "jwt_header": "AuthorizationJwt"
        },
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",
        "skeletondirectory": "",
        "log_type_audit": "file",
        "logfile_audit": "\/var\/www\/html\/data\/audit.log",
        "DOMAIN": "(my domain)",
        "AIO_VERSION": "v13.0.4"
    }
}

Apps

The output of occ app:list (if possible).

Enabled:

  • activity: 6.0.0
  • admin_audit: 1.23.0
  • announcementbanner: 2.4.2
  • bruteforcesettings: 6.0.0
  • calendar: 6.4.0
  • circles: 33.0.0
  • cloud_federation_api: 1.17.0
  • comments: 1.23.0
  • dav: 1.36.0
  • deck: 1.17.1
  • external: 8.0.1
  • federatedfilesharing: 1.23.0
  • federation: 1.23.0
  • files: 2.5.0
  • files_antivirus: 6.2.0
  • files_downloadlimit: 5.1.0
  • files_fulltextsearch: 33.0.0
  • files_pdfviewer: 6.0.0
  • files_sharing: 1.25.2
  • files_trashbin: 1.23.0
  • files_versions: 1.26.0
  • forms: 5.2.7
  • fulltextsearch: 33.0.0
  • fulltextsearch_elasticsearch: 33.0.0
  • groupfolders: 21.0.7
  • logreader: 6.0.0
  • lookup_server_connector: 1.21.0
  • mail: 5.8.0
  • nextcloud-aio: 0.8.0
  • notifications: 6.0.0
  • notify_push: 1.3.3
  • oauth2: 1.21.0
  • onlyoffice: 10.0.0
  • password_policy: 5.0.0
  • privacy: 5.0.0
  • profile: 1.2.0
  • provisioning_api: 1.23.0
  • related_resources: 4.0.0
  • serverinfo: 5.0.0
  • settings: 1.16.0
  • sharebymail: 1.23.0
  • survey_client: 5.0.0
  • systemtags: 1.23.0
  • text: 7.0.1
  • theming: 2.8.0
  • twofactor_backupcodes: 1.22.0
  • twofactor_totp: 15.0.0
  • updatenotification: 1.23.0
  • viewer: 6.0.0
  • webhook_listeners: 1.5.0
  • whiteboard: 1.5.8
  • workflowengine: 2.15.0

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Hi @flu1000000,

Leon Green is an example contact shipped with Nextcloud’s dav app — specifically in apps/dav/lib/ExampleContentFiles/exampleContact.vcf. He was introduced in PR #50156.

  • When it happens

    The contact is not created at user creation time. It is created on the user’s first login, by UserEventsListener::firstLogin(): when a new personal address book is created for the user, ExampleContactService::createDefaultContact() is called immediately after.

  • Why disabling it in the admin panel didn’t work — and why your own steps caused this

    Your step 2 (“Uninstall the apps Contacts & Contacts Interactions”) is exactly where things went wrong. The admin panel toggle for the example contact is defined in ExampleContentSettings::getForm() and is only rendered when the Contacts app is enabled:

    if ($contactsEnabled) {
        $this->initialState->provideInitialState('enableDefaultContact', ...);
    }
    

    Once you uninstalled the Contacts app, that toggle disappeared from the admin panel. You could only see (and disable) the example calendar event toggle — not the example contact toggle. The enableDefaultContact flag defaults to true and ExampleContactService creates the contact regardless of whether the Contacts app is present. The setting became invisible but remained active.

    The correct order would have been:

    1. disable the example contact in the admin panel
    2. uninstall the Contacts app.

    At this point that ship has sailed — but the OCC command below gets you there anyway.

  • The fix

    Set the flag directly via OCC. For AIO Docker:

    sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ config:app:set dav enableDefaultContact --value=0
    

    This prevents Leon Green from being created for any new user going forward.

  • Cleaning up existing accounts

    Existing users who have already logged in will still have the contact in their personal address book. Without the Contacts app installed you cannot delete it through the UI. Options:

    • Install the Contacts app temporarily, delete the contact for each affected user, uninstall.
    • Use any CardDAV client (e.g. curl with DELETE) to remove the card directly from each user’s address book.

h.t.h.


ernolf

Thanks so much for the fast and detailed answer.

I fixed the problem by temporarly reinstalling the contact app and then disabled the example contact in the groupware settings. With that i coud also delet the contact on the existing users.