Hide other groups' users when sharing except for admins

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):
    • 31.0.7
  • PHP version (e.g, 8.3):
    • 8.2.29

Summary of the issue you are facing:

I’ve realized that I cannot hide other users to normal users (except the ones in their group) without hiding them to administrators too.
I’d like to allow admins to always have access to entire list of users while it is hidden to normal users.

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

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": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.altrasoluzione.com"
        ],
        "tempdirectory": "\/tmp",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "logfile": "\/var\/log\/nextcloud.log",
        "dbtype": "mysql",
        "version": "31.0.7.1",
        "overwrite.cli.url": "https:\/\/cloud.altrasoluzione.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,
        "default_phone_region": "IT",
        "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***",
        "maintenance": false,
        "auth.bruteforce.protection.enabled": false,
        "theme": "",
        "loglevel": 1,
        "log_rotate_size": 0,
        "trashbin_retention_obligation": "auto, 30",
        "versions_retention_obligation": "auto, 30",
        "sharing.enable_share_accept": false,
        "app_install_overwrite": [
            "groupfolders"
        ]
    }
}


Apps

Enabled:

  • activity: 4.0.0
  • admin_audit: 1.21.0
  • app_api: 5.0.2
  • bruteforcesettings: 4.0.0
  • calendar: 5.3.7
  • cloud_federation_api: 1.14.0
  • contacts: 7.2.2
  • contactsinteraction: 1.12.0
  • dav: 1.33.0
  • federatedfilesharing: 1.21.0
  • files: 2.3.1
  • files_archive: 1.2.7
  • files_lock: 31.0.2
  • files_pdfviewer: 4.0.0
  • files_reminders: 1.4.0
  • files_retention: 2.0.1
  • files_sharing: 1.23.1
  • files_trashbin: 1.21.0
  • impersonate: 2.0.0
  • logreader: 4.0.0
  • lookup_server_connector: 1.19.0
  • nextcloud_announcements: 3.0.0
  • notifications: 4.0.0
  • oauth2: 1.19.1
  • password_policy: 3.0.0
  • photos: 4.0.0
  • privacy: 3.0.0
  • profile: 1.0.0
  • provisioning_api: 1.21.0
  • recommendations: 4.0.0
  • related_resources: 2.0.0
  • settings: 1.14.0
  • sharebymail: 1.21.0
  • systemtags: 1.21.1
  • text: 5.0.0
  • theming: 2.6.1
  • twofactor_backupcodes: 1.20.0
  • updatenotification: 1.21.0
  • user_status: 1.11.0
  • viewer: 4.0.0
  • webhook_listeners: 1.2.0
  • workflowengine: 2.13.0
    Disabled:
  • circles: 31.0.0 (installed 31.0.0)
  • comments: 1.21.0 (installed 1.17.0)
  • dashboard: 7.11.0 (installed 7.7.0)
  • encryption: 2.19.0
  • federation: 1.21.0 (installed 1.17.0)
  • files_downloadlimit: 4.0.0 (installed 4.0.0)
  • files_external: 1.23.0 (installed 1.23.0)
  • files_versions: 1.24.0 (installed 1.24.0)
  • firstrunwizard: 4.0.0 (installed 4.0.0)
  • groupfolders: 19.1.2 (installed 19.1.2)
  • integration_dropbox: 4.0.3 (installed 4.0.3)
  • serverinfo: 3.0.0 (installed 3.0.0)
  • support: 3.0.0 (installed 3.0.0)
  • survey_client: 3.0.0 (installed 1.15.0)
  • suspicious_login: 9.0.1 (installed 9.0.1)
  • twofactor_nextcloud_notification: 5.0.0 (installed 5.0.0)
  • twofactor_totp: 13.0.0-dev.0
  • user_ldap: 1.22.0
  • weather_status: 1.11.0 (installed 1.7.0)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.