I'm struggling with add-or-update-organization-membership endpoint. I use Octokit and I'm authenticated via OAuth as organization owner and when I try to invite somebody I receive:
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
I have following OAuth scopes: "user,user:repo,write:org,read:org"
.