How to move shared files automatically?

All of users shared links are shows in the root directory directly. It’s no good idea either I have a lot of users. I can create directories and move it manually. Such as


I can create directories and shared their to my users by another way. But is there method to do it automatically?
For example.
“userN” share “fileN” within “admin”. And fileN link’s appears in “/home/userN” admin’s directory.