Skip to content

Commit

Permalink
Add GraphQL Cookbook Mutation for Enforce 2FA
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshill committed Sep 20, 2023
1 parent d0cc784 commit 7710e30
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pages/apis/graphql/cookbooks/organizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,27 @@ mutation UpdateSessionIPAddressPinning {
}
```

## Enforce 2FA for your organization

Require users to have 2FA enabled before they can access your organization Buildkite dashboard.

```graphql
mutation EnableEnforced2FA {
organizationEnforceTwoFactorAuthenticationForMembersUpdate(
input: {
organizationId: "organization-id",
membersRequireTwoFactorAuthentication: true
}
) {
organization {
id
membersRequireTwoFactorAuthentication
uuid
}
}
}
```

## Query the usage API

Use the usage API to query your organization's usage by pipeline or test suite at daily granularity.
Expand Down

0 comments on commit 7710e30

Please sign in to comment.