Occ files:scan does not know existing user

Please help me out here. See screenshot. User exists (other 3 users made invisible in the screenshot) but occ command says user does not exist.
Any ideas please? Thank you!

Have an eye on the error which is being displayed “Unknown user 1 =frank”.
Due to the fact that the only part off your command which contains the name “frank” is “-p="frank/…” I would recommend to remove the equal sign and replace it by a whitespace and test it again, like “-p "frank/…:wink:

Thanks so much j-ed. That was it.
Everyone else being in this situation, please ignore the --help (including the wrong slash before “alice”) and listen to j-ed. :slightly_smiling_face:

Just to add a bit o’ information to the pile, in case you have LDAP linked accounts, you may specify the account UUID as username.
I.e.

$ occ user:list | grep username
  - XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXF336: User Name (username)

$ occ files:scan --path=/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXF336/files/2025-07-14/Scandata/
Starting scan for user 1 out of 1 (XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXF336)
+---------+-------+-----+---------+---------+--------+--------------+
| Folders | Files | New | Updated | Removed | Errors | Elapsed time |
+---------+-------+-----+---------+---------+--------+--------------+
| 1       | 37    | 0   | 0       | 0       | 0      | 00:00:09     |
+---------+-------+-----+---------+---------+--------+--------------+

Basically, what is listed on the left of user:list.
And no, the leading dash is not an error.