Can't set up username on the system
Asked by Iris Ayelin:

Hi,

I have two people in my organization that have issues with the username on Bitbucket.

The first one changed her username from 'Personal settings' and now she doesn't has any permissions to the repositories she had permissions before.

She tried to change it back to the old username, but she got an error saying the username already exist.

How I can return her username to the old one?

The second never had a bitbucket account before and when I invited him to our workspace he received the invitation but when he clicked on the link to start the process it asked him to create a new account.

when he tried to continue and write his username he got an error that said 'This username already exists'

He tried to use another username but it didn't work.

Can you help with this?

Thank you!


Answers:
author: Patrik S
body: Hello [@Iris Ayelin](/t5/user/viewprofilepage/user-id/5107223) ,

Welcome to Atlassian Community!

Changing the username of an account does not have any effect on the permissions of that account. After changing the username, the user should have the same access as before.

What might have happened is that the user has local repository clones prior to the username change, which have still the old username in the remote-url. If this is the case, the user will need to run the following command in the terminal inside the local cloned repository to update the remote-url and reflect the new username :

```
git remote set-url origin https://<NEW_USERNAME>@bitbucket.org/<WORKSPACE>/<REPOSITORY>.git
```

As for the message "This username already exists", this error message is being shown because all the usernames in Bitbucket cloud must be unique, considering all the other existing users in the platform, including users from different workspaces than yours. Once the user changed their username to a different one, the old username became "available", and some other user of the platform might have created an account using the old username.

Since there's already a Bitbucket user that is using that username, it's expected the user to receive that message. So I'm afraid the user will not be able to use that username because it's already taken. You can try testing different usernames if you want, to see if any others that you would like to change are currently available. Usernames can contain only ASCII letters, numbers, dashes and underscores.

Hope that helps! Let me know in case you have any questions.

Thank you, [@Iris Ayelin](/t5/user/viewprofilepage/user-id/5107223) !

Patrik S

comments: author: Iris Ayelin
body: Hi,

I appreciate your support!

For the first account, it helped to update the repository. Thanks!

For the second, we tested different usernames but when we clicked on continue it sent us to the first page to set up the username again.


author: Patrik S
body: Hello [@Iris Ayelin](/t5/user/viewprofilepage/user-id/5107223) ,

Happy to know that it worked for the first account :)

For the account you are still facing issues, is the UI returning any error? Would it be possible for you to share a screenshot of the pages you are seeing?


author: Iris Ayelin
body: Hey Patrik,

Unfortunately, he didn't get any errors.

It sends him back to the login page.


author: Patrik S
body: Hey [@Iris Ayelin](/t5/user/viewprofilepage/user-id/5107223) ,

Would it be possible for you to share some screenshots of the pages the user is seeing?


author: Iris Ayelin
body: Hi,

This is the page the user is seeing:

![image.png](https://mail.google.com/mail/u/0?ui=2&ik=9d65702775&attid=0.1&permmsgid=msg-a:r-7382542766076924308&th=1867e34f8cbb4e96&view=fimg&fur=ip&sz=s0-l75-ft&attbid=ANGjdJ81bOP_gt50S3g-7czUbc2yr666vnXfvIex7DusaBXajZdKrQGK4JQtr0qJdwPzNTi4s8CSlhNvU7b6M0G_RajGSuFq7Ev-Ofl-xVJwwZk2_TI6GJF7y1zj1gE&disp=emb&realattid=ii_leh2k1zc0)


author: Patrik S
body: Hey Iris,

I'm afraid that the image didn't make it through.

It seems like it was attached to an e-mail reply. In this case, could you please attach the image directly to this community post instead of via e-mail ?


author: Iris Ayelin
body: Hi Patrik,

Can you check my last comment? I attached a picture of the page the user is seeing


author: Patrik S
body: Hello Iris,

Unfortunately, the image is not loading. I went ahead and created an internal support ticket using the e-mail of your community account, so you can share more details about the error user is seeing. You should be receiving an e-mail with the ticket link soon. In case you don't receive it, let me know so I can share the link here.

Thank you, Iris!  
Patrik S


Tags: bitbucket-cloud

cloud