Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,741
Community Members
 
Community Events
184
Community Groups

Find out if a Bitbucket user has 2FA enabled

Hi! 

I know that on standard Bitbucket plan you can't enforce 2FA, but is there a way for an admin to see if a user has it enabled?

It seems to me that with managed accounts I can see if my users have Atlassian 2FA enabled but not Bitbucket, is that right?

2 answers

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 10, 2022 • edited

Hi @Maria Nawrocik,

We don't display this info on the UI, but you can get it via API.

The API endpoint mentioned in the community question that Peter linked has been deprecated.

You can use an API call like the following now:

curl -u bitbucket_username:app_password https://api.bitbucket.org/2.0/workspaces/workspace-id/members?fields=%2Bvalues.user.has_2fa_enabled

where

bitbucket_username is the Bitbucket username of an account that has admin access to the workspace
app_password is an app password for this account, with at least Account: Read permissions
workspace-id is the workspace id for the workspace you want to check the users of

It's important to include the part ?fields=%2Bvalues.user.has_2fa_enabled at the end of the URL, otherwise the field will not show.

With a call like the one I gave you, you will see a field named has_2fa_enabled (which will be either true or false) for each user in the results.

Please feel free to let me know if you have any questions.

Kind regards,
Theodora

Thank you, that works for me :)

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 10, 2022

You are very welcome, please feel free to reach out if you ever need anything else!

0 votes
Peter Van de Voorde
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 05, 2022

Hey Maria,

would this answer help: https://community.atlassian.com/t5/Bitbucket-questions/Retrieve-list-of-users-with-two-step-verification-enabled-on/qaq-p/1203248 ?

It's a bit of a workaround but it should give you the information you need.

Cheers,
Peter


Thanks Peter, it worked with the updated endpoint

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events