@cclabsnz/sf-audit 0.2.0 → 0.2.1
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.
|
@@ -65,9 +65,10 @@ export class PermissionsCheck {
|
|
|
65
65
|
})),
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
// Custom profile count: exclude
|
|
68
|
+
// Custom profile count: exclude known standard Salesforce profiles by name.
|
|
69
|
+
// Profile does not expose NamespacePrefix, so managed-package profiles cannot be filtered that way.
|
|
69
70
|
const standardProfileList = STANDARD_PROFILE_NAMES.map((n) => `'${n}'`).join(', ');
|
|
70
|
-
const profileCountResult = await ctx.soql.query(`SELECT COUNT() FROM Profile WHERE
|
|
71
|
+
const profileCountResult = await ctx.soql.query(`SELECT COUNT() FROM Profile WHERE Name NOT IN (${standardProfileList})`);
|
|
71
72
|
const profileCount = profileCountResult.totalSize;
|
|
72
73
|
if (profileCount > 30) {
|
|
73
74
|
findings.push({
|