Skip to content

Commit 8c7d0a5

Browse files
committed
Corrected OAuth scopes required.
I thought requiring a "user" OAuth scope for reading team membership was a bit odd, so I tried it with "read:org" and it worked, so correcting the documentation. "write:org" and "admin:org" are untested, but would make more sense than "user".
1 parent 9c454b4 commit 8c7d0a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/v3/orgs/teams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: Organization Teams | GitHub API
99

1010
All actions against teams require at a minimum an authenticated user who
1111
is a member of the Owners team in the `:org` being managed. Additionally,
12-
OAuth users require "user" [scope](/v3/oauth/#scopes).
12+
OAuth users require "read:org", "write:org" or "admin:org" [scopes](/v3/oauth/#scopes) depending on the action performed.
1313

1414
## List teams
1515

0 commit comments

Comments
 (0)