How to move shared files automatically?

Hi!
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
/home/user1/files1
/home/user1/files2
…
/home/user2/files1
/home/user2/files2
…
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.