# Invite member with role in GitLab

> A Slack request invites a new engineer to the right GitLab groups with the role level their job needs.

Source: https://stepwork.com/marketplace/invite-member-with-role-in-gitlab

Automatically invite a GitLab member with the right role from a Slack request with Stepwork, so engineers get project access without waiting on an admin.

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

## Day one starts. Their GitLab groups are still empty.

Managers ping IT to add a new engineer to GitLab. The invite goes out, then someone guesses which groups and role level the job needs.

Miss a group and they cannot open the projects they were hired for. Over-grant a role and they get more than the role allows. Two people in the same job rarely land the same access.

## Engineers get project access without waiting on an admin

Stepwork invites the new member to the appropriate GitLab groups with the right role level. The run records who asked and which groups received the invite.

- The invitation goes to the GitLab username in the request.
- Each named group gets the specified role.
- A missing group or role stops the run.

## From Slack request to a pending GitLab invite

A manager posts the new engineer’s details in Slack. Stepwork sends the GitLab invitations with the right roles.

1. **Request it in Slack** (Slack): A manager posts the GitLab username, groups, and role level in the onboarding channel. That message starts the flow, and Stepwork records who asked and when.
2. **Open each group** (GitLab): Stepwork signs in to GitLab and opens each named group’s members page. If a group cannot be found, the run stops.
3. **Invite with the role** (GitLab): Stepwork invites the member to each group at the role level from the request, the same grant an admin would choose by hand.
4. **Confirm and reply in Slack** (Slack): Stepwork checks that the invitations are pending with the right roles, then posts the result back in Slack.

## The same role gets the same GitLab access

A deterministic agent follows one path: invite the member, then set each group role from the request. Two engineers in the same job get the same access.

## Questions

**Q: How do I invite someone to GitLab with the right role automatically?**
Post their GitLab username, groups, and role in Slack. Stepwork sends the invitations with those roles.

**Q: When can they open the projects?**
After they accept the invitation. Access follows the groups and roles on that invite.

**Q: How do I remove access when someone leaves?**
Removing a member from a group in GitLab is the offboarding counterpart.

---

This is the Markdown version of https://stepwork.com/marketplace/invite-member-with-role-in-gitlab, 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
