Organization
This event occurs when there is activity relating to an organization and its members. For more information, see "About organizations." For information about the APIs to manage organizations, see the GraphQL documentation or "Organizations" in the REST API documentation.
Actions
| Action | Sent when |
|---|---|
deleted | An organization was deleted. |
member-added | A member accepted an invitation to join an organization. |
member-invited | A member was invited to join the organization. |
member-removed | A member was removed from the organization. |
renamed | The name of an organization was changed. |
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 |
membership | object | No | The membership between the user and the organization. Not present when the action is member_invited. |
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 |
sender | object | Yes | A GitHub user. |
Subscribing
To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission.