Expiration time setting for internal links

Hi, is the setting for the expiration time of shared files/folders also affecting the “internal link” feature of Nextcloud? I’m asking because all of the internal link URLs have changed since the last time I checked them.

Thank you in advance!

We have this problem as well. We want to limit links for external users to a few months but this is not possible without applying the expiration for internal links as well.

1 Like

Not sure if you are talking about the same thing as OP.

There are two ways to create links to a file or folder:

  1. “Share link”:
    This creates a link and a public share that anyone can use to access the corresponding file or folder.

  2. “Internal Link”:
    This only creates a link, which only works for users who already have access to the respective file or folder. Therefore it is not necessary to set expiration dates, because it’s only meant to (re)send a link to a specific file or folder, which you already have shared with the recipient. Or in other words… If you use the “Internal Link” function in order to link to a file or folder that is no longer shared with the recipent, e.g. because the share has expired, the recipient of the link will obviously not be able to access it.

Solution:
Use the “Share Link” or “Public Link” function only for external users, who don’t have an account on your Nextcloud instance.

In order to share files and folders with internal users, who do have an account, you should use Internal shares with users and groups. If you use it like that, you can set diffrent permissions or expiration dates for induvidual groups or users. It is also possible to use both “Internal Shares” and “Public Links” with diffrent permissions or expiration dates on the same file or folder.

1 Like

Thank you for explaining external vs. internal links/shares.
I think our issue is, that once an expiration date is enforced, it applies to any kind of share, internal or external. For external shares, this feature is very useful security-wise, but for internal shares, it quickly turns into a minor nuisance (getting requests, why the files are missing, in case of a collaboration lasting longer than the expiration date etc.)
This is an internal share with an expiration date enforced.
image
Is there any way around having forced expiration dates for internal shares, but keeping them for external shares?
Kind regards

1 Like

Yes. Administrators can set and / or enforce the default expiration dates separately for internal shares or (external) links / shares under Settings → Administration → Sharing.

https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/file_sharing_configuration.html

1 Like

I think the discussion is problematic.
Therefore i want to repeat this:

There are:

  • Internal Shares e.g. user “demo” (screenshot above user “demo”).
  • External Shares e.g. public share (no screenshot)
  • Internal link (only cut-and-paste link, nothing more) (screenshot above “Internal link”)
1 Like

Thank you very much, this is exactly what I was looking for. This issue could’ve probably been avoided by me reading the admin manual more carefully.
Cheers

1 Like