> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ravenna.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Workflows

> Use GitHub Access workflow actions in Ravenna to invite and remove organization members, change roles, and manage GitHub teams and team membership.

Use GitHub Access actions in workflows (Automated actions triggered by ticket events or manual triggers) to manage organization membership, roles, and teams. Actions appear under the **GitHub Access** tile in the workflow builder, grouped into **Member** and **Team**.

See the [GitHub Access setup guide](https://docs.ravenna.ai/integrations/github/setup.md) to connect your organization

## Member actions

> [accordion] Invite Member
>
> Invites a person to the GitHub organization by email. They become a member once they accept the invitation from GitHub.
>
> **Input fields:**
>
> * `Email` - Email address to invite
> * `Organization Role` - **Member**, or **Owner** to make them an organization owner
> * `Teams` (optional) - Teams they join once they accept
>
> **Common use cases:**
>
> * Invite new engineers during onboarding
> * Invite someone before granting them a team through an access request

> [accordion] Get Member
>
> Checks whether a person is an active member of the GitHub organization. The step adds **On Success** and **On Failure** branches. **On Success** runs when **Is Member** is true.
>
> **Input fields:**
>
> * `User` - The person to look up
>
> **Output data:**
>
> * `Is Member` - Whether the person is an active organization member
> * `GitHub` > `Username` - Their GitHub username, if a member
> * `GitHub` > `Organization Role` - Their organization role, if a member
>
> **Common use cases:**
>
> * Invite someone only when they aren't a member yet
> * Check membership before adding someone to a team

> [accordion] Remove Member
>
> Removes a person from the GitHub organization and all of its teams.
>
> **Input fields:**
>
> * `User` - The person to remove
>
> **Common use cases:**
>
> * Remove GitHub access during offboarding
> * Remove contractors when their engagement ends

> [accordion] Set Organization Role
>
> Makes an organization member an owner, or changes an owner back to a member.
>
> **Input fields:**
>
> * `User` - The organization member
> * `Organization Role` - **Member** or **Owner**
>
> **Common use cases:**
>
> * Grant temporary owner rights after approval
> * Remove owner rights during a role change

> [accordion] Cancel Invitation
>
> Cancels the pending organization invitation sent to an email address.
>
> **Input fields:**
>
> * `Email` - The email the invitation was sent to
>
> **Common use cases:**
>
> * Withdraw an invitation when an offer is rescinded
> * Clean up invitations sent to the wrong address

## Team actions

> [accordion] Add User to Team
>
> Adds a user to one or more GitHub teams. For someone already on a team, it changes their role. The person needs a linked GitHub account and an active organization membership. See [who can be added to a team](https://docs.ravenna.ai/integrations/github/access-provisioning.md).
>
> **Input fields:**
>
> * `User` - The person to add
> * `Teams` - One or more synced teams
> * `Team Role` - **Member**, or **Maintainer** to let them manage the team
>
> **Common use cases:**
>
> * Add new engineers to their team's repositories during onboarding
> * Make someone a team maintainer

> [accordion] Remove User from Team
>
> Removes a user from one or more GitHub teams. Teams the user isn't directly on are skipped.
>
> **Input fields:**
>
> * `User` - The person to remove
> * `Teams` - One or more synced teams
>
> **Common use cases:**
>
> * Remove repository access when someone changes teams
> * Take away team access during offboarding

> [accordion] Check Team Membership
>
> Checks whether a user is on a GitHub team, directly or through a child team. The step adds **On Success** and **On Failure** branches. **On Success** runs when **Is Member** is true.
>
> **Input fields:**
>
> * `User` - The person to check
> * `Team` - The synced team to check
>
> **Output data:**
>
> * `Is Member` - Whether the user is on the team
>
> **Common use cases:**
>
> * Skip the add step when the person is already on the team
> * Branch an access request on existing team access

> [accordion] List User Teams
>
> Lists the synced GitHub teams a user is on.
>
> **Input fields:**
>
> * `User` - The person whose teams to list
>
> **Output data:**
>
> * `Teams` - The synced teams the user is on
>
> **Common use cases:**
>
> * Record someone's teams on an offboarding ticket
> * Loop over a person's teams to remove them

> [accordion] List Team Members
>
> Lists the users on a GitHub team.
>
> **Input fields:**
>
> * `Team` - The synced team
> * `Members` - **Direct members**, or **Including child teams**
>
> **Output data:**
>
> * `Members` - The team's members who are linked to Ravenna users
>
> **Common use cases:**
>
> * Notify a team's members about a change
> * Review who has a team's repository access

> [accordion] Create Team
>
> Creates a GitHub team and adds it to Ravenna.
>
> **Input fields:**
>
> * `Team Name` - Name of the new team
> * `Description` (optional) - What the team is for
> * `Visibility` - **Visible** to every organization member, or **Secret**
>
> **Output data:**
>
> * `Team` - The new team
>
> **Common use cases:**
>
> * Create a team for a new project from a request form
> * Create a team, then add its first members in the next step

> [accordion] Update Team
>
> Renames a GitHub team or changes its description. Renaming also changes the team's slug used in @mentions.
>
> **Input fields:**
>
> * `Team` - The synced team to change
> * `Team Name` (optional) - New name
> * `Description` (optional) - New description
>
> **Common use cases:**
>
> * Rename a team after a reorganization
> * Keep team descriptions current

> [accordion] Delete Team
>
> Deletes a GitHub team and its child teams.
>
> **Input fields:**
>
> * `Team` - The synced team to delete
>
> **Common use cases:**
>
> * Remove teams for finished projects
> * Clean up teams after a reorganization

GitHub teams also work in other workflow inputs that take user groups.

## GitHub fields in workflows

Each linked user carries their GitHub account details. Find them under a person field, such as **Ticket > Requester > GitHub**:

| Field | Description |
| - | - |
| **Username** | GitHub username |
| **Name** | Public profile name |
| **Organization Role** | Role in the GitHub organization: `ADMIN` or `MEMBER` |

Learn more about [workflow actions](https://docs.ravenna.ai/documentation/workflows/actions.md) and [GitHub agent tools](https://docs.ravenna.ai/integrations/github/agent-tools.md)


## Related topics

- [Workflows](https://docs.ravenna.ai/documentation/workflows/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.