identityscope 0.28.3 → 0.28.5
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/LICENSE +21 -21
- package/README.md +914 -917
- package/SECURITY.md +56 -56
- package/dist/node/cli.js +26 -26
- package/dist/node/monthly.js +17 -17
- package/package.json +2 -2
- package/reports/access-profile-members.yaml +29 -29
- package/reports/access-profile-membership-counts.yaml +17 -17
- package/reports/access-profiles-without-owner.yaml +16 -16
- package/reports/access-request-audit-trail.yaml +36 -36
- package/reports/accounts-by-source.yaml +19 -19
- package/reports/active-identities-without-manager.yaml +22 -22
- package/reports/aggregation-failures.yaml +29 -29
- package/reports/aggregation-history.yaml +27 -27
- package/reports/all-sources.yaml +16 -16
- package/reports/application-accounts.yaml +32 -32
- package/reports/application-entitlements.yaml +31 -31
- package/reports/campaign-progress.yaml +23 -23
- package/reports/certification-decisions.yaml +31 -31
- package/reports/direct-reports-per-manager.yaml +20 -20
- package/reports/disabled-accounts-of-active-people.yaml +33 -33
- package/reports/duplicate-emails.yaml +16 -16
- package/reports/entitlement-holders.yaml +35 -35
- package/reports/entitlements-held-by-inactive-identities.yaml +31 -31
- package/reports/entitlements-without-owner.yaml +28 -28
- package/reports/identities-by-lifecycle-state.yaml +15 -15
- package/reports/identities-missing-key-attributes.yaml +27 -27
- package/reports/identities-with-processing-errors.yaml +19 -19
- package/reports/identity-attribute-mappings.yaml +27 -27
- package/reports/machine-accounts.yaml +28 -28
- package/reports/managers-and-direct-reports.yaml +23 -23
- package/reports/most-access.yaml +18 -18
- package/reports/new-identities.yaml +24 -24
- package/reports/old-passwords.yaml +35 -35
- package/reports/pending-reviews-by-reviewer.yaml +20 -20
- package/reports/person-access.yaml +31 -31
- package/reports/privileged-access.yaml +29 -29
- package/reports/provisioning-error-causes.yaml +27 -27
- package/reports/provisioning-errors.yaml +32 -32
- package/reports/provisioning-failures.yaml +28 -28
- package/reports/recent-access-requests.yaml +22 -22
- package/reports/recent-activity.yaml +32 -32
- package/reports/recent-leavers.yaml +34 -34
- package/reports/role-members.yaml +29 -29
- package/reports/role-membership-counts.yaml +18 -18
- package/reports/roles-without-owner.yaml +17 -17
- package/reports/sources-needing-attention.yaml +23 -23
- package/reports/stuck-access-requests.yaml +29 -29
- package/reports/team-access.yaml +30 -30
- package/reports/terminated-users-with-active-accounts.yaml +46 -46
- package/reports/uncorrelated-accounts.yaml +38 -38
- package/ui/js/00-setup.js +6 -6
- package/ui/js/01-small-helpers.js +143 -143
- package/ui/js/02-connection.js +150 -150
- package/ui/js/03-health-check.js +17 -17
- package/ui/js/04-library.js +135 -135
- package/ui/js/05-pickers.js +163 -163
- package/ui/js/06-report-view.js +157 -157
- package/ui/js/07-fields.js +85 -85
- package/ui/js/08-designer.js +360 -360
- package/ui/js/09-yaml.js +22 -22
- package/ui/js/10-instant-check.js +171 -171
- package/ui/js/11-lookup.js +161 -161
- package/ui/js/12-tenant.js +115 -115
- package/ui/js/13-source-configuration-and-diagnostics.js +64 -64
- package/ui/js/14-certifications.js +68 -68
- package/ui/js/15-monthly-report.js +24 -24
- package/ui/js/16-ownership.js +39 -39
- package/ui/js/17-compare-tenants.js +102 -102
- package/ui/js/18-audit.js +181 -181
- package/ui/js/19-insights.js +108 -108
- package/ui/js/20-role-mining.js +35 -35
- package/ui/js/21-share-reports.js +45 -45
- package/ui/js/22-partner-overview-all-customer-tenants.js +228 -228
- package/ui/js/23-in-app-guidance.js +217 -217
- package/ui/js/24-role-tools.js +220 -220
- package/ui/js/25-schedules.js +264 -264
- package/ui/js/26-start.js +7 -7
- package/ui/js/27-warnings.js +224 -224
- package/ui/js/28-audit-readiness.js +99 -99
- package/ui/js/29-lifecycle.js +182 -182
- package/ui/js/30-labs.js +265 -265
- package/ui/js/31-build.js +203 -203
- package/ui/js/32-lab-examples.js +148 -148
- package/ui/js/33-finder.js +89 -89
- package/ui/js/34-governance.js +129 -129
- package/ui/js/35-watch.js +266 -266
- package/ui/js/36-model.js +247 -247
- package/ui/js/37-logs-and-watch.js +224 -224
- package/ui/shell.html +112 -112
- package/ui/style.css +350 -350
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
// ---------- Audit readiness: access outliers, review coverage, provisioning speed (Audit); identity data (Warnings) ----------
|
|
2
|
-
function arState() {
|
|
3
|
-
if (!state.ar) state.ar = { outliers: { groupBy: 'department', factor: 3 }, coverage: { months: 12 }, speed: { days: 30, limit: 24 }, quality: { attribute: 'department' } };
|
|
4
|
-
return state.ar;
|
|
5
|
-
}
|
|
6
|
-
function arRunBar(w, H, path, label, desc, extras, body, rerender) {
|
|
7
|
-
w.appendChild(el('div', { className: 'bar', style: 'margin-bottom:14px' }, el('span', { className: 'muted', style: 'flex:1;min-width:260px', text: desc }), extras || null,
|
|
8
|
-
el('button', { className: 'btn primary', disabled: !!H.busy, onclick: function () { runJobInto(H, '/api/audit/' + path + '/run', body ? body() : {}, rerender); } }, icon('play'), H.data ? 'Read again' : label)));
|
|
9
|
-
if (H.busy) { w.appendChild(busyBox(H.busy)); return false; }
|
|
10
|
-
if (H.error) { w.appendChild(el('div', { className: 'error', text: H.error })); return false; }
|
|
11
|
-
if (!H.data) return false;
|
|
12
|
-
(H.data.notes || []).forEach(function (n) { w.appendChild(el('div', { className: 'note', text: n })); });
|
|
13
|
-
return true;
|
|
14
|
-
}
|
|
15
|
-
function attrInput(H, key, label, placeholder) {
|
|
16
|
-
var i = el('input', { className: 'input', value: H[key] || '', placeholder: placeholder, style: 'max-width:180px', 'aria-label': label });
|
|
17
|
-
i.addEventListener('input', function () { H[key] = i.value.trim(); });
|
|
18
|
-
return el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: label }), i);
|
|
19
|
-
}
|
|
20
|
-
function numSelect(H, key, options, label) {
|
|
21
|
-
var s = el('select', { className: 'input', style: 'width:auto', 'aria-label': label }, options.map(function (o) { return el('option', { value: String(o[0]), text: o[1] }); }));
|
|
22
|
-
s.value = String(H[key]);
|
|
23
|
-
s.addEventListener('change', function () { H[key] = Number(s.value); });
|
|
24
|
-
return s;
|
|
25
|
-
}
|
|
26
|
-
function hoursText(h) { return h < 1 ? Math.round(h * 60) + ' min' : h < 48 ? (Math.round(h * 10) / 10) + ' h' : (Math.round(h / 2.4) / 10) + ' days'; }
|
|
27
|
-
|
|
28
|
-
// access outliers
|
|
29
|
-
function renderOutliers(w) {
|
|
30
|
-
var H = arState().outliers;
|
|
31
|
-
var extras = el('div', { className: 'bar' }, attrInput(H, 'groupBy', 'Compare people by attribute', 'department'),
|
|
32
|
-
el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Outlier when at least' }), numSelect(H, 'factor', [[2, '2× the group median'], [3, '3× the group median'], [5, '5× the group median']], 'Outlier factor')));
|
|
33
|
-
if (!arRunBar(w, H, 'outliers', 'Find outliers', 'People with far more access than others in the same group. Groups need at least 5 people; a difference of 10 items or more counts.', extras, function () { return { groupBy: H.groupBy || 'department', factor: H.factor }; }, renderAudit)) return;
|
|
34
|
-
var d = H.data;
|
|
35
|
-
w.appendChild(el('div', { className: 'bigstats' }, stat(d.rows.length, 'outliers', 'lose'), stat(d.groups.length, 'groups compared'), stat(d.checked, 'active people checked'), stat(d.skippedSmallGroups, 'in groups too small to compare')));
|
|
36
|
-
if (d.rows.length) w.appendChild(section('Outliers', d.rows.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)),
|
|
37
|
-
simpleTable(['Person', 'Group (' + d.groupBy + ')', 'Access items', 'Group median', 'Times', 'Entitlements', 'Roles'], d.rows.slice(0, 2000).map(function (r) {
|
|
38
|
-
return [el('span', {}, r.person, r.email ? el('div', { className: 'muted small', text: r.email }) : null), r.group, r.access, r.groupMedian, pill(r.times + '×', r.times >= 5 ? 'lose' : 'off'), r.entitlements, r.roles];
|
|
39
|
-
}), 'Access outliers'))));
|
|
40
|
-
else if (d.groups.length) w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'No outliers at this level' })));
|
|
41
|
-
if (d.groups.length) w.appendChild(section('Groups', d.groups.length, simpleTable(['Group', 'People', 'Median access items', 'Outliers'], d.groups.slice(0, 500).map(function (g) { return [g.group, g.people, g.median, g.outliers]; }), 'Groups compared')));
|
|
42
|
-
w.appendChild(el('p', { className: 'muted small', text: 'Access items are what ISC counts for each person (entitlements, roles and access profiles). An outlier is not wrong by itself: admins and long-serving staff often have more. Use it to pick whom to review first.' }));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// certification coverage
|
|
46
|
-
function renderCoverage(w) {
|
|
47
|
-
var H = arState().coverage;
|
|
48
|
-
var extras = numSelect(H, 'months', [[6, 'Last 6 months'], [12, 'Last 12 months'], [24, 'Last 24 months']], 'Period');
|
|
49
|
-
if (!arRunBar(w, H, 'coverage', 'Check coverage', 'Which sources and privileged entitlements a certification reviewed in the period, and which none did.', extras, function () { return { months: H.months }; }, renderAudit)) return;
|
|
50
|
-
var d = H.data, P = d.privileged;
|
|
51
|
-
var srcTotal = d.sources.length + d.notReviewedSources.length;
|
|
52
|
-
w.appendChild(el('div', { className: 'bigstats' }, stat(d.campaigns, 'campaigns in ' + d.months + ' months'), stat(d.reviewItems, 'review items'),
|
|
53
|
-
stat(d.notReviewedSources.length, 'of ' + fmtNum(srcTotal) + ' sources not reviewed', 'lose'), stat(P.notReviewed.length, 'of ' + fmtNum(P.total) + ' privileged entitlements not reviewed', 'lose')));
|
|
54
|
-
w.appendChild(el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)));
|
|
55
|
-
if (d.notReviewedSources.length) w.appendChild(section('Sources no certification reviewed', d.notReviewedSources.length, el('div', { style: 'display:flex;flex-wrap:wrap;gap:6px' }, d.notReviewedSources.map(function (s) { return pill(s, 'lose'); }))));
|
|
56
|
-
if (P.notReviewed.length) w.appendChild(section('Privileged entitlements not reviewed', P.notReviewed.length, simpleTable(['Entitlement', 'Source'], P.notReviewed.slice(0, 2000).map(function (x) { return [x.name, x.source]; }), 'Privileged entitlements not reviewed')));
|
|
57
|
-
if (d.sources.length) w.appendChild(section('Reviewed sources', d.sources.length, simpleTable(['Source', 'Items reviewed', 'Latest review', 'Campaigns'], d.sources.map(function (s) { return [s.source, s.reviewedItems, s.lastReviewed ? s.lastReviewed.slice(0, 10) : null, s.campaigns.slice(0, 3).join(', ') + (s.campaigns.length > 3 ? ' +' + (s.campaigns.length - 3) : '')]; }), 'Reviewed sources')));
|
|
58
|
-
if (d.byAccessType.length) w.appendChild(el('p', { className: 'muted small', text: 'Review items by type: ' + d.byAccessType.map(function (x) { return x.type.toLowerCase().replace(/_/g, ' ') + ' ' + fmtNum(x.items); }).join(', ') + '. Roles and access profiles count for the source of their entitlements only when ISC names it in the review item. A campaign still running counts as reviewing what it contains.' }));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// provisioning speed
|
|
62
|
-
function renderSpeed(w) {
|
|
63
|
-
var H = arState().speed;
|
|
64
|
-
var extras = el('div', { className: 'bar' }, numSelect(H, 'days', [[7, 'Last 7 days'], [30, 'Last 30 days'], [90, 'Last 90 days']], 'Period'),
|
|
65
|
-
el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Removals should take at most' }), numSelect(H, 'limit', [[4, '4 hours'], [24, '24 hours'], [48, '48 hours'], [72, '3 days']], 'Removal limit')));
|
|
66
|
-
if (!arRunBar(w, H, 'speed', 'Measure', 'How long account changes take per source, and access removals (disable, delete) that were slow or are still not done.', extras, function () { return { days: H.days, removalLimitHours: H.limit }; }, renderAudit)) return;
|
|
67
|
-
var d = H.data, T = d.totals;
|
|
68
|
-
w.appendChild(el('div', { className: 'bigstats' }, stat(T.changes, 'account changes'), stat(T.removals, 'removals'), stat(T.openRemovals, 'removals still not done after ' + d.removalLimitHours + ' h', 'lose'), stat(T.slowRemovals, 'removals that took longer', 'lose')));
|
|
69
|
-
if (d.slow.length) w.appendChild(section('Slow or open removals', d.slow.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)),
|
|
70
|
-
simpleTable(['Person', 'Source', 'Change', 'Started (UTC)', 'Took', 'State'], d.slow.slice(0, 2000).map(function (x) { return [x.person, x.source, x.op, x.started.slice(0, 16).replace('T', ' '), hoursText(x.hours), pill(x.state, x.state === 'not done' ? 'lose' : 'off')]; }), 'Slow or open removals'))));
|
|
71
|
-
else if (T.removals) w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'Every removal finished within ' + d.removalLimitHours + ' hours' })));
|
|
72
|
-
if (d.rows.length) w.appendChild(section('By source', d.rows.length, simpleTable(['Source', 'Change', 'Count', 'Median', '90% within', 'Longest', 'Over the limit'], d.rows.map(function (r) {
|
|
73
|
-
return [r.source, r.op, r.count, hoursText(r.medianHours), hoursText(r.p90Hours), hoursText(r.maxHours), r.slower ? pill(String(r.slower), 'lose') : 0];
|
|
74
|
-
}), 'Provisioning speed by source')));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// identity data quality (Warnings tab)
|
|
78
|
-
function wnQuality(w, H, desc) {
|
|
79
|
-
var A = arState().quality;
|
|
80
|
-
var extras = attrInput(A, 'attribute', 'Attribute everyone should have', 'department');
|
|
81
|
-
if (!arRunBar(w, A, 'quality', 'Check identity data', desc, extras, function () { return { attribute: A.attribute || 'department' }; }, renderWarnings)) return;
|
|
82
|
-
var d = A.data, T = d.totals;
|
|
83
|
-
w.appendChild(el('div', { className: 'bigstats' }, stat(T.noManager, 'without a manager', 'lose'), stat(T.noEmail, 'without an email', 'lose'), stat(T.noAttribute, 'without ' + d.attribute, 'lose'), stat(T.sharedEmail, 'sharing an email', 'lose'), stat(d.checked, 'active people checked')));
|
|
84
|
-
if (d.sharedEmails.length) w.appendChild(section('Emails used by more than one person', d.sharedEmails.length, simpleTable(['Email', 'People'], d.sharedEmails.map(function (s) { return [s.email, s.people.join(', ')]; }), 'Shared emails')));
|
|
85
|
-
if (!d.rows.length) { w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'No gaps found' }))); return; }
|
|
86
|
-
var f = el('input', { className: 'input', placeholder: 'Filter by person or issue...', value: A.q || '', style: 'max-width:280px', 'aria-label': 'Filter' });
|
|
87
|
-
var box = el('div');
|
|
88
|
-
var draw = function () {
|
|
89
|
-
var q = (A.q || '').toLowerCase();
|
|
90
|
-
var list = d.rows.filter(function (r) { return !q || (r.person + ' ' + r.issue).toLowerCase().indexOf(q) >= 0; });
|
|
91
|
-
box.textContent = '';
|
|
92
|
-
box.appendChild(simpleTable(['Person', 'Email', 'Lifecycle state', 'Issue'], list.slice(0, 2000).map(function (r) { return [r.person, r.email, r.lifecycle, r.issue]; }), 'Identity data issues'));
|
|
93
|
-
if (list.length > 2000 || d.more) box.appendChild(el('p', { className: 'muted small', text: 'Showing the first 2,000. The download has all of them.' }));
|
|
94
|
-
};
|
|
95
|
-
f.addEventListener('input', function () { A.q = f.value; draw(); });
|
|
96
|
-
w.appendChild(section('Issues', d.rows.length + (d.more || 0), el('div', {}, el('div', { className: 'bar', style: 'margin-bottom:10px' }, f, el('span', { style: 'flex:1' }), downloads(A.job)), box)));
|
|
97
|
-
draw();
|
|
98
|
-
w.appendChild(el('p', { className: 'muted small', text: 'Missing managers break approvals and manager certifications; missing emails break notifications; shared emails often mean duplicate people or test accounts. Fix them in the HR source, not in ISC.' }));
|
|
99
|
-
}
|
|
1
|
+
// ---------- Audit readiness: access outliers, review coverage, provisioning speed (Audit); identity data (Warnings) ----------
|
|
2
|
+
function arState() {
|
|
3
|
+
if (!state.ar) state.ar = { outliers: { groupBy: 'department', factor: 3 }, coverage: { months: 12 }, speed: { days: 30, limit: 24 }, quality: { attribute: 'department' } };
|
|
4
|
+
return state.ar;
|
|
5
|
+
}
|
|
6
|
+
function arRunBar(w, H, path, label, desc, extras, body, rerender) {
|
|
7
|
+
w.appendChild(el('div', { className: 'bar', style: 'margin-bottom:14px' }, el('span', { className: 'muted', style: 'flex:1;min-width:260px', text: desc }), extras || null,
|
|
8
|
+
el('button', { className: 'btn primary', disabled: !!H.busy, onclick: function () { runJobInto(H, '/api/audit/' + path + '/run', body ? body() : {}, rerender); } }, icon('play'), H.data ? 'Read again' : label)));
|
|
9
|
+
if (H.busy) { w.appendChild(busyBox(H.busy)); return false; }
|
|
10
|
+
if (H.error) { w.appendChild(el('div', { className: 'error', text: H.error })); return false; }
|
|
11
|
+
if (!H.data) return false;
|
|
12
|
+
(H.data.notes || []).forEach(function (n) { w.appendChild(el('div', { className: 'note', text: n })); });
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
function attrInput(H, key, label, placeholder) {
|
|
16
|
+
var i = el('input', { className: 'input', value: H[key] || '', placeholder: placeholder, style: 'max-width:180px', 'aria-label': label });
|
|
17
|
+
i.addEventListener('input', function () { H[key] = i.value.trim(); });
|
|
18
|
+
return el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: label }), i);
|
|
19
|
+
}
|
|
20
|
+
function numSelect(H, key, options, label) {
|
|
21
|
+
var s = el('select', { className: 'input', style: 'width:auto', 'aria-label': label }, options.map(function (o) { return el('option', { value: String(o[0]), text: o[1] }); }));
|
|
22
|
+
s.value = String(H[key]);
|
|
23
|
+
s.addEventListener('change', function () { H[key] = Number(s.value); });
|
|
24
|
+
return s;
|
|
25
|
+
}
|
|
26
|
+
function hoursText(h) { return h < 1 ? Math.round(h * 60) + ' min' : h < 48 ? (Math.round(h * 10) / 10) + ' h' : (Math.round(h / 2.4) / 10) + ' days'; }
|
|
27
|
+
|
|
28
|
+
// access outliers
|
|
29
|
+
function renderOutliers(w) {
|
|
30
|
+
var H = arState().outliers;
|
|
31
|
+
var extras = el('div', { className: 'bar' }, attrInput(H, 'groupBy', 'Compare people by attribute', 'department'),
|
|
32
|
+
el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Outlier when at least' }), numSelect(H, 'factor', [[2, '2× the group median'], [3, '3× the group median'], [5, '5× the group median']], 'Outlier factor')));
|
|
33
|
+
if (!arRunBar(w, H, 'outliers', 'Find outliers', 'People with far more access than others in the same group. Groups need at least 5 people; a difference of 10 items or more counts.', extras, function () { return { groupBy: H.groupBy || 'department', factor: H.factor }; }, renderAudit)) return;
|
|
34
|
+
var d = H.data;
|
|
35
|
+
w.appendChild(el('div', { className: 'bigstats' }, stat(d.rows.length, 'outliers', 'lose'), stat(d.groups.length, 'groups compared'), stat(d.checked, 'active people checked'), stat(d.skippedSmallGroups, 'in groups too small to compare')));
|
|
36
|
+
if (d.rows.length) w.appendChild(section('Outliers', d.rows.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)),
|
|
37
|
+
simpleTable(['Person', 'Group (' + d.groupBy + ')', 'Access items', 'Group median', 'Times', 'Entitlements', 'Roles'], d.rows.slice(0, 2000).map(function (r) {
|
|
38
|
+
return [el('span', {}, r.person, r.email ? el('div', { className: 'muted small', text: r.email }) : null), r.group, r.access, r.groupMedian, pill(r.times + '×', r.times >= 5 ? 'lose' : 'off'), r.entitlements, r.roles];
|
|
39
|
+
}), 'Access outliers'))));
|
|
40
|
+
else if (d.groups.length) w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'No outliers at this level' })));
|
|
41
|
+
if (d.groups.length) w.appendChild(section('Groups', d.groups.length, simpleTable(['Group', 'People', 'Median access items', 'Outliers'], d.groups.slice(0, 500).map(function (g) { return [g.group, g.people, g.median, g.outliers]; }), 'Groups compared')));
|
|
42
|
+
w.appendChild(el('p', { className: 'muted small', text: 'Access items are what ISC counts for each person (entitlements, roles and access profiles). An outlier is not wrong by itself: admins and long-serving staff often have more. Use it to pick whom to review first.' }));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// certification coverage
|
|
46
|
+
function renderCoverage(w) {
|
|
47
|
+
var H = arState().coverage;
|
|
48
|
+
var extras = numSelect(H, 'months', [[6, 'Last 6 months'], [12, 'Last 12 months'], [24, 'Last 24 months']], 'Period');
|
|
49
|
+
if (!arRunBar(w, H, 'coverage', 'Check coverage', 'Which sources and privileged entitlements a certification reviewed in the period, and which none did.', extras, function () { return { months: H.months }; }, renderAudit)) return;
|
|
50
|
+
var d = H.data, P = d.privileged;
|
|
51
|
+
var srcTotal = d.sources.length + d.notReviewedSources.length;
|
|
52
|
+
w.appendChild(el('div', { className: 'bigstats' }, stat(d.campaigns, 'campaigns in ' + d.months + ' months'), stat(d.reviewItems, 'review items'),
|
|
53
|
+
stat(d.notReviewedSources.length, 'of ' + fmtNum(srcTotal) + ' sources not reviewed', 'lose'), stat(P.notReviewed.length, 'of ' + fmtNum(P.total) + ' privileged entitlements not reviewed', 'lose')));
|
|
54
|
+
w.appendChild(el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)));
|
|
55
|
+
if (d.notReviewedSources.length) w.appendChild(section('Sources no certification reviewed', d.notReviewedSources.length, el('div', { style: 'display:flex;flex-wrap:wrap;gap:6px' }, d.notReviewedSources.map(function (s) { return pill(s, 'lose'); }))));
|
|
56
|
+
if (P.notReviewed.length) w.appendChild(section('Privileged entitlements not reviewed', P.notReviewed.length, simpleTable(['Entitlement', 'Source'], P.notReviewed.slice(0, 2000).map(function (x) { return [x.name, x.source]; }), 'Privileged entitlements not reviewed')));
|
|
57
|
+
if (d.sources.length) w.appendChild(section('Reviewed sources', d.sources.length, simpleTable(['Source', 'Items reviewed', 'Latest review', 'Campaigns'], d.sources.map(function (s) { return [s.source, s.reviewedItems, s.lastReviewed ? s.lastReviewed.slice(0, 10) : null, s.campaigns.slice(0, 3).join(', ') + (s.campaigns.length > 3 ? ' +' + (s.campaigns.length - 3) : '')]; }), 'Reviewed sources')));
|
|
58
|
+
if (d.byAccessType.length) w.appendChild(el('p', { className: 'muted small', text: 'Review items by type: ' + d.byAccessType.map(function (x) { return x.type.toLowerCase().replace(/_/g, ' ') + ' ' + fmtNum(x.items); }).join(', ') + '. Roles and access profiles count for the source of their entitlements only when ISC names it in the review item. A campaign still running counts as reviewing what it contains.' }));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// provisioning speed
|
|
62
|
+
function renderSpeed(w) {
|
|
63
|
+
var H = arState().speed;
|
|
64
|
+
var extras = el('div', { className: 'bar' }, numSelect(H, 'days', [[7, 'Last 7 days'], [30, 'Last 30 days'], [90, 'Last 90 days']], 'Period'),
|
|
65
|
+
el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Removals should take at most' }), numSelect(H, 'limit', [[4, '4 hours'], [24, '24 hours'], [48, '48 hours'], [72, '3 days']], 'Removal limit')));
|
|
66
|
+
if (!arRunBar(w, H, 'speed', 'Measure', 'How long account changes take per source, and access removals (disable, delete) that were slow or are still not done.', extras, function () { return { days: H.days, removalLimitHours: H.limit }; }, renderAudit)) return;
|
|
67
|
+
var d = H.data, T = d.totals;
|
|
68
|
+
w.appendChild(el('div', { className: 'bigstats' }, stat(T.changes, 'account changes'), stat(T.removals, 'removals'), stat(T.openRemovals, 'removals still not done after ' + d.removalLimitHours + ' h', 'lose'), stat(T.slowRemovals, 'removals that took longer', 'lose')));
|
|
69
|
+
if (d.slow.length) w.appendChild(section('Slow or open removals', d.slow.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)),
|
|
70
|
+
simpleTable(['Person', 'Source', 'Change', 'Started (UTC)', 'Took', 'State'], d.slow.slice(0, 2000).map(function (x) { return [x.person, x.source, x.op, x.started.slice(0, 16).replace('T', ' '), hoursText(x.hours), pill(x.state, x.state === 'not done' ? 'lose' : 'off')]; }), 'Slow or open removals'))));
|
|
71
|
+
else if (T.removals) w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'Every removal finished within ' + d.removalLimitHours + ' hours' })));
|
|
72
|
+
if (d.rows.length) w.appendChild(section('By source', d.rows.length, simpleTable(['Source', 'Change', 'Count', 'Median', '90% within', 'Longest', 'Over the limit'], d.rows.map(function (r) {
|
|
73
|
+
return [r.source, r.op, r.count, hoursText(r.medianHours), hoursText(r.p90Hours), hoursText(r.maxHours), r.slower ? pill(String(r.slower), 'lose') : 0];
|
|
74
|
+
}), 'Provisioning speed by source')));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// identity data quality (Warnings tab)
|
|
78
|
+
function wnQuality(w, H, desc) {
|
|
79
|
+
var A = arState().quality;
|
|
80
|
+
var extras = attrInput(A, 'attribute', 'Attribute everyone should have', 'department');
|
|
81
|
+
if (!arRunBar(w, A, 'quality', 'Check identity data', desc, extras, function () { return { attribute: A.attribute || 'department' }; }, renderWarnings)) return;
|
|
82
|
+
var d = A.data, T = d.totals;
|
|
83
|
+
w.appendChild(el('div', { className: 'bigstats' }, stat(T.noManager, 'without a manager', 'lose'), stat(T.noEmail, 'without an email', 'lose'), stat(T.noAttribute, 'without ' + d.attribute, 'lose'), stat(T.sharedEmail, 'sharing an email', 'lose'), stat(d.checked, 'active people checked')));
|
|
84
|
+
if (d.sharedEmails.length) w.appendChild(section('Emails used by more than one person', d.sharedEmails.length, simpleTable(['Email', 'People'], d.sharedEmails.map(function (s) { return [s.email, s.people.join(', ')]; }), 'Shared emails')));
|
|
85
|
+
if (!d.rows.length) { w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'No gaps found' }))); return; }
|
|
86
|
+
var f = el('input', { className: 'input', placeholder: 'Filter by person or issue...', value: A.q || '', style: 'max-width:280px', 'aria-label': 'Filter' });
|
|
87
|
+
var box = el('div');
|
|
88
|
+
var draw = function () {
|
|
89
|
+
var q = (A.q || '').toLowerCase();
|
|
90
|
+
var list = d.rows.filter(function (r) { return !q || (r.person + ' ' + r.issue).toLowerCase().indexOf(q) >= 0; });
|
|
91
|
+
box.textContent = '';
|
|
92
|
+
box.appendChild(simpleTable(['Person', 'Email', 'Lifecycle state', 'Issue'], list.slice(0, 2000).map(function (r) { return [r.person, r.email, r.lifecycle, r.issue]; }), 'Identity data issues'));
|
|
93
|
+
if (list.length > 2000 || d.more) box.appendChild(el('p', { className: 'muted small', text: 'Showing the first 2,000. The download has all of them.' }));
|
|
94
|
+
};
|
|
95
|
+
f.addEventListener('input', function () { A.q = f.value; draw(); });
|
|
96
|
+
w.appendChild(section('Issues', d.rows.length + (d.more || 0), el('div', {}, el('div', { className: 'bar', style: 'margin-bottom:10px' }, f, el('span', { style: 'flex:1' }), downloads(A.job)), box)));
|
|
97
|
+
draw();
|
|
98
|
+
w.appendChild(el('p', { className: 'muted small', text: 'Missing managers break approvals and manager certifications; missing emails break notifications; shared emails often mean duplicate people or test accounts. Fix them in the HR source, not in ISC.' }));
|
|
99
|
+
}
|