Overview
The following image may be seen when clicking on a visitor link generated that should not be expired.
This is a known safety feature with M-Files. The visitor/public links
https://userguide.m-files.com/user-guide/latest/eng/sharing_content.html
that are generated by a user are tied to that user account. If that user account is disabled or removed all links generated by that user are automatically expired. This is a security feature to prevent users who may not have access to the M-Files system, still being able to interact or retrieve data from the system.
Solution
If it is a requirement to have these public links that stay valid until their expiration date is met, the suggested workaround is to use a non-user account specifically for the task. This will allow the links to be generated and never expire. It will also allow a single point of security so in case of any kind of issues, the link generation account is the only one that must be disabled to make all the links it generated invalid/expire.
SQL to find all links created by any user account
select * from [dbo].[SHAREDLINK] where CREATEDBYUSER = <userID (number)>
