How to make TrueNAS home directory as Nextcloud users' data directory

Hi folks,

I’m planning to install Nextcloud on TrueNAS Scale OS.

The main goal in the installation process is to let Nextcloud work with TrueNAS users and have its data directory located there.

for example I have the user’s home directory structure in TrueNAS:

/mnt/tank/home
|_User1
|_User2
|_User3

I want these users to use their home directories in netxcloud instead of directory created elsewhere by Nextcloud installation.

So what steps do I have to complete in order to achieve this?

Thanks