Cannot create users - "The username is already being used"

Here we try to answer typical questions
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
User avatar
RandolphCarter
ownCloud master
Posts: 5134
Joined: Wed May 30, 2012 8:42 am
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Cannot create users - "The username is already being used"

Postby RandolphCarter » Sat Mar 08, 2014 11:02 pm

Problem
Whenever trying to create a new user, you get a message saying "The username is already being used".

Answer
The usual cause for this is that a authentication app is enabled; e.g. the "WebDAV user backend".

  • If you can live without the interfering authentication app, just disable it.
    Note: For letting your ownCloud access WebDAV shares, or for making your ownCloud accessible via WebDAV, you don't need this app at all - it is only required if you want to reuse the login facilities of an existing WebDAV server!
  • If you absolutely must mix internal accounts with ones from authentication apps, disable those authentication apps while creating internal users, and enable them again afterwards.

Technical explanation:
For some authentication apps (e.g. WebDAV), there is no way to tell whether a user exists or not (the only thing you can check with it is whether a certain username/password combination is valid).

When creating a new user, the ownCloud user administration interface however needs to know whether a user already exists or not in any of the backends (so as not to "overwrite"/hide any existing user account).

If now, you have some authentication app enabled, the user backend has to tell ownCloud for every username that it already exists - because it can't determine whether it really exists.

The consequence is that when such an authentication app is enabled, you cannot create any more "internal" users.

Generally it is probably good practice to keep a user database in one place only. Otherwise you can easily end up with conflicting entries (i.e. same username but different password).

See also:
viewtopic.php?t=18726
viewtopic.php?t=19212

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Cannot create users - "The username is already being use

Postby RealRancor » Thu May 21, 2015 9:36 am

Seems on newer OC version the message is now:

"A user with that name already exists"
*gone*

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Cannot create users - "The username is already being use

Postby RealRancor » Mon Jul 27, 2015 6:30 pm

New appname in 8.1 is "User backend using remote HTTP servers"
*gone*


  • Similar Topics
    Replies
    Views
    Last post

Return to “FAQ”

Who is online

Users browsing this forum: No registered users and 1 guest