Creating New users: addRole doesn't work (sometimes) in API & Templates Posted May 5 I have to reopen this thread, because I still have these problems. I am absolutely sure that my user-name is valid and unique. Still, if using $users->add($name) I'm getting a NullPage back, but just sometimes. I couldn't find a way to reproduce this error on our test-server. Our database is huge, we have some traffic and probably sometimes users are created nearly simultaneously (but definitely with unique names) Currently we have more than 150k user-accounts in the system. Do you think that could be a problem? The solution of @Noel Boss is interesting. How will the user-name be generated in this case? Any help is really appreciated! Thank you!