Is there a way to get user's email address via API?

2.7k views Asked by At

Is there a way via BitBucket's API to get the user's email address associated with our group? Under:

https://bitbucket.org/api/1.0/users/foobar

I see their username, display_name, first_name, last_name, etc., but no email address.

In a nutshell, I'm trying to figure out if anyone in our team is NOT using our company's email address.

thanks!

1

There are 1 answers

3
Marty On

Looks like there's an emails endpoint:

Gets the email addresses associated with the account. This call requires authentication.

In your case that would be:

https://bitbucket.org/api/1.0/users/foobar/emails