# Create user and assign groups in Okta

> A Slack request creates a new hire's Okta account and assigns their groups, so their app access is ready on day one.

Source: https://stepwork.com/marketplace/create-user-and-assign-groups-in-okta

Automatically create a new hire’s Okta account from a Slack request with Stepwork. Add their name, email, and title, then assign the groups that grant their apps.

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

## Day one starts. Their apps don’t.

A new hire’s details arrive in Slack or an HR email, and someone in IT builds the Okta account by hand. They type the name, email, and title, then work out which groups the role needs.

Miss one group and the person spends their first morning asking for access. Add the wrong one and they can open apps they should never see. Done by hand, the same role is rarely set up the same way every time, so no two accounts match.

## The account is ready before their first morning

Stepwork creates the Okta account and assigns the groups from the request. The new hire can open their apps on day one, and the run records who asked and which groups were added.

- The account is created with the name, email, and title from the request.
- Every group in the request is assigned.
- A duplicate email stops the run.

## From Slack request to a ready Okta account

A teammate posts the new hire’s details in Slack. Stepwork creates the account in the Okta admin console and adds their groups, in the same order every time.

1. **Request it in Slack** (Slack): A teammate posts the new hire’s name, work email, title, and groups in the onboarding channel. That message starts the flow, and Stepwork records who asked and when.
2. **Add the person** (Okta): Stepwork signs in to the Okta admin console and adds the user with their name, work email, and title. If that email already belongs to someone, the run stops instead of creating a duplicate.
3. **Assign their groups** (Okta): Stepwork adds the user to each group from the request. Those groups grant their apps, so access is ready on their first day.
4. **Confirm and reply in Slack** (Okta): Stepwork checks the account and its group memberships, then posts the result back in the onboarding channel.

## The same role gets the same groups

Stepwork runs the path you recorded in the Okta admin console: add the person, then assign each group from the request. Two new hires in the same role get the same groups, because the path does not change with who picks up the ticket.

## Questions

**Q: How do I create an Okta user and assign groups automatically?**
Record it once in the Okta admin console: add the person, then assign the groups. After that, a Slack request runs the same path. Stepwork stops if the email already belongs to someone.

**Q: Can I create an Okta user from Slack?**
Yes. A teammate posts the name, work email, title, and groups in the onboarding channel. Stepwork creates the account, assigns those groups, and posts the result back.

**Q: Does this also create their Google account?**
No. This flow only creates the Okta user and assigns groups. The Google account is a separate flow, creating the user in their Google Workspace org unit.

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

---

This is the Markdown version of https://stepwork.com/marketplace/create-user-and-assign-groups-in-okta, 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
