I am working on my first Nextcloud app and have a problem with creating new users programmatically. When calling IUserManager::createUser() everything seems to work alright except the subfolder data/{uid}/files is not created. data/{uid} and data/{uid}/cache are created.
Ok, it turns out that folders are created on first login and not when the user is created. Since I am also programmatically logging in the newly created user right away, the issue seems to be located in this area. I will do some research.