NC20 - External storage - cannot assign user

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


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:

Nextcloud version (eg,
Operating system and version (eg, Fedora 32):
Apache or nginx version (eg, Apache 2.4.46):
PHP version (eg, 7.4.10):

The issue you are facing:
Cannot assign user to samba share in External Storage settings.
If username is incorrect, message “No matches found” is displayed.
If username is correct, quick information “searching” is displayed, but no results. Hence valid user cannot be selected.

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. Fresh installation on NC20.
  2. Enable of External Storage App
  3. Config of smb share
  4. Assigning user.

The output of your Nextcloud log in Admin > Logging:

[index] Error: TypeError: Argument 3 passed to OCA\Files\Service\TagService::__construct() must be an instance of OCP\ITags, null given, called in /datashare/html/ on line 108 at <<closure>>

but no idea if above is anyhow connected to users in external storage.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => 'some_id',
  'passwordsalt' => 'some_salt',
  'secret' => 'some_secret',
  'trusted_domains' =>
  array (
    0 => '',
  'datadirectory' => '/datashare/html/',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => '',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'dbuser',
  'dbpassword' => 'dbpass',
  'installed' => true,

This is what I get when typing username in external storage. Username is blackest.
The output of your httpd log in /var/log/cloud-access.log: - - [24/Oct/2020:17:21:40 +0200] "GET /index.php/apps/files_external/applicable?pattern=blackest&limit=30&offset=0&_=1603552802886 HTTP/1.1" 200 64 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 Edg/86.0.622.51"

So, why I cannot assign any user to have access in external storage for samba mounts ?
This was not a problem in NC18 (had to set up anew, as update failed)


Look this!

Its a bug.

Thx a lot.
Then I wait for 20.0.1.
Marking this thread as resolved.