@simplysf/simply-permissions 1.4.1 → 1.4.2
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/oclif.manifest.json +344 -0
- package/package.json +4 -2
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"simply:permissions:analyze": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Generates an HTML report of every permission set and permission set group in the target org, grouped by installed package, including their object and field permissions.",
|
|
7
|
+
"examples": [
|
|
8
|
+
"<%= config.bin %> <%= command.id %> --target-org myOrg",
|
|
9
|
+
"<%= config.bin %> <%= command.id %> --target-org myOrg --output reports/permissions.html --filter My_Permission_Set --filter Another_Set"
|
|
10
|
+
],
|
|
11
|
+
"flags": {
|
|
12
|
+
"json": {
|
|
13
|
+
"description": "Format output as json.",
|
|
14
|
+
"helpGroup": "GLOBAL",
|
|
15
|
+
"name": "json",
|
|
16
|
+
"allowNo": false,
|
|
17
|
+
"type": "boolean"
|
|
18
|
+
},
|
|
19
|
+
"flags-dir": {
|
|
20
|
+
"helpGroup": "GLOBAL",
|
|
21
|
+
"name": "flags-dir",
|
|
22
|
+
"summary": "Import flag values from a directory.",
|
|
23
|
+
"hasDynamicHelp": false,
|
|
24
|
+
"multiple": false,
|
|
25
|
+
"type": "option"
|
|
26
|
+
},
|
|
27
|
+
"api-version": {
|
|
28
|
+
"description": "Override the api version used for api requests made by this command",
|
|
29
|
+
"name": "api-version",
|
|
30
|
+
"hasDynamicHelp": false,
|
|
31
|
+
"multiple": false,
|
|
32
|
+
"type": "option"
|
|
33
|
+
},
|
|
34
|
+
"target-org": {
|
|
35
|
+
"char": "o",
|
|
36
|
+
"name": "target-org",
|
|
37
|
+
"noCacheDefault": true,
|
|
38
|
+
"required": true,
|
|
39
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
40
|
+
"hasDynamicHelp": true,
|
|
41
|
+
"multiple": false,
|
|
42
|
+
"type": "option"
|
|
43
|
+
},
|
|
44
|
+
"filter": {
|
|
45
|
+
"char": "f",
|
|
46
|
+
"description": "One or more PermissionSet (Name) or PermissionSetGroup (DeveloperName) API names to restrict the report to. If omitted, all permission sets and groups are included.",
|
|
47
|
+
"name": "filter",
|
|
48
|
+
"summary": "Permission set or group names to include",
|
|
49
|
+
"hasDynamicHelp": false,
|
|
50
|
+
"multiple": true,
|
|
51
|
+
"type": "option"
|
|
52
|
+
},
|
|
53
|
+
"output": {
|
|
54
|
+
"description": "The path to write the generated HTML report to.",
|
|
55
|
+
"name": "output",
|
|
56
|
+
"summary": "Output HTML file path",
|
|
57
|
+
"default": "permissions_report.html",
|
|
58
|
+
"hasDynamicHelp": false,
|
|
59
|
+
"multiple": false,
|
|
60
|
+
"type": "option"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"hasDynamicHelp": true,
|
|
64
|
+
"hiddenAliases": [],
|
|
65
|
+
"id": "simply:permissions:analyze",
|
|
66
|
+
"pluginAlias": "@simplysf/simply-permissions",
|
|
67
|
+
"pluginName": "@simplysf/simply-permissions",
|
|
68
|
+
"pluginType": "core",
|
|
69
|
+
"strict": true,
|
|
70
|
+
"summary": "Analyze permission sets and permission set groups in an org.",
|
|
71
|
+
"enableJsonFlag": true,
|
|
72
|
+
"isESM": true,
|
|
73
|
+
"relativePath": [
|
|
74
|
+
"lib",
|
|
75
|
+
"commands",
|
|
76
|
+
"simply",
|
|
77
|
+
"permissions",
|
|
78
|
+
"analyze.js"
|
|
79
|
+
],
|
|
80
|
+
"aliasPermutations": [],
|
|
81
|
+
"permutations": [
|
|
82
|
+
"simply:permissions:analyze",
|
|
83
|
+
"permissions:simply:analyze",
|
|
84
|
+
"permissions:analyze:simply",
|
|
85
|
+
"simply:analyze:permissions",
|
|
86
|
+
"analyze:simply:permissions",
|
|
87
|
+
"analyze:permissions:simply"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"simply:permissions:build": {
|
|
91
|
+
"aliases": [],
|
|
92
|
+
"args": {},
|
|
93
|
+
"description": "Scans a Salesforce project directory for custom objects, fields, tabs, and (optionally) record types, then generates a permission set XML file with a baseline of permissions determined by --type. An optional JSON --config file can override individual object, field, tab, record type, and user permission settings, as well as whether the permission set requires activation.\n\nTo regenerate every permission set in a project with one command, declare them all in a JSON file and pass it with --file instead of the other flags. Each entry in the file's \"permissionSets\" array takes the same settings as one run of this command; a top-level \"defaults\" object supplies the \"directory\", \"output\", and \"includeRecordTypes\" values shared by every entry, and any entry can override them. An entry's \"config\" is either a path to a --config file or the same overrides inline. Relative paths are resolved against the current directory, as they are for flags. The whole file, including referenced override files and source directories, is validated before anything is written, and each source directory is scanned only once.\n\n {\n \"defaults\": {\n \"directory\": \"force-app\",\n \"output\": \"force-app/main/default/permissionsets\"\n },\n \"permissionSets\": [\n { \"name\": \"App_Read_Only\", \"type\": \"read-only\" },\n {\n \"name\": \"App_Admin\",\n \"type\": \"modify-all\",\n \"label\": \"App Admin\",\n \"includeRecordTypes\": true,\n \"config\": \"config/app-admin-overrides.json\"\n },\n {\n \"name\": \"App_Support\",\n \"type\": \"view-all\",\n \"config\": { \"userPermissions\": { \"ViewSetup\": true } }\n }\n ]\n }",
|
|
94
|
+
"examples": [
|
|
95
|
+
"<%= config.bin %> <%= command.id %> --type read-only --name My_Read_Only_Access --directory force-app --output force-app/main/default/permissionsets",
|
|
96
|
+
"<%= config.bin %> <%= command.id %> --type modify-all --name My_Admin_Access --directory force-app --config config/permission-overrides.json --output force-app/main/default/permissionsets --include-record-types",
|
|
97
|
+
"Regenerate every permission set declared in a permission sets file:\n<%= config.bin %> <%= command.id %> --file config/permission-sets.json"
|
|
98
|
+
],
|
|
99
|
+
"flags": {
|
|
100
|
+
"json": {
|
|
101
|
+
"description": "Format output as json.",
|
|
102
|
+
"helpGroup": "GLOBAL",
|
|
103
|
+
"name": "json",
|
|
104
|
+
"allowNo": false,
|
|
105
|
+
"type": "boolean"
|
|
106
|
+
},
|
|
107
|
+
"flags-dir": {
|
|
108
|
+
"helpGroup": "GLOBAL",
|
|
109
|
+
"name": "flags-dir",
|
|
110
|
+
"summary": "Import flag values from a directory.",
|
|
111
|
+
"hasDynamicHelp": false,
|
|
112
|
+
"multiple": false,
|
|
113
|
+
"type": "option"
|
|
114
|
+
},
|
|
115
|
+
"file": {
|
|
116
|
+
"char": "f",
|
|
117
|
+
"description": "The path to a JSON file with a \"permissionSets\" array, each entry describing one permission set to generate (\"name\", \"type\", and optionally \"label\", \"description\", \"directory\", \"output\", \"includeRecordTypes\", \"config\"), and an optional \"defaults\" object. Can't be combined with the flags that describe a single permission set.",
|
|
118
|
+
"exclusive": [
|
|
119
|
+
"type",
|
|
120
|
+
"name",
|
|
121
|
+
"directory",
|
|
122
|
+
"output",
|
|
123
|
+
"config",
|
|
124
|
+
"include-record-types",
|
|
125
|
+
"label",
|
|
126
|
+
"description"
|
|
127
|
+
],
|
|
128
|
+
"name": "file",
|
|
129
|
+
"summary": "Path to a permission sets file declaring every permission set to generate",
|
|
130
|
+
"hasDynamicHelp": false,
|
|
131
|
+
"multiple": false,
|
|
132
|
+
"type": "option"
|
|
133
|
+
},
|
|
134
|
+
"type": {
|
|
135
|
+
"description": "The baseline permission level to generate: 'read-only' grants read access to all discovered objects and fields, 'view-all' additionally grants view-all-records, and 'modify-all' grants full CRUD and modify-all-records access. Required unless --file is used.",
|
|
136
|
+
"name": "type",
|
|
137
|
+
"summary": "Baseline permission type",
|
|
138
|
+
"hasDynamicHelp": false,
|
|
139
|
+
"multiple": false,
|
|
140
|
+
"options": [
|
|
141
|
+
"read-only",
|
|
142
|
+
"view-all",
|
|
143
|
+
"modify-all"
|
|
144
|
+
],
|
|
145
|
+
"type": "option"
|
|
146
|
+
},
|
|
147
|
+
"name": {
|
|
148
|
+
"char": "n",
|
|
149
|
+
"description": "The API name for the generated permission set; also used to derive the output filename. Required unless --file is used.",
|
|
150
|
+
"name": "name",
|
|
151
|
+
"summary": "API name for the permission set",
|
|
152
|
+
"hasDynamicHelp": false,
|
|
153
|
+
"multiple": false,
|
|
154
|
+
"type": "option"
|
|
155
|
+
},
|
|
156
|
+
"directory": {
|
|
157
|
+
"char": "d",
|
|
158
|
+
"description": "The path to the Salesforce source directory to scan for custom objects, fields, tabs, and record types. Required unless --file is used.",
|
|
159
|
+
"name": "directory",
|
|
160
|
+
"summary": "Path to the Salesforce project directory",
|
|
161
|
+
"hasDynamicHelp": false,
|
|
162
|
+
"multiple": false,
|
|
163
|
+
"type": "option"
|
|
164
|
+
},
|
|
165
|
+
"config": {
|
|
166
|
+
"char": "c",
|
|
167
|
+
"description": "The path to a JSON file that overrides individual object, field, tab, record type, and user permission settings, as well as whether the permission set requires activation, on top of the --type baseline.",
|
|
168
|
+
"name": "config",
|
|
169
|
+
"summary": "Path to a permission set configuration file",
|
|
170
|
+
"hasDynamicHelp": false,
|
|
171
|
+
"multiple": false,
|
|
172
|
+
"type": "option"
|
|
173
|
+
},
|
|
174
|
+
"output": {
|
|
175
|
+
"description": "The directory to write the generated permission set XML file to. Required unless --file is used.",
|
|
176
|
+
"name": "output",
|
|
177
|
+
"summary": "Output directory",
|
|
178
|
+
"hasDynamicHelp": false,
|
|
179
|
+
"multiple": false,
|
|
180
|
+
"type": "option"
|
|
181
|
+
},
|
|
182
|
+
"include-record-types": {
|
|
183
|
+
"description": "Automatically include record type visibilities discovered from the source metadata, marked as visible by default.",
|
|
184
|
+
"name": "include-record-types",
|
|
185
|
+
"summary": "Include record type visibilities",
|
|
186
|
+
"allowNo": false,
|
|
187
|
+
"type": "boolean"
|
|
188
|
+
},
|
|
189
|
+
"label": {
|
|
190
|
+
"name": "label",
|
|
191
|
+
"summary": "Label for the permission set",
|
|
192
|
+
"hasDynamicHelp": false,
|
|
193
|
+
"multiple": false,
|
|
194
|
+
"type": "option"
|
|
195
|
+
},
|
|
196
|
+
"description": {
|
|
197
|
+
"name": "description",
|
|
198
|
+
"summary": "Description for the permission set",
|
|
199
|
+
"hasDynamicHelp": false,
|
|
200
|
+
"multiple": false,
|
|
201
|
+
"type": "option"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"hasDynamicHelp": false,
|
|
205
|
+
"hiddenAliases": [],
|
|
206
|
+
"id": "simply:permissions:build",
|
|
207
|
+
"pluginAlias": "@simplysf/simply-permissions",
|
|
208
|
+
"pluginName": "@simplysf/simply-permissions",
|
|
209
|
+
"pluginType": "core",
|
|
210
|
+
"strict": true,
|
|
211
|
+
"summary": "Generate permission sets from Salesforce source metadata.",
|
|
212
|
+
"enableJsonFlag": true,
|
|
213
|
+
"isESM": true,
|
|
214
|
+
"relativePath": [
|
|
215
|
+
"lib",
|
|
216
|
+
"commands",
|
|
217
|
+
"simply",
|
|
218
|
+
"permissions",
|
|
219
|
+
"build.js"
|
|
220
|
+
],
|
|
221
|
+
"aliasPermutations": [],
|
|
222
|
+
"permutations": [
|
|
223
|
+
"simply:permissions:build",
|
|
224
|
+
"permissions:simply:build",
|
|
225
|
+
"permissions:build:simply",
|
|
226
|
+
"simply:build:permissions",
|
|
227
|
+
"build:simply:permissions",
|
|
228
|
+
"build:permissions:simply"
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
"simply:permissions:assignment:delete": {
|
|
232
|
+
"aliases": [],
|
|
233
|
+
"args": {},
|
|
234
|
+
"description": "Deletes every `PermissionSetAssignment` against the named `PermissionSet`s and/or `PermissionSetGroup`s — the pre-step a destructive metadata deploy of the permission set/group itself needs, so it doesn't fail or leave orphaned assignments behind.\n\nTargets can be named either via `--file`, pointing at a `destructiveChanges.xml`/`package.xml`-shaped file whose `PermissionSet`/`PermissionSetGroup` type members are the targets, or via `--permission-set-name`/`--permission-set-group-name` flags (which may be combined with each other) for scripted or one-off use. `--file` is mutually exclusive with the two explicit-name flags.",
|
|
235
|
+
"examples": [
|
|
236
|
+
"<%= config.bin %> <%= command.id %> --file destructive/pre/destructiveChanges.xml --target-org myOrg",
|
|
237
|
+
"<%= config.bin %> <%= command.id %> --permission-set-name My_Permission_Set --target-org myOrg",
|
|
238
|
+
"<%= config.bin %> <%= command.id %> --permission-set-group-name My_Permission_Set_Group --target-org myOrg"
|
|
239
|
+
],
|
|
240
|
+
"flags": {
|
|
241
|
+
"json": {
|
|
242
|
+
"description": "Format output as json.",
|
|
243
|
+
"helpGroup": "GLOBAL",
|
|
244
|
+
"name": "json",
|
|
245
|
+
"allowNo": false,
|
|
246
|
+
"type": "boolean"
|
|
247
|
+
},
|
|
248
|
+
"flags-dir": {
|
|
249
|
+
"helpGroup": "GLOBAL",
|
|
250
|
+
"name": "flags-dir",
|
|
251
|
+
"summary": "Import flag values from a directory.",
|
|
252
|
+
"hasDynamicHelp": false,
|
|
253
|
+
"multiple": false,
|
|
254
|
+
"type": "option"
|
|
255
|
+
},
|
|
256
|
+
"api-version": {
|
|
257
|
+
"description": "Override the api version used for api requests made by this command",
|
|
258
|
+
"name": "api-version",
|
|
259
|
+
"hasDynamicHelp": false,
|
|
260
|
+
"multiple": false,
|
|
261
|
+
"type": "option"
|
|
262
|
+
},
|
|
263
|
+
"target-org": {
|
|
264
|
+
"char": "o",
|
|
265
|
+
"name": "target-org",
|
|
266
|
+
"noCacheDefault": true,
|
|
267
|
+
"required": true,
|
|
268
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
269
|
+
"hasDynamicHelp": true,
|
|
270
|
+
"multiple": false,
|
|
271
|
+
"type": "option"
|
|
272
|
+
},
|
|
273
|
+
"file": {
|
|
274
|
+
"char": "f",
|
|
275
|
+
"name": "file",
|
|
276
|
+
"summary": "Path to a destructiveChanges.xml/package.xml-shaped file",
|
|
277
|
+
"hasDynamicHelp": false,
|
|
278
|
+
"multiple": false,
|
|
279
|
+
"type": "option"
|
|
280
|
+
},
|
|
281
|
+
"permission-set-name": {
|
|
282
|
+
"name": "permission-set-name",
|
|
283
|
+
"summary": "PermissionSet Name(s) to delete assignments for",
|
|
284
|
+
"hasDynamicHelp": false,
|
|
285
|
+
"multiple": true,
|
|
286
|
+
"type": "option"
|
|
287
|
+
},
|
|
288
|
+
"permission-set-group-name": {
|
|
289
|
+
"name": "permission-set-group-name",
|
|
290
|
+
"summary": "PermissionSetGroup DeveloperName(s) to delete assignments for",
|
|
291
|
+
"hasDynamicHelp": false,
|
|
292
|
+
"multiple": true,
|
|
293
|
+
"type": "option"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"hasDynamicHelp": true,
|
|
297
|
+
"hiddenAliases": [],
|
|
298
|
+
"id": "simply:permissions:assignment:delete",
|
|
299
|
+
"pluginAlias": "@simplysf/simply-permissions",
|
|
300
|
+
"pluginName": "@simplysf/simply-permissions",
|
|
301
|
+
"pluginType": "core",
|
|
302
|
+
"strict": true,
|
|
303
|
+
"summary": "Delete PermissionSetAssignments for one or more PermissionSets/PermissionSetGroups.",
|
|
304
|
+
"enableJsonFlag": true,
|
|
305
|
+
"isESM": true,
|
|
306
|
+
"relativePath": [
|
|
307
|
+
"lib",
|
|
308
|
+
"commands",
|
|
309
|
+
"simply",
|
|
310
|
+
"permissions",
|
|
311
|
+
"assignment",
|
|
312
|
+
"delete.js"
|
|
313
|
+
],
|
|
314
|
+
"aliasPermutations": [],
|
|
315
|
+
"permutations": [
|
|
316
|
+
"simply:permissions:assignment:delete",
|
|
317
|
+
"permissions:simply:assignment:delete",
|
|
318
|
+
"permissions:assignment:simply:delete",
|
|
319
|
+
"permissions:assignment:delete:simply",
|
|
320
|
+
"simply:assignment:permissions:delete",
|
|
321
|
+
"assignment:simply:permissions:delete",
|
|
322
|
+
"assignment:permissions:simply:delete",
|
|
323
|
+
"assignment:permissions:delete:simply",
|
|
324
|
+
"simply:assignment:delete:permissions",
|
|
325
|
+
"assignment:simply:delete:permissions",
|
|
326
|
+
"assignment:delete:simply:permissions",
|
|
327
|
+
"assignment:delete:permissions:simply",
|
|
328
|
+
"simply:permissions:delete:assignment",
|
|
329
|
+
"permissions:simply:delete:assignment",
|
|
330
|
+
"permissions:delete:simply:assignment",
|
|
331
|
+
"permissions:delete:assignment:simply",
|
|
332
|
+
"simply:delete:permissions:assignment",
|
|
333
|
+
"delete:simply:permissions:assignment",
|
|
334
|
+
"delete:permissions:simply:assignment",
|
|
335
|
+
"delete:permissions:assignment:simply",
|
|
336
|
+
"simply:delete:assignment:permissions",
|
|
337
|
+
"delete:simply:assignment:permissions",
|
|
338
|
+
"delete:assignment:simply:permissions",
|
|
339
|
+
"delete:assignment:permissions:simply"
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"version": "1.4.2"
|
|
344
|
+
}
|
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.4.
|
|
4
|
+
"version": "1.4.2",
|
|
5
5
|
"author": "@ClayChipps",
|
|
6
6
|
"homepage": "https://github.com/SimplySF/simply-plugins",
|
|
7
7
|
"bugs": "https://github.com/SimplySF/simply-plugins/issues",
|
|
@@ -81,6 +81,8 @@
|
|
|
81
81
|
"fix-license": "eslint src test --fix --rule \"header/header: [2]\"",
|
|
82
82
|
"format": "wireit",
|
|
83
83
|
"lint": "wireit",
|
|
84
|
+
"postpack": "node -e \"require('node:fs').rmSync('oclif.manifest.json', { force: true })\"",
|
|
85
|
+
"prepack": "oclif manifest .",
|
|
84
86
|
"readme": "oclif readme --no-aliases",
|
|
85
87
|
"test": "wireit",
|
|
86
88
|
"test:coverage": "vitest run --coverage --project simply-permissions",
|
|
@@ -199,5 +201,5 @@
|
|
|
199
201
|
"output": []
|
|
200
202
|
}
|
|
201
203
|
},
|
|
202
|
-
"gitHead": "
|
|
204
|
+
"gitHead": "a5aac006f9776347e6d0f845d270660d2db81a28"
|
|
203
205
|
}
|