Github API将用户添加到组织

时间:2016-12-02 19:25:43

标签: github-api octokit

我正在努力使用add-or-update-organization-membership端点。我使用Octokit并通过OAuth作为组织所有者进行身份验证,当我尝试邀请某人收到时:

Octokit::Forbidden: PUT https://api.github.com/orgs/<org name>/memberships/<user login>: 403 - You must be an admin to add or update an organization membership. // See: https://developer.github.com/v3/orgs/members/#add-or-update-organization-membership

我有以下OAuth范围:"user,user:repo,write:org,read:org"

1 个答案:

答案 0 :(得分:0)

叹息......我需要admin:org范围。