LXC for hosting

Hello,
I would like to deploy lxd containers via api for a shared hosting server.

My vision is:
run your own LXD with a user who will have the same home dir as the user on the servers.

The reason is the availability of the shell for customers.

Have you ever solved it? Do you have any recommendations? Is it even possible?

Specific Concept:
The customer launches an LXD container named debian-image-with-git via api.

With user “hctestgit_or_ftp”

with home directory “/var/www/hctestgit.testing.com”

Would it be possible? (real)