Issue #6995 invalid

Add REST API feature to convert email address to user name

Dan Fabulich
created an issue

Given an email address me@example.com, I'd like to get the Bitbucket user name associated with that account.

Specifically, we use Bitbucket teams at our organization, and would like a way to automatically remove users from out Bitbucket team when they leave the company. We'd like to query for the Bitbucket username for "fired@example.com" and remove that Bitbucket user from our Bitbucket team.

Apropos support ticket JST-60687 there isn't really another good way to synchronize Bitbucket teams with employee accounts, except to track it all manually.

Comments (5)

  1. Nicolas Venegas

    Hi Dan

    Ideally our API should allow email addresses in place of usernames for most operations. We probably need to audit this, but if you let me know which endpoints you are using, I can patch those quickly.

    Cheers

    Nicolas

  2. Log in to comment