Directory shared to a group is not visible to the group members

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 33.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • NixOS 25.11, nixpkgs 7e495b747b51f95ae15e74377c5ce1fe69c1765f
  • Web server and version (e.g, Apache 2.4.25):
    • Caddy 2.11.2
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Caddy 2.11.2
  • PHP version (e.g, 8.3):
    • 8.4.19
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • right from the beginning
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • NixOS module from nixpkgs
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no
    • users are managed by Authentik via OIDC

Summary of the issue you are facing:

All users are in a group everyone . I created a folder in the root, and set internal share (can edit) with the everyone group. However, other members of the group cannot see that folder. Why?

Note: the group is supplied by Authentik, and the membership can be seen in the Accounts view in Nextcloud.

Steps to replicate it:

  1. have a group with several members

  2. create a folder in the root by one of the group members

  3. set the folder to be shared with the group

  4. other members of the group cannot see the folder

Configuration

Nextcloud

{
    "system": {
        "apps_paths": [
            {
                "path": "\/nix\/store\/76n13mwk0x860kcsdzi59a4sk8pcjd8c-nextcloud-33.0.2-with-apps\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/nix\/store\/76n13mwk0x860kcsdzi59a4sk8pcjd8c-nextcloud-33.0.2-with-apps\/nix-apps",
                "url": "\/nix-apps",
                "writable": false
            },
            {
                "path": "\/nix\/store\/76n13mwk0x860kcsdzi59a4sk8pcjd8c-nextcloud-33.0.2-with-apps\/store-apps",
                "url": "\/store-apps",
                "writable": true
            }
        ],
        "appstoreenabled": false,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "allow_local_remote_servers": true,
        "allow_user_to_change_display_name": true,
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "default_certificates_bundle_path": "\/nix\/store\/7yfcw3jbhl1i0nm56ig7kxad8wphdyff-nss-cacert-3.121\/etc\/ssl\/certs\/ca-bundle.crt",
        "default_phone_region": "",
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Krita",
            "OC\\Preview\\WebP",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\TXT",
            "OC\\Preview\\OpenDocument"
        ],
        "integrity.check.disabled": true,
        "log_type": "syslog",
        "loglevel": 2,
        "lost_password_link": "disabled",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_send_plaintext_only": false,
        "mail_sendmailmode": "smtp",
        "mail_smtpauth": false,
        "mail_smtpdebug": false,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": 25,
        "mail_smtpsecure": "",
        "mail_smtpstreamoptions": [],
        "mail_smtptimeout": 10,
        "mail_template_class": "\\OC\\Mail\\EMailTemplate",
        "maintenance_window_start": 1,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "overwriteprotocol": "",
        "phpOptions": {
            "opcache.interned_strings_buffer": "64",
            "opcache.memory_consumption": "256"
        },
        "profile.enabled": false,
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "skeletondirectory": "",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "upgrade.disable-web": true,
        "user_oidc": [],
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "version": "33.0.2.2",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbtableprefix": "oc_",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "forwarded_for_headers": [
            "HTTP_X_FORWARDED_FOR"
        ],
        "trusted_domains": [
            "nextcloud.czechhema.cz"
        ]
    }
}

Apps

Enabled:

  • activity: 6.0.0
  • app_api: 33.0.0
  • bruteforcesettings: 6.0.0
  • circles: 33.0.0
  • cloud_federation_api: 1.17.0
  • comments: 1.23.0
  • contactsinteraction: 1.14.1
  • dashboard: 7.13.0
  • dav: 1.36.0
  • federatedfilesharing: 1.23.0
  • federation: 1.23.0
  • files: 2.5.0
  • files_downloadlimit: 5.1.0
  • files_pdfviewer: 6.0.0
  • files_reminders: 1.6.0
  • files_sharing: 1.25.2
  • files_trashbin: 1.23.0
  • files_versions: 1.26.0
  • firstrunwizard: 6.0.0
  • logreader: 6.0.0
  • lookup_server_connector: 1.21.0
  • nextcloud_announcements: 5.0.0
  • notifications: 6.0.0
  • notify_push: 1.3.0
  • oauth2: 1.21.0
  • password_policy: 5.0.0
  • photos: 6.0.0
  • privacy: 5.0.0
  • profile: 1.2.0
  • provisioning_api: 1.23.0
  • recommendations: 6.0.0
  • related_resources: 4.0.0
  • richdocuments: 10.1.0
  • serverinfo: 5.0.0
  • settings: 1.16.0
  • sharebymail: 1.23.0
  • spreed: 23.0.3
  • support: 5.0.0
  • survey_client: 5.0.0
  • systemtags: 1.23.0
  • text: 7.0.0
  • theming: 2.8.0
  • twofactor_backupcodes: 1.22.0
  • twofactor_totp: 15.0.0
  • updatenotification: 1.23.0
  • user_oidc: 8.8.0
  • user_status: 1.13.0
  • viewer: 6.0.0
  • weather_status: 1.13.0
  • webhook_listeners: 1.5.0
  • workflowengine: 2.15.0

Disabled:

  • admin_audit: 1.23.0
  • encryption: 2.21.0
  • files_external: 1.25.1
  • suspicious_login: 11.0.0
  • testing: 1.23.0
  • twofactor_nextcloud_notification: 7.0.0
  • user_ldap: 1.24.0

I think I found the issue - it seems that the share does not propagate to users that join the group after the share is set up. This is very unfortunate and defeats the purpose of having groups, kind of.

Is there any workaround for this? E.g. setting up some hook to re-share all group shares when there is a new member of a group… I am new to Nextcloud, and don’t know the internals of it and the possibilities (yet).