Recreate LDAP User - _1234 appended to username

Nextcloud version _(eg, 20.0.5)_: `25.0.3`
Operating system and version _(eg, Ubuntu 20.04)_: `Debian 11`
Apache or nginx version _(eg, Apache 2.4.25)_:  `latest`
PHP version _(eg, 7.4)_: `8.0`

Hi!
After changing the last name of one of my LDAP users in the LDAP backend, i ran into weird share- and permission issues. Since this was the only user experiencing issues, I decided to just recreate the user (was only using file sharing, nothing important lost). I removed the user from the NC-Group in the Active Directory and removed the user with occ user:delete.
I then readded them to the NC group and logged back in, which fixed the folder permission issues, but created a new one. “_9951” was appended to the username, which messes with the $user-wildcard in external storage, preventing the user from seeing their private SMB-folder.

How can i completely wipe the user, or can I change the user name somehow?

best regards,
RockNLol

*edit:
I solved this by manually removing traces of the user in the database after deleting it with the occ command. Readding the user after this found no duplicate and did not append a number.

1 Like