Sends an invitation, removes, or modifies a user role within an organization.
Arguments
- org
Name of the organization.
- username
Name of the user on GitHub.
- role
The role to give the user in the organization. Can be one of: `"admin"` or `"member"`. Default: `"member"`
Details
To prevent abuse, the authenticated user is limited to 50 organization invitations per 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period.
Role
- `"admin"` - The user will become an owner of the organization. - `"member"` - The user will become a non-owner member of the organization.
References
<https://developer.github.com/v3/orgs/members/#add-or-update-organization-membership>
<https://developer.github.com/v3/orgs/members/#remove-a-member>
GitHub API Documentation reference for private membership check <https://developer.github.com/v3/orgs/members/#check-membership>
GitHub API Documentation reference for public membership check <https://developer.github.com/v3/orgs/members/#check-public-membership>