Nextcloud users can share files with their Nextcloud groups and other users on the same Nextcloud server, with Nextcloud users on other Nextcloud servers, and create public shares for people who are not Nextcloud users. You have control of a number of user permissions on file shares.
Configure your sharing policy on your Admin page in the Sharing section.
Allow apps to use the Share APIto enable users to share files. If this is not checked, no users can create file shares.
Set default expiration date for sharesto set a default expiration date on local user and group shares.
Enforce expiration dateto always enforce the configured expiration date on local user and group shares. Users will not be able to adjust or remove the expiration date.
Allow users to share via linkto enable creating public shares for people who are not Nextcloud users via hyperlink.
Allow public uploadsto allow anyone to upload files to public shares.
Always ask for a passwordto proactively ask a user to set a password for a share link.
Enforce password protectionto force users to set a password on all public share links. This does not apply to local user and group shares.
Set default expiration date for link sharesto set a default expiration date on public shares.
Enforce expiration dateto always enforce the configured expiration date on public shares. Users will not be able to adjust or remove the expiration date.
Allow resharingto enable users to re-share files shared with them.
Allow sharing with groupsto enable users to share with groups.
Restrict users to only share with users in their groupsto confine sharing within group memberships.
This setting does not apply to the Federated Cloud sharing feature. If Federated Cloud Sharing is enabled, users can still share items with any users on any instances (including the one they are on) via a remote share.
Exclude groups from sharingto prevent members of specific groups from creating any file shares in those groups. When you check this, you’ll get a dropdown list of all your groups to choose from. Members of excluded groups can still receive shares, but not create any.
Allow username autocompletion in share dialogto enable auto-completion of Nextcloud usernames.
Show disclaimer text on the public link upload pageto set and show a disclaimer text on public links with hidden file lists.
Default share permissions you are able to set the default permissions
for user-shares (
Nextcloud does not preserve the mtime (modification time) of directories, though it does update the mtimes on files. See Wrong folder date when syncing for discussion of this.
Transferring files to another user¶
You may transfer files from one user to another with
occ. This is useful
when you have to remove a user. Be sure to transfer the files before you delete
the user! This transfers all files from user1 to user2, and the shares and
metadata info associated with those files (shares, tags, comments, etc).
Trashbin contents are not transferred:
occ files:transfer-ownership user1 user2
(See Using the occ command for a complete