You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requesting the [member list](/v3/orgs/members/index.html#members-list) of an organization of which you are not a member now redirects to the [public members list](v3/orgs/members/index.html#public-members-list). Requests to [membership check](/v3/orgs/members/index.html#check-membership) resources of an organization of which you are not a member are similarly redirected to the equivalent [public membership check](/v3/orgs/members/index.html#check-public-membership) unless it is a check about yourself, in which case it is treated as a request by a member.
9
+
10
+
The changes where made to clarify the purpose of these various resources. The `/orgs/{org}/members` resources are intended for use by members of the organization in question. The `/orgs/{org}/public_members` resources are intended for acquiring information about organizations of which you are not a member.
Copy file name to clipboardExpand all lines: content/v3/orgs/members.md
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,10 @@ title: Organization Members | GitHub API
7
7
* TOC
8
8
{:toc}
9
9
10
-
## List members
10
+
## Members list
11
11
12
12
List all users who are members of an organization. A member is a user
13
-
that belongs to at least 1 team in the organization. If the authenticated user is
14
-
also a member of this organization then both concealed and public
15
-
members will be returned. Otherwise only public members are returned.
13
+
that belongs to at least 1 team in the organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned. If the reqeuster is not a member of the organization the query will be redirected to the [public members list](#public-members-list).
16
14
17
15
GET /orgs/:org/members
18
16
@@ -21,25 +19,29 @@ members will be returned. Otherwise only public members are returned.
21
19
<%= headers 200 %>
22
20
<%= json(:user) { |h| [h] } %>
23
21
24
-
### Response if requester is not a organization member
22
+
### Response if requester is not an organization member
0 commit comments