# Invite member with team assignment in GitHub

> A Slack request invites a new engineer to your GitHub organization and adds them to the teams that grant their repositories.

Source: https://stepwork.com/marketplace/invite-member-with-team-assignment-in-github

Automatically invite a new engineer to your GitHub organization from a Slack request with Stepwork. Send the invitation with the teams that grant their repositories.

**Apps:** GitHub
**Starts with:** Slack request
**Use case:** Employee onboarding
**Best for:** IT Administrator, Engineering Manager
**Applications used:** GitHub, Slack
**Business outcome:** Employee experience

## Day one starts. Their repos aren’t there yet.

A new engineer is ready to work, and their manager pings an admin to add them to GitHub. The admin sends the invitation, then works out which teams the role needs from memory or an old message.

Miss a team and they spend their first day asking for the repository they were hired to work on. Add the wrong one and they can read code they should not. Done by hand, two engineers in the same role rarely get the same teams.

## The invitation arrives with the right teams

Stepwork invites the new engineer to your GitHub organization and adds each team in the request. Once they accept, they can open their team’s repositories. The run records who asked and which teams were added.

- The invitation goes to the GitHub username in the request.
- Every team in the request is added.
- A team that does not exist stops the run.

## From Slack request to a pending invitation

A manager posts the new engineer’s details in Slack. Stepwork sends the invitation from your GitHub organization settings and adds their teams, in the same order every time.

1. **Request it in Slack** (Slack): A manager posts the new engineer’s GitHub username and their teams in the onboarding channel. That message starts the flow, and Stepwork records who asked and when.
2. **Invite the member** (GitHub): Stepwork signs in to GitHub, opens the organization’s People page, and invites the person as a member. If they are already in the organization, the run stops instead of sending a second invitation.
3. **Add their teams** (GitHub): Stepwork selects each team from the request on the invitation. Those teams grant the repositories the engineer needs.
4. **Confirm and reply in Slack** (GitHub): Stepwork checks that the invitation is pending with the right teams, then posts the result back in the onboarding channel.

## The same role gets the same teams

A deterministic agent follows one path: invite the member, then add each team from the request. Two engineers in the same role get the same teams, whoever picks up the request.

## Questions

**Q: How do I invite someone to a GitHub organization with teams automatically?**
Post their GitHub username and their teams in Slack. Stepwork sends the invitation from the People page with each team added.

**Q: When can they open the repositories?**
As soon as they accept the invitation. Until then it shows as pending in your organization.

**Q: Does this also create their Okta account?**
No. This flow only works in GitHub. Their identity account comes from a separate flow, creating the user and assigning groups in Okta.

---

This is the Markdown version of https://stepwork.com/marketplace/invite-member-with-team-assignment-in-github, built from the same copy as the page. Everything about Stepwork for AI tools: https://stepwork.com/llms.txt. Book a demo: https://calendly.com/shaun-maclellan/1-1-w-shaun-stepwork
