Created a user service. Returns error "Failed at step GROUP spawning: Operation not permitted"

I moved the service file and removed the user and group, while also changing the install target like this:

/usr/lib/systemd/user/duniter.service

[Unit]
Description=Duniter node
After=network.target
ConditionPathExists=/home/folatt/.config/duniter/duniter_default/duniter.db

[Service]
Type=forking
ExecStart=/usr/bin/duniter webstart
ExecReload=/usr/bin/duniter webrestart
ExecStop=/usr/bin/duniter stop
Restart=on-failure

[Install]
WantedBy=default.target

If you have services where the user and/or group is dependant on network services e.g. LDAP, you must add the respective services (such as nslcd) to the Wants and After lines of the [Unit] section of the service definition file.

If a user or group is defined in a network directory that is not available yet, the service will fail to start with the "Failed at step GROUP spawning" error.