Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Create and Assign a Permission Set to Developer Users
Standard Developer Permission Set
Create a Permission Set
Follow the steps to create a permission set, then add the required scratch org and packaging permissions.
Required Permissions for Scratch Orgs
- Object Settings > Scratch Org Infos > Read, Create, Edit, and Delete
- Object Settings > Active Scratch Orgs > Read, Edit, and Delete
Required Permissions for Unlocked Packaging and Second-Generation Managed Packaging
To work with unlocked or second-generation managed packages in the Dev Hub org, the permission set must contain the scratch org permissions and:
- Object Settings > Namespace Registries > Read
- System Permissions > Create and Update Second-Generation Packages
The system permission provides access to:
| Salesforce CLI Command | Tooling API Object (Create and Edit) |
|---|---|
| package create | Package2 |
| package version create | Package2VersionCreateRequest |
| package version update | Package2Version |
Assign Permission Set to Users
To assign one or more users to a permission set, or to remove a user from a permission set, see Manage Permission Set Assignments in Salesforce Help.