For small daemons I skip useradd and let systemd allocate the user at start.
[Service]
DynamicUser=yes
StateDirectory=myapp
ExecStart=/usr/local/bin/myapp
systemd allocates a free UID and group when the service starts, and the name is derived from the unit name. The option implies ProtectSystem=strict, ProtectHome=read-only, NoNewPrivileges= and RestrictSUIDSGID=. Persistent data goes in StateDirectory=, which is created below /var/lib/private and is not removed when the service stops. Files left outside the managed directories can end up owned by a UID that no longer exists, so keep all data inside it.
Further reading: systemd.exec manual page