Cannot create user with same username as a deleted user.
When we try to create the users with the same name that is already deleted from the UI months back. We are getting below error message.
{"errorMessages": [ "A user with that username already exists."], "errors": {}}
Hello @Chaitanya M
Welcome to the Atlassian community.
How was the account originally created?
How exactly did you delete the account?
What process are you going through now to try to create the account?
It is possible that since you deleted the account somebody else has created an account with the same username.
Hi @Trudy Claspill,
I used Jira rest Api's to perform all the operation which are mentioned below:
I'm creating and deleting the user using the Jira rest api call.
Creating the user: https://your-domain.atlassian.net/rest/api/2/user
Deleting the user: https://your-domain.atlassian.net/rest/api/2/user?accountId=
I am using above Create API call to create the account. No one is using this account expect me.
If I try to create the user with the same name, that I have already deleted it is showing the response mentioned in the query.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Chaitanya M
It appears that you are using this API endpoint.
Notice the description for the function:
Deletes a user. If the operation completes successfully then the user is removed from Jira's user base. This operation does not delete the user's Atlassian account.
When you use this API to delete a user you are only removing them from the Jira instance. You have not removed their account entirely from Atlassian Cloud.
Since an Atlassian Cloud account with the same email address continues to exist, you can't use the Create User endpoint to create it again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.