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

  • The URL of our Bitbucket is in the form www.bitbucket.org/COMPANY_NAME
  • The endpoint I am using to get a list of users and their information is https://api.bitbucket.org/2.0/teams/COMPANY_NAME/members
1 Like