Copy profile, permission sets, and permission set groups from one Salesforce user to another. Includes license validation, comparison summary, and high-risk permission warnings.
Clone this repo, install the Salesforce CLI (sf), then deploy to your org and assign the Permission Set Copier User permission set. Add the Permission Set Copier tab to an app and open it to copy permissions between users. See below for details.
- A Salesforce org (Developer Edition or higher)
- Salesforce CLI (sf) installed and authenticated to your org
- Apex: PermissionCopyController, PermissionCopyControllerTest
- LWC: permissionCopyForm
- Tab: Permission_Set_Copier
- FlexiPage: Permission_Set_Copier_Page
- Permission set: PermissionSetCopier_User
Admins can copy profile and permission sets (and optionally permission set groups) from a source user to a target user, with license validation and high-risk permission warnings.
From the repo root (default org or specify target):
sf project deploy startOr to a specific org:
sf project deploy start --target-org YOUR_ORG_ALIASOr using the manifest:
sf project deploy start --manifest manifest/package.xml --target-org YOUR_ORG_ALIAS- Assign the permission set: Setup → Permission Sets → Permission Set Copier User → Manage Assignments.
- Add the tab to an app: Edit an app → Navigation Items → add Permission Set Copier.
- Copy permissions: Users need Modify All Data or Manage Internal Users (or equivalent) to run the copy.
force-app/main/default/
classes/ PermissionCopyController, PermissionCopyControllerTest
lwc/permissionCopyForm/
tabs/ Permission_Set_Copier
app/flexipages/ Permission_Set_Copier_Page
permissionsets/ PermissionSetCopier_User
manifest/package.xml
config/project-scratch-def.json
- Salesforce API 62.0+
- Permission Set Groups optional (Spring '20+ orgs)
Contributions are welcome. Please open an issue or pull request.
This project is licensed under the MIT License — see the LICENSE file.