Création de liens internes/publics pérenne (après suppression utilisateur créateur)

Bonjour,

J’ai pu constater que, a priori, lorsqu’un utilisateur créé des liens publics et qu’il est désactivé voire supprimé, ces liens publics sont supprimés.
J’aimerai savoir qu’elle serait la bonne méthodologie pour créer des liens publics pérennes ? En effet, notre structure reçoit des stagiaires/services civiques qui n’interviennent que pendant quelques mois et sont amenés à mettre des documents en accès sur un wiki public ; ainsi, au moment de leur départ, et après désactivation de leurs comptes Nextcloud, les liens sont HS…
Comment procéder pour conserver ces liens (tout en continuant à avoir une bonne gestion des accès aux outils) ?

Merci de votre aide.

Sorry in english:
You can use the app ShareRenamer. Then you can move the “name of the share” to another Nextcloud share.

An alternative is to use a normal webserver with a php-script to use 301-redirect to Nextcloud shares. If you are interested send me a PN.

1 Like

Are the public links still usable after the desactivation of the link’s creator with the “ShareRenamer” apps ?

PS : (I don’t know yet if it’s the solution I’m looking for, but it’s quite useful for an other subject I’m submitted with, thanks for this)

I don’t understand how it could be helpfull : the share is desactivated with the desactivation of the link’s creator… Can you explain me (quickly) ?

The user renames the share e.g. XDERNJpmpmtNw5Y to test. Then the name test can not be used. After delete the share test can be used again (e.g. from another user).

I use it more like a url shortener e.g. https://webserver.tld/url/test not only to Nextcloud shares. Of course, if a user deletes his private shares, they will no longer be accessible. You can look at Group folders even if they don’t solve the sharing problem.

OK, I don’t think it fulfill my demand.

To be more accurate :

A nextcloud user, named UserAccount, create a public link https://webserver.tld/oZEFij43zijdufhozuhf and everything works fine.

A few months later, the nextcloud user UserAccount is deactived because he left the structure.
The public link https://webserver.tld/oZEFij43zijdufhozuhf is not working anymore (404 error).

How can I still have a working public link https://webserver.tld/oZEFij43zijdufhozuhf even after the deactivation/deletion of the nextcloud user’s account UserAccount ?

First you must copy all data because if the account is deleted, the data is deleted, too. Or you must use e.g. Group folders.

The idea is more that the first user named UserAccount rename the link https://cloud.server.tld/s/oZEFij43zijdufhozuhf to a better name https://webserver.tld/s/nicename and you reuse the name for a new share after the user but not the data is gone.

Nextcloud is a collaborative software. The data belongs to individuals rather than a parent entity. Perhaps Nextcloud is also the wrong software at this point.

1 Like

It’s a workaround but not a usable one for our case…

(we use Group Folders already !)

As you say, Nextcloud is maybe not suitable for (all of) our use. We have to find some other way to achieved what we want to.

Another solution:
You can create an “admin” account (not user based, never deleted) who creates the shares.

Bonjour,

Avez-vous essayé de transférer toutes les ressources à garder de l’utilisateur que vous devez supprimer vers un compte de service ?

Je ne suis pas sûr et je n’ai jamais testé, mais peut-être qu’en transférant une ressource avec un lien à quelqu’un le lien soit aussi transféré et donc non supprimé lors de la suppression de compte originel.

1 Like

Non, nous n’en avions pas besoin, je n’ai donc pas testé mais c’est effectivement un coup à tenter :crossed_fingers: ! Je vous tiens informé du résultat de mon test !

1 Like