Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit53defcc

Browse files
committed
Announce upcoming changes toGET /user/orgs
1 parent6ce8703 commit53defcc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

‎content/changes/2014-12-08-organization-permissions-api-preview.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ title: Preview the upcoming organization permission changes
44
created_at:2014-12-08
55
author_name:jakeboxer
66
---
7+
**UPDATE (2014-12-12):** The[List your organizations][list-your-organizations] API is now included in this preview as well.
8+
79
We have some upcoming changes that will affect the way organization members and repositories are managed. The most important changes are:
810

911
- The Owners team will no longer be special.
1012
- The[List your repositories][list-your-repos] API will include organization-owned repositories.
1113
- The[List user organizations][list-user-organizations] API will only include public organization memberships.
14+
- The[List your organizations][list-your-organizations] API will require`user` scope or`read:org` scope.
1215

1316
##What's happening to the Owners team?
1417

@@ -58,6 +61,20 @@ Soon, this API will only return public organization memberships.
5861

5962
If your app uses the[List user organizations][list-user-organizations] API to fetch all of the organization memberships (public and private) for the authenticated user, you'll need to update your app to use the[List your organizations][list-your-organizations] API instead. The[List your organizations][list-your-organizations] API returns all organizations (public and private) that your app is authorized to access.
6063

64+
##What's happening to the "List your organizations" API?
65+
66+
OAuth requests will soon require minimum[scopes][] in order to access the[List your organizations][list-your-organizations] API.
67+
68+
Currently, the API response always includes your[public organization memberships][public-org-membership], regardless of the OAuth scopes associated with your request. If you have`user`,`read:org`,`write:org`, or`admin:org` scope, the response also includes your private organization memberships.
69+
70+
Soon, this API will only return organizations that your authorization allows you to operate on in some way (e.g., you can list teams with`read:org` scope, you can publicize your organization membership with`user` scope, etc.). Therefore, this API will require at least`user` or`read:org` scope. (`write:org` and`admin:org` scope implicitly include`read:org` scope.) OAuth requests with insufficient scope will receive a`403 Forbidden` response.
71+
72+
###What should you do?
73+
74+
If you[authenticate via username and password][username-password-authn], you are not affected by this change.
75+
76+
If your app only needs to fetch the user's public organization memberships, you should use the[List user organizations][list-user-organizations] API instead. Since that API only returns public information, it does does not require any scopes.
77+
6178
##Preview period
6279

6380
Starting**today**, these new APIs are available for developers to preview. We expect the preview period to last for four weeks. (Stay tuned to the developer blog for updates.) At the end of the preview period, these additions will become official components of the GitHub API.
@@ -86,3 +103,5 @@ If you have any questions or feedback, please [get in touch with us][contact]!
86103
[list-user-organizations]:/v3/orgs/#list-user-organizations
87104
[list-your-organizations]:/v3/orgs/#list-your-organizations
88105
[public-org-membership]:https://help.github.com/articles/publicizing-or-concealing-organization-membership
106+
[username-password-authn]:/v3/auth/#via-username-and-password
107+
[scopes]:/v3/oauth/#scopes

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp