# Create a Microsoft Entra ID user with groups

> A Slack request creates a Microsoft Entra ID user and adds them to the security groups their team needs.

Source: https://stepwork.com/marketplace/create-a-microsoft-entra-id-user-with-groups

Automatically create a new hire’s Entra ID account from a Slack request with Stepwork. Add the user to the security groups that grant their team apps and shared resources.

**Apps:** Microsoft Entra ID
**Starts with:** Slack request
**Use case:** Employee onboarding
**Best for:** IT Administrator, Helpdesk Technician
**Applications used:** Microsoft Entra ID, Slack
**Business outcome:** Employee experience

## New account. Missing groups.

Setting up a new hire in the Microsoft Entra admin center means creating the user, then adding each security group their team uses. The groups are the part that slips.

One missing group means no shared mailbox, no SharePoint site, or no app on day one. Each admin keeps the list in their head, so the result depends on who picked up the ticket.

## The account and the team’s groups are ready together

Stepwork creates the Entra user and adds the security groups for their team. Those groups grant the team’s apps and shared resources, so day one starts with access in place. The run records who asked and which groups were added.

- The user is created with their name and work email.
- Every security group for the team is added.
- A taken email address stops the run.

## From Slack request to a new Entra account

A teammate posts the new hire’s details in Slack. Stepwork creates the user in the Microsoft Entra admin center and adds the security groups their team uses.

1. **Request it in Slack** (Slack): A teammate posts the new hire’s name, work email, and team in the onboarding channel. That message starts the flow, and Stepwork records who asked and when.
2. **Create the user** (Microsoft Entra ID): Stepwork signs in to the Microsoft Entra admin center and creates the user with their name and work email. If the address is taken, the run stops.
3. **Add their security groups** (Microsoft Entra ID): Stepwork adds the user to each security group for their team. Those groups grant the team’s apps and shared resources.
4. **Confirm and reply in Slack** (Microsoft Entra ID): Stepwork checks the account and its group memberships, then posts the result back in the onboarding channel.

## The groups are created with the account

Creating the Entra user and adding the team’s security groups are one path. Access does not depend on who remembered the group list, because the groups are a step in the path rather than a follow-up ticket.

## Questions

**Q: How do I create an Entra user and add their groups automatically?**
Post the name, work email, and team in Slack. Stepwork creates the user in the Microsoft Entra admin center and adds the security groups for that team.

**Q: What do the security groups do?**
They grant the team’s apps and shared resources, such as a shared mailbox or a SharePoint site.

**Q: Will two new hires on the same team get the same groups?**
Yes. A deterministic agent adds the groups from the request. It does not choose a different set because a different person posted the message.

---

This is the Markdown version of https://stepwork.com/marketplace/create-a-microsoft-entra-id-user-with-groups, 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
