Skip to content

Instantly share code, notes, and snippets.

@liejuntao001
Created October 23, 2020 18:57
Show Gist options
  • Save liejuntao001/26e0e24113295fb5250c805b93d5e400 to your computer and use it in GitHub Desktop.
Save liejuntao001/26e0e24113295fb5250c805b93d5e400 to your computer and use it in GitHub Desktop.
Nextcloud share to group fix
https://github.com/nextcloud/server/issues/20617
Problem:
Share a folder to LDAP group A
Create a new user in LDAP and add to group A
The new user login to Nextcloud, the shared folder is not shown, nor in Shares->Pending shares
Check the db oc_share, there is no entry for the user
There is entry in oc_share for the folder to the group A, and accepted = 0
Fix:
Run the SQL
UPDATE oc_share SET accepted = 1 WHERE accepted = 0;
Result
Refresh, the folder is now shown to the new user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment