0

Steps to reproduce

I'm using Github api with Github apps:

  • I am logged in with owner org user
  • and provide next permissions:
    • Read access to actions,
    • administration,
    • deployments,
    • environments,
    • issues,
    • metadata,
    • pull requests.

Then

Problem

The problem is that two_factor_requirement_enabled field is always nil

What I tried

I tried to configure it in Github settings with the following instruction, but the problem persists:

https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication

Relevant documentation

Does this API endpoint works with Github App like it mentioned in documentation?

1.configure MFA in organization settings
2. run next endpoint: https://docs.github.com/en/rest/orgs/orgs?apiVersion=2022-11-28#get-an-organization
3. check the result in two_factor_requirement_enabled field.
im expecting to see here true or false value, but receive nil
WaterFox
  • 850
  • 6
  • 18

0 Answers0