Newer Version Available
Add Salesforce DX Users
You can use Salesforce DX with these standard user licenses: Salesforce, Salesforce Platform, and Developer.
If your org has Developer licenses, you can add users with the Developer profile and assign them the provided Developer permission set. Alternatively, you can add users with the Standard User or System Administrator profiles. For a standard user, you must create a permission set with the required Salesforce DX permissions. We recommend that you avoid adding users as system administrators unless their work requires that level of authority and not just Dev Hub org access.
Add a Developer User to Your Dev Hub Org
-
Create a user in your Dev Hub org.
- In Setup, enter Users in the Quick Find box, then select Users.
- Click New User.
- Fill out the form.
- Select Developer for User License, and then Developer for Profile.
- After filling out the remaining information, click Save.
-
Assign the built-in Developer permission set to the user.
- On the user's detail page, in the Permission Set Assignments related list, click Edit Assignments.
- In the Available Permission Sets, add the Developer permission set and click Save.
The Developer permission set grants access to Dev Hub features and second-generation packages. For details, see Permission Set for Salesforce DX Users.
Add a System Administrator or Standard User to Your Dev Hub Org
-
Create a user in your Dev Hub org, if necessary.
- In Setup, enter Users in the Quick Find box, then select Users.
- Click New User.
- Fill out the form, and assign the System Administrator or Standard User profile.
- Click Save.
If you’re adding a System Administrator user, you can stop here.
-
If you’re adding a Standard User, create a permission set for Salesforce DX users if you don’t
have one.
- From Setup, enter Permission Sets in the Quick Find box, then select Permission Sets.
- Click New.
- Enter a label, API name, and description. The API name is a unique name used by the API and managed packages.
- Select a user license option. If you plan to assign this permission set to multiple users with different licenses, select None.
- Click Save. The permission set overview page appears. From here, you can navigate to the permissions you want to add or change for Salesforce DX. For the required permissions, see Permission Set for Salesforce DX Users.
-
Apply the Salesforce DX permission set to the Standard User.
- From Setup, enter Permission Sets in the Quick Find box, then select Permission Sets.
- Select the Salesforce DX permission set.
- In the permission set toolbar, click Manage Assignments.
- Click Add Assignments.
- Select the user to assign the permission set to.
- Click Assign.
- Click Done.
You can limit a user’s access by modifying the permissions.
Permission Set for Salesforce DX Users
- Object Settings > Scratch Org Infos > Read, Create, Edit, and Delete
- Object Settings > Active Scratch Orgs > Read, Edit, and Delete
- Object Settings > Namespace Registries > Read
To work with second-generation packages in the Dev Hub org, the permission set must also contain:
- System Permissions > Create and Update Second-Generation Packages
This permission provides access to:
| Salesforce CLI Command | Tooling API Object (Create and Edit) |
|---|---|
| force:package:create | Package2 |
| force:package:version:create | Package2VersionCreateRequest |
| force:package:version:update | Package2Version |