Problem with adding users to shares

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com 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:

example

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

longer
example
here

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, 20.0.5): 25.0.3
Operating system and version (eg, Ubuntu 20.04): Fedora 37
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.56
PHP version (eg, 7.4): 8.1.17

The issue you are facing:
I have created a couple shares. When I select the share and start to type in a username to add to the share, the system never finds the user and the little circle keeps spinning. I do have a couple of users defined and I can see them under users.

Is this the first time you’ve seen this error? (Y/N):
Y
Steps to replicate it:

  1. Log in to user that created the folder
  2. Select files and navigate to the shared folder
  3. Click on … under the folder and select Shared
  4. Enter the name or e-mail of the user you want to share the file

The output of your Nextcloud log in Admin > Logging:

Shows "ACCESS FORBIDDEN"

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

<?php
$CONFIG = array (
  'log_type' => 'syslog',
  'datadirectory' => '/var/lib/nextcloud/data/',
  'updatechecker' => false,
  'check_for_working_htaccess' => false,
  'asset-pipeline.enabled' => false,
  'assetdirectory' => '/var/lib/nextcloud',
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/usr/share/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/lib/nextcloud/apps',
      'url' => '/apps-appstore',
      'writable' => true,
    ),
 ),
  'passwordsalt' => '*********************',
  'secret' => '***********************************',
  'trusted_domains' =>
  array (
    0 => 'mydomain.com:8080',
    1 => '192.168.15.2',
  ),
  'dbtype' => 'mysql',
  'version' => '25.0.3.2',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '**************',
  'dbpassword' => '***************',
  'instanceid' => 'ocsdjgbwnplb',
  'installed' => 'true',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'username',
  'mail_domain' => 'mydomain.com',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtphost' => '192.168.15.254',
  'mail_smtpport' => '25',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '**********',
  'mail_smtppassword' => '*************',
);

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

192.168.15.186 - - [14/Apr/2023:10:12:26 -0400] "PROPFIND /nextcloud/remote.php/dav/files/dboyer/ HTTP/1.1" 207 240 "-" "Mozilla/5.0 (Windows) mirall/3.8.0stable-Win64 (build 20230331) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
192.168.15.186 - - [14/Apr/2023:10:12:56 -0400] "PROPFIND /nextcloud/remote.php/dav/files/dboyer/ HTTP/1.1" 207 240 "-" "Mozilla/5.0 (Windows) mirall/3.8.0stable-Win64 (build 20230331) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
192.168.15.186 - - [14/Apr/2023:10:13:20 -0400] "GET /nextcloud/ocs/v2.php/apps/user_status/api/v1/user_status?format=json HTTP/1.1" 200 151 "-" "Mozilla/5.0 (Windows) mirall/3.8.0stable-Win64 (build 20230331) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
192.168.15.186 - - [14/Apr/2023:10:13:20 -0400] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows) mirall/3.8.0stable-Win64 (build 20230331) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
192.168.15.186 - - [14/Apr/2023:10:13:26 -0400] "PROPFIND /nextcloud/remote.php/dav/files/dboyer/ HTTP/1.1" 207 240 "-" "Mozilla/5.0 (Windows) mirall/3.8.0stable-Win64 (build 20230331) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)"

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

ACCESS FORBIDDEN