1

I'm using GitLab Community Edition 8.2.2

What's the correct way to delete a user if you want to recreate it?

In my case the user wanted to swap the userid and name fields but keep his email address unchanged. When I try to add the user, after already deleting him.
I get the error:

"Username has already been taken Username already exists" even though the user does not exists.

Piyush Gupta
  • 2,181
  • 3
  • 13
  • 28

1 Answers1

0

Thanks. use of the API worked. It allowed me to query all the users, and I identified that there was another user using the same id, thus that was the issue with being able to add the new user. For those wanting to see the api called, its not that obvious within the GitLab documentation. I used:

curl "http://yourgitserver.com/api/v3/users?private_token=DUTnxN7youprivatetokenvalueDUTnxN7"