Page MenuHomePhabricator

Change/delete username in Phabricator
Closed, ResolvedPublic

Description

I had my username changed recently (on-wiki) and I tried something and ended up creating a new account which btw, I cannot OAuth to my current wiki account since it is already linked to my old account in Phab. and I can't login into my old Phab. account. Can something be done regarding this? Thank you

My old account: https://phabricator.wikimedia.org/p/JAaron95/
New account: https://phabricator.wikimedia.org/p/UY_Scuti/
Username on-wiki: UY Scuti

Event Timeline

Hi, could you clarify what exactly is requested in this task?
Which mediawiki.org and/or LDAP/Gerrit/wikitech account would you like to be linked against which Phabricator user name? Thanks.

Phabricator uses whatever account you are logged in with on mediawiki.org; I'm not sure I understand what the problem is. Can you provide exact reproduction steps?

As you can see, my mediawiki account is linked with the Phab. account 'JAaron95' (I can no longer access it) and I can't unlink it to be able to link it with my current Phab. account 'UY Scuti'. Does that make sense?

Aklapper triaged this task as Low priority.EditedApr 25 2016, 11:16 AM
Aklapper added a subscriber: mmodell.

ended up creating a new account

Meh. Could you elaborate how exactly creating a new account on Phabricator happened and why the 'old' Phab account wasn't (re)used?
Wondering how to deal with on-wiki account renames in general and how to potentially avoid your situation in the future...

As a Phabricator admin, via the UI, I cannot "unlink" https://phabricator.wikimedia.org/p/JAaron95/ from https://www.mediawiki.org/wiki/User:UY_Scuti (Phabricator admins are not that powerful).
Only the user can (if the user could still log in) via https://phabricator.wikimedia.org/settings/panel/external/ by removing/adding either LDAP/Gerrit/wikitech or OAuth/SUL/on-wiki (external) accounts but only one external account per type can be linked to one Phabricator account, and one account (whether LDAP or OAuth/SUL) has to remain linked.
I cannot delete an account that has been active in Phabricator either as it would destroy the user history.

I am not sure how to proceed here.
Maybe could be fixed by editing the Phabricator database directly? @mmodell might know.

What happens if you try to log in via OAuth? OAuth does not really depend on the username, so I would expect that you get logged into the JAaron95 account where you can do the unlinking.

@Aklapper Sorry for being a nuisance, I am completely a n00b here. I just created it, assuming I would be able to unlink my mediawiki account from the old Phab. account and link it to the new one, which I was wrong.
@Tgr That's right, I get logged into the account 'JAaron95', but I can't unlink it as it is the only login account I have.

Just log into the account, go to the OAuth settings ( https://phabricator.wikimedia.org/settings/panel/external/ ), click on the reload icon and you should be able to update to a different wiki account (such as a throwaway account you create for that purpose). Not an elegant solution but it should work.

Login Failed
Your Phabricator account is already connected to an external account on this provider ("MediaWiki"), but you are currently logged in to the provider with a >different account. Log out of the external service, then log back in with the correct account before refreshing the account link.

This is what I get, am I missing something?

The only way to unlink it from one wiki account is if you have your account linked to some other authentication method, e.g. ldap.

Request for Clarification:

@UY_Scuti: Can you still access the @JAaron95 account? Unlinking the account would be an easy solution if you also had ldap linked, but without an ldap account phabricator won't let you remove the wiki oauth link.

Proposed solution:

I could manually remove the link but I would need some way to validate that action before I do so. So I would need at least a comment from @JAaron95 stating the intention to unlink and, even better, a signed wiki edit from the linked wiki account that also authorizes the change.

Second Opinion:

@Aklapper: Does all of the above sound reasonable?

@mmodell: Fortunately I can still access the JAaron95 account (from Chrome, the one that I don't use) considering the fact that I locked myself out when I uninstalled TOTP mobile authenticator from my phone.

I would like this account be unlinked from the currently linked Wiki account. Diff of signed Wiki edit from the account UY Scuti.

@mmodell: Fortunately I can still access the JAaron95 account (from Chrome, the one that I don't use) considering the fact that I locked myself out when I uninstalled TOTP mobile authenticator from my phone.

I would like this account be unlinked from the currently linked Wiki account. Diff of signed Wiki edit from the account UY Scuti.

Done.

@UY_Scuti: Now it should be possible to link your wiki account.

Crucio subscribed.

Thanks everyone :)