Issue with airsonic service

Hello,

I am using airsonic music server on my raspberry pi 3 running OSMC. Everything works fine except for the systemd service.
I installed the service-file provided in the airsonic documentation :

https://raw.githubusercontent.com/airsonic/airsonic/master/contrib/airsonic.service

in this folder

/etc/systemd/system/airsonic.service

I changed

User=airsonic
Group=airsonic
to
User=osmc
Group=osmc

and the /var/airsonic is owned by osmc.

When I start the service, I get the following error

failed systemctl service (code=exited, status=217/USER)

But if I comment the following line in the service file

PrivateUsers=yes

it works…

Does anyone have an idea why it doesn’t work ? Is it safe to leave this line out if I set a new unprivileged user ?

Thank you for your help !