Run the nextcloud client as root and service

Good evening friends, I wonder if anyone knows a way to run the nextcloud desktop as a service and as root? I have an OpenMediaVault server that would like to share folders with ACL via samba and also synchronize folders on Nextcloud for users to access from home.
In the case of Google Drive there is the grive client and Dropbox too, for the nextcloud I didn’t find an easy solution …
I thought about using the nextcloudcmd but it has a limitation only does the synchronization of one side at a time, I need synchronization from local to the cloud and from cloud to local.