Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Has_2fa_enabled is null instead of True or False

Hello everyone,

I’m using the API to get a list of team members and whether they enabled the Two Factor Authentication.

I only get a Boolean value for the has_2fa_enabled property in my own object in the response. All the other team members are Null

What am I missing?

Extra info

1 answer

1 accepted

1 vote
Answer accepted

Hi @victorferreirait,

  • has_2fa_enabled = Null indicates that 2FA was never enabled on the account.
  • has_2fa_enabled = False indicates that 2FA was previously enabled on the account, but it is now disabled.

I hope this helps to clarify.

As a side note, I would suggest using the workspaces resource instead of the teams one, as the teams one is deprecated:

The field has_2fa_enabled is not visible by default with the workspaces resource, but you can get it the following way:{member_uuid}?fields=user.has_2fa_enabled

If you have any questions, please feel free to let me know.

Kind regards,

Hi Theodora, this helped.
But I still see a lot of null values. To test this implementation I asked a friend that had this feature disabled, to turn it on.

He said he did it, but it still returns null for his account. He did it 3 days ago.

Does it take some time until I can see updated values? Or is it a matter of permission? Which members I am able to see this info of?

Thanks in advance!

Hi Victor!

I don't believe this is a matter of permissions or time, you just need to be a member of a workspace that you are running this API call for and the team member must also be a member of the workspace.

Could you please confirm if you're seeing this issue with 2.0/workspaces instead of 2.0/teams?

If your friend is a member of the workspace that you're testing this implementation for, I can think of two possible reasons why this may be occurring:

(1) Your friend has enabled 2FA for the Atlassian account ( instead of the Bitbucket account (

Bitbucket Cloud now uses Atlassian accounts for authentication, and it is possible to set up 2FA for both the Atlassian account and the Bitbucket account. Bitbucket Cloud had already a 2FA feature before we integrated with Atlassian accounts and we have a feature request to unify them

The value of has_2fa_enabled for the endpoint we're discussing will show as true only if 2FA is enabled for the Bitbucket account, it doesn't check Atlassian account 2FA.

You can ask your friend to check the links I mentioned above for Atlassian and Bitbucket 2FA and confirm which one he has enabled.

(2) Another possibility is that he may have enabled 2FA for a different Bitbucket account (in case he is using multiple Bitbucket accounts).

Please feel free to let me know if (1) is the case when you check with your friend and if you have any questions.

Kind regards,

You earned the Best Collaborator Badge
See all badges


Hahaha it was 1.
They had enabled the 2FA for their Atlassian account.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

106 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you