# Create IAM user with group membership in AWS

> A Slack request creates an IAM user in AWS and adds them to the groups that grant their permissions.

Source: https://stepwork.com/marketplace/create-iam-user-with-group-membership-in-aws

Automatically create an IAM user in AWS from a Slack request with Stepwork. Set the user name, then add the groups that grant their permissions.

**Apps:** AWS
**Starts with:** Slack request
**Use case:** Access management
**Best for:** Cloud Administrator, IT Administrator
**Applications used:** AWS, Slack
**Business outcome:** Time savings

## Cloud access waits on the one person who knows IAM.

A new engineer needs AWS access, and the request sits until a cloud admin has time. Then the admin creates the IAM user and attaches permissions from a checklist, or from whatever the last person in that role had.

Permissions attached straight to a user are hard to review later. Two people in the same role end up with different access, and nobody can say why.

## The user gets their permissions from groups

Stepwork creates the IAM user and adds them to each group in the request. Permissions come from those groups, so two people in the same role match. The run records who asked and which groups were added.

- The user is created with the name from the request.
- Every group in the request is added.
- A user name that is already taken stops the run.

## From Slack request to a ready IAM user

A teammate posts the request in Slack. Stepwork creates the user in the IAM console and adds their groups, in the same order every time.

1. **Request it in Slack** (Slack): A teammate posts the user name and the IAM groups in the access channel. That message starts the flow, and Stepwork records who asked and when.
2. **Create the user** (AWS): Stepwork signs in to the AWS console, opens IAM, and creates the user with that name. If the name is already taken, the run stops instead of changing the existing user.
3. **Add their groups** (AWS): Stepwork adds the user to each group from the request. The groups carry the permission policies, so nothing is attached to the user directly.
4. **Confirm and reply in Slack** (AWS): Stepwork checks the user’s group memberships, then posts the result back in Slack.

## Permissions come from groups, every time

The recorded path adds groups and never attaches a policy to the user directly. A deterministic agent follows that path for every request, so access stays easy to review.

## Questions

**Q: How do I create an IAM user with groups automatically?**
Post the user name and groups in Slack. Stepwork creates the user in the IAM console and adds each group.

**Q: Does it create access keys?**
No. This flow creates the user and adds their groups. Access keys stay a separate decision.

**Q: What if a group in the request does not exist?**
The run stops on that step and records the reason. It does not pick a similarly named group.

---

This is the Markdown version of https://stepwork.com/marketplace/create-iam-user-with-group-membership-in-aws, 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
