Skip to content

Commit ab78280

Browse files
committed
Merge pull request github#85 from github/2fa-filter
Document filter for auditing 2FA
2 parents 5f260f1 + 86ee024 commit ab78280

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
kind: change
3+
title: Audit organization members for two-factor authentication
4+
created_at: 2014-01-29
5+
author_name: pengwynn
6+
---
7+
8+
We've added a [new filter][filter] for listing members of an organization without
9+
[two-factor authentication][2fa-blog] enabled:
10+
11+
12+
<pre class="terminal">
13+
$ curl -H "Authorization: token [yours]" \
14+
https://api.github.com/orgs/octokit/members\?filter\=2fa_disabled
15+
</pre>
16+
17+
The new filter is available for owners of organizations with private
18+
repositories. Happy auditing and [send us your feedback or questions][contact].
19+
20+
[filter]: /v3/orgs/members/#audit-two-factor-auth
21+
[2fa-blog]: https://github.com/blog/1614-two-factor-authentication
22+
[contact]: https://github.com/contact?form[subject]=API+2FA+filter
23+

content/v3/orgs/members.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ will be redirected to the [public members list](#public-members-list).
1717

1818
GET /orgs/:org/members
1919

20+
### Parameters {#audit-two-factor-auth}
21+
22+
Name | Type | Description
23+
--------|---------|--------------
24+
`filter`|`string` | Filter members returned in the list. Can be one of:<br/>* `2fa_disabled`: Members without [two factor authentication][2fa-blog] enabled. Available for owners of organizations with private repositories.<br/>* `all`: All members the authenticated user can see.<br/><br/>Default: `all`
25+
26+
[2fa-blog]: https://github.com/blog/1614-two-factor-authentication
27+
2028
### Response
2129

2230
<%= headers 200 %>

0 commit comments

Comments
 (0)