我正在努力使用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"
。
答案 0 :(得分:0)
叹息......我需要admin:org
范围。