Restore user doesn`t work on 28.0.2 / php 8.2 / nginx

Hi all,
on:
NC 28.0.2
nginx
php 8.2

I try to restore a user recovered from backup. The user is restored to the correct directory (nextcloud_data) and has the correct owner (www-data:www-data) if running sudo -u www-dataphp occ files: scan ‘name’ it returns: "Unknown user 1 “name”. What happened and how to resolve the problem?

Best
Joon

Sounds like you restored a users files, but did not create a corresponding replacement user within Nextcloud.