Importing a Permission Set
You can use the Permission Workbench to import permission details from a CSV file and save the data as a new permission set.
You can import a CSV file that contains permission data that has been exported or created in the following format:
- To define object permissions:
- Permission type must be fferpcore.ObjectPermissionData
- Name must be the full API name, including a package namespace, if appropriate
- Permissions must be listed in the short format with no separators
Short Format for Permissions Short Format Permission
R Read C Create U Edit D Delete V View All M Modify All
- To define field permissions:
- Permission type must be fferpcore.FieldPermissionData
- Name must be the full API name, including a package namespace, if appropriate, and object
- Permissions must be listed in the short format with no separators
Short Format for Permissions Short Format
Permission
R
Read E Edit
The following table provides a brief example of values in a valid permission set import file.
Type |
Name |
Permission |
---|---|---|
fferpcore.ObjectPermissionData | Account | RCU |
fferpcore.FieldPermissionData | Account.Site | R |
fferpcore.ObjectPermissionData |
fferpcore_Company_c | RV |
fferpcore.FieldPermissionData
|
fferpcore_Companyc.fferpcoreCity_c | R |
fferpcore.FieldPermissionData |
fferpcore_Companyc.fferpcoreCode_c | R |
If you have manually created or edited a CSV file for import, we recommend that your CSV file contains a single row for each item to ensure that your permission set is created as you expect. If more than one row exists for the same field or object, the permission set only contains the permissions specified in the last row processed for the item.
For example, if you import the following file, the Account object permission in the resulting permission set would be Read.
Type |
Name |
Permission |
---|---|---|
fferpcore.ObjectPermissionData |
Account | RCU |
fferpcore.FieldPermissionData |
Account.Site | R |
fferpcore.ObjectPermissionData |
Account | R |
To create a permission set from a CSV file:
- From the Permission Workbench tab, click Import.
- Click Upload Files.
- Select the CSV file that contains the permission set you want to import from the file browser.
- Enter a label for the new permission set.
- Check and optionally update the API name, ensuring it is unique.
- Click Import.
You can view the permission set you have created from the Permission Sets page in Setup. For more information about permission sets, see the Salesforce Help.