Nextcloud occ user:report - user directories - meaning

Hi,

I have a quick question about using occ command user:report and it’s result.

What does the number next to “user directories” mean and how it is calculated?

Example:

sudo -u www-data php occ user:report
±-----------------±—+
| User Report | |
±-----------------±—+
| Database | 12 |
| LDAP | 86 |
| | |
| total users | 98 |
| | |
| user directories | 2 |
±-----------------±—+

There are a total of 98 users but only 2 user directories.

Or in my case, there are 345 total users and 232 user directories.

Thank you in advance.

Afaik the function simply counts the number of sub directories found in the Nextcloud data directory. There you can usually find the home directories of the users. Unfortunately it also seems to count general folders like __groupfolders, files_external, news or updater_backup, etc.