# Create user with profile and role in Salesforce

> A Slack request creates a Salesforce user with the right profile, role, and license for their job.

Source: https://stepwork.com/marketplace/create-user-with-profile-and-role-in-salesforce

Automatically create a Salesforce user from a Slack request with Stepwork. Set the profile, role, and license their job needs, so they start with the right access.

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

## The profile is picked from memory.

A new rep starts, and a Salesforce admin builds their user by hand. They choose a license, a profile, and a role, often by copying whoever had the job last.

Pick the wrong profile and the rep cannot see their accounts, or can see far more than they should. Pick the wrong role and reports and sharing roll up to the wrong manager. Nobody notices until something looks off.

## They sign in with the access their job needs

Stepwork creates the Salesforce user with the profile, role, and license from the request. The new hire starts with the right access, and the run records who asked and what was set.

- Profile, role, and license come from the request.
- A username that is already taken stops the run.
- A profile or role that does not exist stops the run.

## From Slack request to a ready Salesforce user

A manager posts the new hire’s details in Slack. Stepwork creates the user in Salesforce Setup, in the same order every time.

1. **Request it in Slack** (Slack): A manager posts the new hire’s name, work email, profile, and role in the onboarding channel. That message starts the flow, and Stepwork records who asked and when.
2. **Fill in the new user** (Salesforce): Stepwork signs in to Salesforce, opens Users in Setup, and starts a new user with the name, email, and username. Salesforce usernames are unique across every org, so a taken one stops the run.
3. **Set profile, role, and license** (Salesforce): Stepwork picks the license, profile, and role named in the request, then saves the user.
4. **Confirm and reply in Slack** (Salesforce): Stepwork checks the saved user against the request, then posts the result back in the onboarding channel.

## The same job gets the same access

A deterministic agent fills in the same fields in the same order for every new hire. The profile and role come from the request, not from whoever picks up the ticket.

## Questions

**Q: How do I create a Salesforce user automatically?**
Post the new hire’s name, email, profile, and role in Slack. Stepwork creates the user in Setup with those settings and confirms them.

**Q: What if the username is already taken?**
The run stops. Salesforce usernames must be unique across every org, so Stepwork does not pick a different one on its own.

**Q: Does this create their Microsoft account too?**
No. This flow only works in Salesforce. Their identity account comes from a separate flow, creating the user with group memberships in Microsoft Entra ID.

---

This is the Markdown version of https://stepwork.com/marketplace/create-user-with-profile-and-role-in-salesforce, 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
