Assign a Permission Set
After creating your scratch org and deploying the source, you must sometimes give your users access to your application, especially if your app contains custom objects.
-
If needed, create the permission set in the scratch org.
-
Open the scratch org in your browser.
-
From Setup, enter
Permin the Quick Find box, then select Permission Sets. -
Click New.
-
Enter a descriptive label for the permission set, then click Save.
-
Under Apps, click Assigned Apps | Edit.
-
Under Available Apps, select your app, then click Add to move it to Enabled Apps.
-
Click Save.
-
-
Retrieve the permission set from the scratch org to your project.
-
Assign the permission set to one or more users of the org that contains the app:
The target username must have permission to assign a permission set. Use the
--on-behalf-offlag to assign a permission set to non-administrator users.
You can also assign permission set licenses to users using the org assign permsetlicense command. It works similarly to the org assign permset command.
See Also