Membership
This event occurs when there is activity relating to team membership. For more information, see "About teams." For more information about the APIs to manage team memberships, see the GraphQL API documentation or "Team members" in the REST API documentation.
Actions
| Action | Sent when |
|---|---|
added | An organization member was added to a team. |
removed | An organization member was removed from a team. |
Payload
Fields of the delivery for the first action above. Every action shares the event's core fields.
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | |
enterprise | object | No | An enterprise on GitHub. Webhook payloads contain the enterprise property when the webhook is configured |
installation | object | No | The GitHub App installation. Webhook payloads contain the installation property when the event is configured |
member | object | Yes | |
organization | object | Yes | A GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an |
repository | object | No | The repository on GitHub where the event occurred. Webhook payloads contain the repository property |
scope | string | Yes | The scope of the membership. Currently, can only be team. |
sender | object | Yes | |
team | object | Yes | Groups of organization members that gives permissions on specified repositories. |
Subscribing
To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission.