@simplysf/simply-permissions 1.2.12 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -96,7 +96,8 @@ DESCRIPTION
|
|
|
96
96
|
|
|
97
97
|
Scans a Salesforce project directory for custom objects, fields, tabs, and (optionally) record types, then generates a
|
|
98
98
|
permission set XML file with a baseline of permissions determined by --type. An optional JSON --config file can
|
|
99
|
-
override individual object, field, tab, record type, and user permission settings
|
|
99
|
+
override individual object, field, tab, record type, and user permission settings, as well as whether the permission
|
|
100
|
+
set requires activation.
|
|
100
101
|
|
|
101
102
|
EXAMPLES
|
|
102
103
|
$ sf simply permissions build --type read-only --name My_Read_Only_Access --directory force-app --output force-app/main/default/permissionsets
|
|
@@ -106,8 +107,8 @@ EXAMPLES
|
|
|
106
107
|
FLAG DESCRIPTIONS
|
|
107
108
|
-c, --config=<value> Path to a permission set configuration file
|
|
108
109
|
|
|
109
|
-
The path to a JSON file that overrides individual object, field, tab, record type, and user permission settings
|
|
110
|
-
top of the --type baseline.
|
|
110
|
+
The path to a JSON file that overrides individual object, field, tab, record type, and user permission settings,
|
|
111
|
+
as well as whether the permission set requires activation, on top of the --type baseline.
|
|
111
112
|
|
|
112
113
|
-d, --directory=<value> Path to the Salesforce project directory
|
|
113
114
|
|
|
@@ -133,3 +134,39 @@ FLAG DESCRIPTIONS
|
|
|
133
134
|
|
|
134
135
|
_See code: [lib/commands/simply/permissions/build.js](https://github.com/SimplySF/simply/blob/@simplysf/simply-permissions@1.2.1/packages/simply-permissions/lib/commands/simply/permissions/build.js)_
|
|
135
136
|
<!-- commandsstop -->
|
|
137
|
+
|
|
138
|
+
## Configuration Files
|
|
139
|
+
|
|
140
|
+
### `sf simply permissions build --config`
|
|
141
|
+
|
|
142
|
+
The `--config` flag on `sf simply permissions build` takes the path to a JSON file that overrides the `--type` baseline permissions. Every top-level key is optional — only the settings you include are applied:
|
|
143
|
+
|
|
144
|
+
```json
|
|
145
|
+
{
|
|
146
|
+
"objects": {
|
|
147
|
+
"Account": { "read": true, "create": true, "edit": true, "viewAll": true }
|
|
148
|
+
},
|
|
149
|
+
"fields": {
|
|
150
|
+
"Account.AnnualRevenue": { "readable": true, "editable": false }
|
|
151
|
+
},
|
|
152
|
+
"tabs": {
|
|
153
|
+
"Account": { "visible": true }
|
|
154
|
+
},
|
|
155
|
+
"recordTypeVisibilities": {
|
|
156
|
+
"Account.Enterprise": { "visible": true }
|
|
157
|
+
},
|
|
158
|
+
"userPermissions": {
|
|
159
|
+
"ApiEnabled": true
|
|
160
|
+
},
|
|
161
|
+
"hasActivationRequired": false
|
|
162
|
+
}
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
| Field | Type | Keyed by | Description |
|
|
166
|
+
| ------------------------ | -------------------------------------- | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
167
|
+
| `objects` | `Record<string, ObjectPerm>` | Object API name | Overrides object-level access. `ObjectPerm` fields: `read`, `create`, `edit`, `delete`, `modifyAll`, `viewAll`, `viewAllFields` (all optional booleans). |
|
|
168
|
+
| `fields` | `Record<string, FieldPerm>` | `Object.Field` API name | Overrides field-level access. `FieldPerm` fields: `readable`, `editable` (optional booleans). |
|
|
169
|
+
| `tabs` | `Record<string, TabSetting>` | Tab API name | Overrides tab visibility. `TabSetting` fields: `visible` (optional boolean). |
|
|
170
|
+
| `recordTypeVisibilities` | `Record<string, RecordTypeVisibility>` | `Object.RecordType` API name | Overrides record type visibility. Fields: `visible` (optional boolean). Only applied when `--include-record-types` is also passed. |
|
|
171
|
+
| `userPermissions` | `Record<string, boolean>` | User permission API name | Enables (`true`) or disables (`false`) individual user permissions. |
|
|
172
|
+
| `hasActivationRequired` | `boolean` | — | Whether the generated permission set requires activation before it grants access. Defaults to `false`. |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysf/simply-permissions",
|
|
3
3
|
"description": "Utilities for working with permissions",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.13",
|
|
5
5
|
"author": "@ClayChipps",
|
|
6
6
|
"homepage": "https://github.com/SimplySF/simply",
|
|
7
7
|
"bugs": "https://github.com/SimplySF/simply/issues",
|
|
@@ -210,5 +210,5 @@
|
|
|
210
210
|
"output": []
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
|
-
"gitHead": "
|
|
213
|
+
"gitHead": "8f0eb881b851e061bf7b007dbb5f851b81310376"
|
|
214
214
|
}
|