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
package/ui/js/27-warnings.js
CHANGED
|
@@ -1,224 +1,224 @@
|
|
|
1
|
-
// ---------- Warnings: what breaks on a date or stalls without anyone noticing ----------
|
|
2
|
-
function wnState() {
|
|
3
|
-
if (!state.wn) state.wn = { tab: 'ending', ending: { days: 30 }, stuck: {}, reminders: { days: 7 }, people: { days: 30 }, admins: {}, catalog: { q: '' }, growth: {}, settings: null };
|
|
4
|
-
return state.wn;
|
|
5
|
-
}
|
|
6
|
-
var WN_TABS = [
|
|
7
|
-
['joiners', 'Missed joiners', 'up', 'Active people missing an account that nearly everyone in their identity profile has, and people past their start date still in a pre-hire state.'],
|
|
8
|
-
['movers', 'Mover leftovers', 'people', 'Access that almost no one else in the person\u2019s group has: often left over from a previous job (movers) or given as a one-off.'],
|
|
9
|
-
['leavers', 'Missed leavers', 'people', 'People whose HR account is disabled but who are active in ISC, and leavers who still have enabled accounts, roles or access profiles.'],
|
|
10
|
-
['expiry', 'Accounts expiring', 'clock', 'Accounts whose expiry date (Active Directory accountExpires, or any date attribute you name) is close, and expired accounts that are still enabled.'],
|
|
11
|
-
['revokes', 'Revokes not done', 'cert', 'Access a reviewer revoked in a certification that the person still has after sign-off.'],
|
|
12
|
-
['massch', 'Mass changes', 'pulse', 'Days with far more disables, deletes, new accounts or removed access than usual: a bad HR file or transform can change thousands of accounts overnight.'],
|
|
13
|
-
['loops', 'Provisioning loops', 'lifecycle', 'The same change sent to the same account again and again: an attribute sync that never sticks or a request ISC keeps re-sending.'],
|
|
14
|
-
['outside', 'Changed outside ISC', 'eye', 'Accounts disabled on the application although ISC never disabled them, and accounts enabled again after ISC disabled them.'],
|
|
15
|
-
['syncdrift', 'Attribute sync drift', 'cols', 'Synced attributes whose value on the account differs from ISC, and attribute syncs that failed.'],
|
|
16
|
-
['groupappr', 'Group approvals', 'people', 'Access approvals waiting on a governance group, with how many members can still approve.'],
|
|
17
|
-
['mgrleft', 'Manager left', 'people', 'Active people (contractors included) whose manager or sponsor has left: their approvals and reviews reach nobody.'],
|
|
18
|
-
['aggsafe', 'Aggregation safety', 'pulse', 'Per source: the delete threshold, failed aggregations, and sources that did not aggregate at all.'],
|
|
19
|
-
['svc', 'Service accounts', 'code', 'Service and machine accounts without an owner, with an owner who left, or not used for a long time, and who owns which.'],
|
|
20
|
-
['multi', 'Several accounts', 'people', 'People with more than one account on the same source; on the authoritative source this usually means a duplicate HR record or a rehire.'],
|
|
21
|
-
['pwfail', 'Password failures', 'shield', 'Password changes, resets and syncs that failed, per person and source.'],
|
|
22
|
-
['lcset', 'Lifecycle settings', 'lifecycle', 'What each lifecycle state does to accounts and access, and leaver states that leave accounts switched on.'],
|
|
23
|
-
['govgroups', 'Governance groups', 'people', 'Governance groups with no members, only members who left, an owner who left, or no use anywhere.'],
|
|
24
|
-
['signins', 'Sign-in signals', 'shield', 'Many failed sign-ins for one person, a sign-in right after a run of failures, sign-ins by people who have left, and one network address trying many people.'],
|
|
25
|
-
['selfappr', 'Self-approvals', 'eye', 'Access requests approved by the person who gets the access, or by the person who asked for it on someone’s behalf.'],
|
|
26
|
-
['adminact', 'Admin activity', 'code', 'Who changed tenant settings, sources, admins and access items, with changes made by people who have left or by something that is not a person.'],
|
|
27
|
-
['spikes', 'Access spikes', 'pulse', 'People who were given an unusual number of access items in one day.'],
|
|
28
|
-
['privgain', 'Privileged access gained', 'shield', 'Privileged entitlements people hold now and did not hold at the previous look, and whether ISC provisioned them or they appeared on the application.'],
|
|
29
|
-
['outacct', 'Accounts created outside ISC', 'eye', 'New accounts ISC found on a source and did not create itself, with the ones nobody owns or that already have access first.'],
|
|
30
|
-
['sensitive', 'Sensitive changes', 'code', 'Configuration changes that touch a control (rules, lifecycle states, sources, password and SOD policies, event subscriptions) and new API credentials, with who made them where ISC says.'],
|
|
31
|
-
['risk', 'Risk by person', 'people', 'The signals of all threat screens added up per person: someone who shows on several screens comes first.'],
|
|
32
|
-
['upcoming', 'Coming up', 'clock', 'Who starts or ends in the next days, the lifecycle state they are in now and what the states of their identity profile are set to do. Before the day, not after.'],
|
|
33
|
-
['stuckreq', 'Stuck requests', 'pulse', 'Access requests still running after a day or more: the phase each waits in and on whom, next to the sources ISC keeps re-sending the same change to.'],
|
|
34
|
-
['ending', 'Access ending', 'clock', 'Access granted with an end date. ISC removes it on that date; renew it before then if it is still needed.'],
|
|
35
|
-
['stuck', 'Waiting on leavers', 'people', 'Certification reviews and access approvals assigned to someone who left. They do not move until someone reassigns them.'],
|
|
36
|
-
['reminders', 'Review deadlines', 'cert', 'Certifications still open close to their deadline, per reviewer, so you can send reminders in time.'],
|
|
37
|
-
['people', 'End dates', 'lifecycle', 'Active people whose end date is coming up, and people still active after their end date.'],
|
|
38
|
-
['admins', 'ISC admins', 'shield', 'Who holds a user level in ISC itself, such as Org admin, and who of them has left.'],
|
|
39
|
-
['catalog', 'Access catalog', 'apps', 'Requestable access without a description or owner: people request the wrong thing and approvals stall.'],
|
|
40
|
-
['growth', 'Identity count', 'up', 'How many identities you have, how fast the number grows, and when you reach your licensed number.'],
|
|
41
|
-
['quality', 'Identity data', 'people', 'Active people without a manager, email or a key attribute, and emails used by more than one person.']
|
|
42
|
-
];
|
|
43
|
-
function renderWarnings() {
|
|
44
|
-
var W = wnState();
|
|
45
|
-
var outer = $('warnings');
|
|
46
|
-
outer.textContent = '';
|
|
47
|
-
var w = el('div', { className: 'wrap', style: 'max-width:1240px' });
|
|
48
|
-
outer.appendChild(w);
|
|
49
|
-
w.appendChild(el('div', { className: 'rhead', style: 'margin-bottom:4px' }, el('span', { className: 'cat-ico', style: 'color:#b45309;background:#fef3c7' }, icon('clock')),
|
|
50
|
-
el('div', {}, el('h2', { text: 'Warnings' }), el('p', { className: 'desc', text: 'Things that break on a date or stall quietly, found before someone notices the hard way. Read-only.' }))));
|
|
51
|
-
groupedTabs(w, 'wn', WN_GROUPS, WN_TABS, W.tab, function (id) { W.tab = id; renderWarnings(); });
|
|
52
|
-
var spec = WN_TABS.filter(function (t) { return t[0] === W.tab; })[0];
|
|
53
|
-
if (!W.settings && (W.tab === 'people' || W.tab === 'growth')) {
|
|
54
|
-
W.settings = 'loading';
|
|
55
|
-
api('/api/warnings/settings').then(function (s) { W.settings = s; }, function () { W.settings = {}; }).then(function () { if (state.page === 'warnings') renderWarnings(); });
|
|
56
|
-
}
|
|
57
|
-
({ ending: wnEnding, stuck: wnStuck, reminders: wnReminders, people: wnPeople, admins: wnAdmins, catalog: wnCatalog, growth: wnGrowth, quality: wnQuality, joiners: wnJoiners, leavers: wnLeavers, expiry: wnExpiry, revokes: wnRevokes, massch: wnMassChange, signins: wnSignIns, selfappr: wnSelfApprovals, adminact: wnAdminActivity, spikes: wnAccessSpikes, lcset: wnLifecycleSettings, govgroups: wnGovGroups, aggsafe: wnAggSafety, svc: wnServiceAccounts, multi: wnMultiAccounts, pwfail: wnPasswordFailures, loops: wnLoops, outside: wnOutside, syncdrift: wnSyncDrift, groupappr: wnGroupApprovals, mgrleft: wnManagerLeft, privgain: wnPrivGained, outacct: wnOutsideAccounts, sensitive: wnSensitive, risk: wnRisk, upcoming: wnUpcoming, stuckreq: wnStuckReq, movers: function (w) { renderMovers(w); } })[W.tab](w, W[W.tab] || {}, spec[3]);
|
|
58
|
-
}
|
|
59
|
-
function wnRunBar(w, H, path, label, desc, extras, body) {
|
|
60
|
-
w.appendChild(el('div', { className: 'bar', style: 'margin-bottom:14px' }, el('span', { className: 'muted', style: 'flex:1;min-width:260px', text: desc }), extras || null,
|
|
61
|
-
el('button', { className: 'btn primary', disabled: !!H.busy, onclick: function () { runJobInto(H, '/api/warnings/' + path + '/run', body ? body() : {}, renderWarnings); } }, icon('play'), H.data ? 'Read again' : label)));
|
|
62
|
-
if (H.busy) { w.appendChild(busyBox(H.busy)); return false; }
|
|
63
|
-
if (H.error) { w.appendChild(el('div', { className: 'error', text: H.error })); return false; }
|
|
64
|
-
if (!H.data) return false;
|
|
65
|
-
(H.data.notes || []).forEach(function (n) { w.appendChild(el('div', { className: 'note', text: n })); });
|
|
66
|
-
return true;
|
|
67
|
-
}
|
|
68
|
-
function daysSelect(H, options, label) {
|
|
69
|
-
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] }); }));
|
|
70
|
-
s.value = String(H.days);
|
|
71
|
-
s.addEventListener('change', function () { H.days = Number(s.value); });
|
|
72
|
-
return s;
|
|
73
|
-
}
|
|
74
|
-
function stat(n, label, tone) { return el('div', { className: 'bigstat' + (tone && n ? ' ' + tone : '') }, el('b', { text: n === null || n === undefined ? '—' : fmtNum(n) }), el('span', { text: label })); }
|
|
75
|
-
function pill(text, tone) { return el('span', { className: 'chg ' + tone, text: text }); }
|
|
76
|
-
function statusPill(s) { return !s || s === 'active' ? null : pill(s === 'left' ? 'has left' : s, 'lose'); }
|
|
77
|
-
function daysText(n) { return n === 0 ? 'today' : n === 1 ? 'tomorrow' : n < 0 ? (-n) + ' days ago' : 'in ' + n + ' days'; }
|
|
78
|
-
|
|
79
|
-
function wnEnding(w, H, desc) {
|
|
80
|
-
var sel = daysSelect(H, [[7, 'Next 7 days'], [14, 'Next 14 days'], [30, 'Next 30 days'], [90, 'Next 90 days']], 'Period');
|
|
81
|
-
if (!wnRunBar(w, H, 'access-ending', 'Find access ending', desc, sel, function () { return { days: H.days }; })) return;
|
|
82
|
-
var d = H.data;
|
|
83
|
-
w.appendChild(el('div', { className: 'bigstats' }, stat(d.rows.length, 'items end in the next ' + d.days + ' days'), stat(d.rows.filter(function (r) { return r.daysLeft <= 7; }).length, 'within 7 days', 'lose'), stat(d.byManager.length, 'managers to tell')));
|
|
84
|
-
if (!d.rows.length) { w.appendChild(el('p', { className: 'muted', text: 'No access with an end date in this period.' })); return; }
|
|
85
|
-
w.appendChild(section('By manager', d.byManager.length, simpleTable(['Manager', 'Items ending', 'Soonest'], d.byManager.map(function (m) { return [m.manager, m.count, daysText(m.soonest)]; }))));
|
|
86
|
-
w.appendChild(section('Access ending', d.rows.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)),
|
|
87
|
-
simpleTable(['Person', 'Access', 'Type', 'Ends', 'Manager', 'Requested by'], d.rows.slice(0, 2000).map(function (r) {
|
|
88
|
-
return [el('span', {}, r.person, ' ', statusPill(r.personStatus)), r.access, r.type, el('span', { style: 'white-space:nowrap' }, r.removeDate.slice(0, 10) + ' ', pill(daysText(r.daysLeft), r.daysLeft <= 7 ? 'lose' : 'off')), r.manager, r.requester];
|
|
89
|
-
})))));
|
|
90
|
-
w.appendChild(el('p', { className: 'muted small', text: 'From completed access requests that had an end date. Access removed earlier by another route may still show here.' }));
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function wnStuck(w, H, desc) {
|
|
94
|
-
if (!wnRunBar(w, H, 'stuck', 'Find stuck items', desc)) return;
|
|
95
|
-
var d = H.data;
|
|
96
|
-
w.appendChild(el('div', { className: 'bigstats' }, stat(d.totals.reviews, 'certification reviews', 'lose'), stat(d.totals.approvals, 'access approvals', 'lose')));
|
|
97
|
-
if (!d.rows.length) w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'Nothing is waiting on people who left' })));
|
|
98
|
-
else w.appendChild(section('Waiting on people who left', d.rows.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)),
|
|
99
|
-
simpleTable(['What', 'Item', 'Waiting on', 'When'], d.rows.map(function (r) { return [r.kind, r.item, el('span', {}, r.waitingOn, ' ', statusPill(r.status)), r.detail]; })))));
|
|
100
|
-
w.appendChild(el('p', { className: 'muted small' }, 'Reassign them in ISC: certification reviews from the campaign, approvals from the request. Objects owned by people who left (sources, roles, access profiles) are on ',
|
|
101
|
-
el('button', { className: 'btn link', style: 'padding:0', text: 'Lookup → Ownership', onclick: function () { state.lk.tab = 'ownership'; showPage('lookup'); } }), '.'));
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function wnReminders(w, H, desc) {
|
|
105
|
-
var sel = daysSelect(H, [[3, 'Due within 3 days'], [7, 'Due within 7 days'], [14, 'Due within 14 days'], [30, 'Due within 30 days']], 'Due within');
|
|
106
|
-
if (!wnRunBar(w, H, 'reminders', 'Find reviews due', desc, sel, function () { return { days: H.days }; })) return;
|
|
107
|
-
var d = H.data;
|
|
108
|
-
var left = d.reviewers.reduce(function (a, r) { return a + r.decisionsLeft; }, 0);
|
|
109
|
-
w.appendChild(el('div', { className: 'bigstats' }, stat(d.reviewers.length, 'reviewers to remind'), stat(d.rows.length, 'open certifications'), stat(left, 'decisions still to make'), stat(d.rows.filter(function (r) { return r.daysLeft < 0; }).length, 'already overdue', 'lose')));
|
|
110
|
-
if (!d.rows.length) { w.appendChild(el('p', { className: 'muted', text: 'No open certification is due in this period.' })); return; }
|
|
111
|
-
var copy = el('button', { className: 'btn sm', disabled: !d.emails.length, onclick: function () {
|
|
112
|
-
try { navigator.clipboard.writeText(d.emails.join('; ')).then(function () { toast(d.emails.length + ' email addresses copied'); }, function () { toast('Could not copy; select them from the download instead'); }); } catch (e) { toast('Could not copy; select them from the download instead'); }
|
|
113
|
-
} }, icon('copy'), 'Copy reviewer emails');
|
|
114
|
-
var mail = d.emails.length ? el('a', { className: 'btn sm', href: 'mailto:?bcc=' + encodeURIComponent(d.emails.join(',')) + '&subject=' + encodeURIComponent('Reminder: your access review is due soon') + '&body=' + encodeURIComponent('Hello,\n\nYou have an access review in SailPoint that is due soon. Please open SailPoint, go to Certifications, and complete your decisions before the deadline.\n\nThank you.') }, icon('inbox'), 'Email draft (BCC)') : null;
|
|
115
|
-
w.appendChild(section('Reviewers', d.reviewers.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, copy, mail, downloads(H.job)),
|
|
116
|
-
simpleTable(['Reviewer', 'Email', 'Certifications', 'Decisions left', 'Soonest deadline', 'Campaigns'], d.reviewers.map(function (r) {
|
|
117
|
-
return [el('span', {}, r.reviewer, ' ', statusPill(r.status)), r.email, r.certifications, r.decisionsLeft, r.soonest === null ? null : pill(daysText(r.soonest), r.soonest <= 2 ? 'lose' : 'off'), r.campaigns.join(', ')];
|
|
118
|
-
})))));
|
|
119
|
-
w.appendChild(el('p', { className: 'muted small' }, 'Reviewers who left are not in the copied emails; reassign their reviews instead (see "Waiting on leavers"). For progress, approve rates and rubber-stamped reviews, see ',
|
|
120
|
-
el('button', { className: 'btn link', style: 'padding:0', text: 'Audit > Certifications', onclick: function () { state.au.tab = 'certs'; showPage('certs'); } }), '.'));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
function wnPeople(w, H, desc) {
|
|
124
|
-
var W = wnState();
|
|
125
|
-
var st = W.settings && W.settings !== 'loading' ? W.settings : null;
|
|
126
|
-
var p = (st && st.people) || {};
|
|
127
|
-
var attr = el('input', { className: 'input', value: p.endDateAttribute || '', placeholder: 'endDate', style: 'max-width:220px', 'aria-label': 'End-date attribute' });
|
|
128
|
-
var q = el('input', { className: 'input', value: p.query || '', placeholder: 'All active identities, or e.g. attributes.employeeType:contractor', style: 'max-width:420px', 'aria-label': 'Which identities' });
|
|
129
|
-
var msg = el('span');
|
|
130
|
-
w.appendChild(el('section', { className: 'card' }, el('div', { className: 'card-h' }, el('h3', { text: 'Settings' })),
|
|
131
|
-
el('div', { className: 'bar' },
|
|
132
|
-
el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Identity attribute with the end date' }), attr),
|
|
133
|
-
el('label', { className: 'field', style: 'margin:0;flex:1' }, el('span', { className: 'lbl', text: 'Which identities (search query, optional)' }), q),
|
|
134
|
-
el('button', { className: 'btn', style: 'align-self:flex-end', onclick: function () {
|
|
135
|
-
msg.textContent = '';
|
|
136
|
-
api('/api/warnings/settings', 'PUT', { people: { endDateAttribute: attr.value.trim(), query: q.value.trim() } }).then(function () { W.settings = null; toast('Saved. The instant check now includes "Active after end date".'); renderWarnings(); }).catch(function (e) { msg.appendChild(el('div', { className: 'error', text: errorText(e) })); });
|
|
137
|
-
} }, icon('save'), 'Save')), msg,
|
|
138
|
-
el('p', { className: 'muted small', style: 'margin:8px 0 0', text: 'Use the name of the identity attribute as in the identity profile (not the display name). Dates like 2026-12-31, 12/31/2026 or epoch numbers are understood.' })));
|
|
139
|
-
var sel = daysSelect(H, [[7, 'Ending within 7 days'], [30, 'Ending within 30 days'], [90, 'Ending within 90 days']], 'Ending within');
|
|
140
|
-
if (!wnRunBar(w, H, 'people', 'Check end dates', desc, sel, function () { return { days: H.days }; })) return;
|
|
141
|
-
var d = H.data;
|
|
142
|
-
w.appendChild(el('div', { className: 'bigstats' }, stat(d.pastEnd.length, 'still active after end date', 'lose'), stat(d.endingSoon.length, 'ending within ' + d.days + ' days'), stat(d.withDate, 'of ' + fmtNum(d.checked) + ' have an end date')));
|
|
143
|
-
var tbl = function (list, label) { return simpleTable(['Person', 'End date', 'Manager', 'Lifecycle state'], list.slice(0, 2000).map(function (r) { return [r.person, el('span', { style: 'white-space:nowrap' }, r.endDate.slice(0, 10) + ' ', pill(daysText(r.daysLeft), r.daysLeft < 0 ? 'lose' : 'off')), r.manager, r.lifecycle]; }), label); };
|
|
144
|
-
if (d.pastEnd.length) w.appendChild(section('Still active after their end date', d.pastEnd.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)), tbl(d.pastEnd, 'People still active after their end date'))));
|
|
145
|
-
if (d.endingSoon.length) w.appendChild(section('Ending soon', d.endingSoon.length, tbl(d.endingSoon, 'People ending soon')));
|
|
146
|
-
if (!d.pastEnd.length && !d.endingSoon.length && d.withDate) w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'No one is past or near their end date' })));
|
|
147
|
-
w.appendChild(el('p', { className: 'muted small', text: 'People past their end date usually mean the HR source still sends them as active, or the lifecycle state does not react to the end date. Check with HR before disabling anyone.' }));
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
function wnAdmins(w, H, desc) {
|
|
151
|
-
if (!wnRunBar(w, H, 'admins', 'List ISC admins', desc)) return;
|
|
152
|
-
var d = H.data;
|
|
153
|
-
var fresh = d.rows.filter(function (r) { return r.isNew; }).length;
|
|
154
|
-
w.appendChild(el('div', { className: 'bigstats' }, stat(d.totals.people, 'people with a user level'), stat(d.totals.orgAdmins, 'Org admins'), stat(d.totals.left, 'who have left', 'lose'), stat(d.since ? fresh : null, d.since ? 'new since ' + d.since.slice(0, 10) : 'new: from the next look on', 'lose')));
|
|
155
|
-
w.appendChild(el('div', { style: 'display:grid;grid-template-columns:minmax(220px,1fr) 3fr;gap:16px;align-items:start' },
|
|
156
|
-
section('By user level', d.byLevel.length, simpleTable(['User level', 'People'], d.byLevel.map(function (l) { return [levelName(l.level), l.people]; }))),
|
|
157
|
-
section('People', d.rows.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)),
|
|
158
|
-
simpleTable(['Person', 'User levels', 'Lifecycle state', 'Status'], d.rows.map(function (r) {
|
|
159
|
-
return [el('span', {}, r.person, r.email ? el('div', { className: 'muted small', text: r.email }) : null), r.levels.map(levelName).join(', '), r.lifecycle, el('span', {}, statusPill(r.status), r.isNew ? pill('new', 'off') : null)];
|
|
160
|
-
}))))));
|
|
161
|
-
w.appendChild(el('p', { className: 'muted small', text: 'User levels are the "IdentityNow" source entitlements found by search. Last sign-in is not shown: ISC gives it per person through another API. Remove user levels in ISC under Admin > Identities > the person > User level.' }));
|
|
162
|
-
}
|
|
163
|
-
function levelName(l) {
|
|
164
|
-
var M = { ORG_ADMIN: 'Org admin', CERT_ADMIN: 'Certification admin', HELPDESK: 'Help desk', DASHBOARD: 'Dashboard', REPORT_ADMIN: 'Report admin', ROLE_ADMIN: 'Role admin', ROLE_SUBADMIN: 'Role sub-admin', SOURCE_ADMIN: 'Source admin', SOURCE_SUBADMIN: 'Source sub-admin', SAAS_MANAGEMENT_ADMIN: 'SaaS management admin', SAAS_MANAGEMENT_READER: 'SaaS management reader' };
|
|
165
|
-
return M[l] || l;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
function wnCatalog(w, H, desc) {
|
|
169
|
-
if (!wnRunBar(w, H, 'catalog', 'Check the catalog', desc)) return;
|
|
170
|
-
var d = H.data, T = d.totals;
|
|
171
|
-
w.appendChild(el('div', { className: 'bigstats' }, stat(T.score === null ? null : T.score, 'quality score (% complete)'), stat(T.items, 'requestable items'), stat(T.noDescription, 'without a description', 'lose'), stat(T.noOwner, 'without an owner', 'lose'), stat(T.ownerLeft, 'owner has left', 'lose')));
|
|
172
|
-
w.appendChild(section('By source', d.bySource.length, simpleTable(['Source', 'Requestable items', 'Complete', 'Score'], d.bySource.map(function (s) { return [s.source, s.items, s.complete, progressBar(s.score, s.score < 60)]; }))));
|
|
173
|
-
if (d.unused) {
|
|
174
|
-
w.appendChild(section('Nobody has it', d.unused.length, d.unused.length ? el('div', {},
|
|
175
|
-
el('p', { className: 'muted', text: 'Roles and access profiles that no identity holds, out of ' + fmtNum(T.unusedChecked || 0) + ' checked. Candidates to retire, or roles whose membership criteria match nobody (check those with Role tools > Preview a role change).' }),
|
|
176
|
-
simpleTable(['Type', 'Name', 'Source', 'Owner', 'Requestable', 'Enabled'], d.unused.slice(0, 2000).map(function (r) { return [r.type, r.name, r.source || null, r.owner || null, r.requestable ? 'yes' : 'no', r.enabled ? 'yes' : pill('disabled', 'off')]; }), 'Roles and access profiles nobody has'))
|
|
177
|
-
: el('p', { className: 'muted', text: 'Every role and access profile checked (' + fmtNum(T.unusedChecked || 0) + ') is held by at least one identity.' })));
|
|
178
|
-
}
|
|
179
|
-
if (!d.rows.length) return;
|
|
180
|
-
var f = el('input', { className: 'input', placeholder: 'Filter by name, source or owner...', value: H.q || '', style: 'max-width:300px', 'aria-label': 'Filter' });
|
|
181
|
-
var box = el('div');
|
|
182
|
-
var draw = function () {
|
|
183
|
-
var q = (H.q || '').toLowerCase();
|
|
184
|
-
var list = d.rows.filter(function (r) { return !q || (r.name + ' ' + (r.source || '') + ' ' + (r.owner || '')).toLowerCase().indexOf(q) >= 0; });
|
|
185
|
-
box.textContent = '';
|
|
186
|
-
box.appendChild(simpleTable(['Type', 'Name', 'Source', 'Owner', 'Missing'], list.slice(0, 2000).map(function (r) { return [r.type, r.name, r.source, r.owner, el('span', {}, r.issues.map(function (x) { return el('span', { className: 'chg ' + (/left|longer/.test(x) ? 'lose' : 'off'), style: 'margin:0 4px 2px 0;display:inline-block', text: x }); }))]; })));
|
|
187
|
-
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.' }));
|
|
188
|
-
};
|
|
189
|
-
f.addEventListener('input', function () { H.q = f.value; draw(); });
|
|
190
|
-
w.appendChild(section('Items to fix', d.rows.length + (d.more || 0), el('div', {}, el('div', { className: 'bar', style: 'margin-bottom:10px' }, f, el('span', { style: 'flex:1' }), downloads(H.job)), box)));
|
|
191
|
-
draw();
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
function wnGrowth(w, H, desc) {
|
|
195
|
-
var W = wnState();
|
|
196
|
-
var st = W.settings && W.settings !== 'loading' ? W.settings : {};
|
|
197
|
-
var lic = el('input', { className: 'input', type: 'number', min: '1', value: st.licensed || '', placeholder: 'e.g. 10000', style: 'max-width:160px', 'aria-label': 'Licensed identities' });
|
|
198
|
-
var basis = el('select', { className: 'input', style: 'width:auto', 'aria-label': 'Count' }, [['all', 'All identities'], ['active', 'Active identities only']].map(function (o) { return el('option', { value: o[0], text: o[1] }); }));
|
|
199
|
-
basis.value = st.basis || 'all';
|
|
200
|
-
var msg = el('span');
|
|
201
|
-
w.appendChild(el('section', { className: 'card' }, el('div', { className: 'card-h' }, el('h3', { text: 'Your license' })),
|
|
202
|
-
el('div', { className: 'bar' },
|
|
203
|
-
el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Licensed identities' }), lic),
|
|
204
|
-
el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Count' }), basis),
|
|
205
|
-
el('button', { className: 'btn', style: 'align-self:flex-end', onclick: function () {
|
|
206
|
-
msg.textContent = '';
|
|
207
|
-
api('/api/warnings/settings', 'PUT', { licensed: lic.value === '' ? '' : Number(lic.value), basis: basis.value }).then(function () { W.settings = null; toast('Saved'); renderWarnings(); }).catch(function (e) { msg.appendChild(el('div', { className: 'error', text: errorText(e) })); });
|
|
208
|
-
} }, icon('save'), 'Save')), msg));
|
|
209
|
-
if (!wnRunBar(w, H, 'growth', 'Count identities', desc)) return;
|
|
210
|
-
var d = H.data;
|
|
211
|
-
var cur = d.basis === 'active' ? d.active : d.total;
|
|
212
|
-
var pace = d.netPerMonth !== null ? d.netPerMonth : d.addedPerMonth;
|
|
213
|
-
w.appendChild(el('div', { className: 'bigstats' }, stat(d.total, 'identities'), stat(d.active, 'active'), stat(pace, d.forecastFrom === 'kept counts' ? 'net change per month' : 'new per month (3-month average)'),
|
|
214
|
-
d.licensed ? stat(d.licensed - cur, 'left of your ' + fmtNum(d.licensed), d.licensed - cur < 0 ? 'lose' : '') : null));
|
|
215
|
-
if (d.licensed) {
|
|
216
|
-
var used = cur === null ? 0 : Math.round((cur * 100) / d.licensed);
|
|
217
|
-
var when = d.monthsToLicensed === null ? (pace && pace > 0 ? null : 'not growing at the current pace') : d.monthsToLicensed === 0 ? 'already reached' : 'in about ' + d.monthsToLicensed + ' months (' + new Date(Date.now() + d.monthsToLicensed * 30.4 * 86400000).toISOString().slice(0, 7) + ')';
|
|
218
|
-
w.appendChild(el('div', { className: 'banner ' + (used >= 100 ? 'bad' : d.monthsToLicensed !== null && d.monthsToLicensed <= 6 ? 'warn' : 'ok') }, el('b', { text: used + '% of your license used' }), when ? el('span', { text: 'Licensed number reached ' + when }) : null));
|
|
219
|
-
} else w.appendChild(el('div', { className: 'note', text: 'Enter your licensed number above to see when you reach it.' }));
|
|
220
|
-
var max = Math.max.apply(null, d.monthly.map(function (m) { return m.added || 0; }).concat([1]));
|
|
221
|
-
w.appendChild(section('New identities per month', d.monthly.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)),
|
|
222
|
-
simpleTable(['Month', 'New identities', 'Compared'], d.monthly.map(function (m) { return [m.month, m.added, m.added === null ? null : el('div', { className: 'meter', style: 'width:240px;margin:4px 0' }, el('span', { style: 'width:' + Math.round(((m.added || 0) * 100) / max) + '%' }))]; })))));
|
|
223
|
-
if (d.history && d.history.length > 1) w.appendChild(section('Counts kept on this computer', d.history.length, simpleTable(['Date', 'Identities', 'Active'], d.history.slice(-12).reverse().map(function (p) { return [p.date, p.total, p.active]; }))));
|
|
224
|
-
}
|
|
1
|
+
// ---------- Warnings: what breaks on a date or stalls without anyone noticing ----------
|
|
2
|
+
function wnState() {
|
|
3
|
+
if (!state.wn) state.wn = { tab: 'ending', ending: { days: 30 }, stuck: {}, reminders: { days: 7 }, people: { days: 30 }, admins: {}, catalog: { q: '' }, growth: {}, settings: null };
|
|
4
|
+
return state.wn;
|
|
5
|
+
}
|
|
6
|
+
var WN_TABS = [
|
|
7
|
+
['joiners', 'Missed joiners', 'up', 'Active people missing an account that nearly everyone in their identity profile has, and people past their start date still in a pre-hire state.'],
|
|
8
|
+
['movers', 'Mover leftovers', 'people', 'Access that almost no one else in the person\u2019s group has: often left over from a previous job (movers) or given as a one-off.'],
|
|
9
|
+
['leavers', 'Missed leavers', 'people', 'People whose HR account is disabled but who are active in ISC, and leavers who still have enabled accounts, roles or access profiles.'],
|
|
10
|
+
['expiry', 'Accounts expiring', 'clock', 'Accounts whose expiry date (Active Directory accountExpires, or any date attribute you name) is close, and expired accounts that are still enabled.'],
|
|
11
|
+
['revokes', 'Revokes not done', 'cert', 'Access a reviewer revoked in a certification that the person still has after sign-off.'],
|
|
12
|
+
['massch', 'Mass changes', 'pulse', 'Days with far more disables, deletes, new accounts or removed access than usual: a bad HR file or transform can change thousands of accounts overnight.'],
|
|
13
|
+
['loops', 'Provisioning loops', 'lifecycle', 'The same change sent to the same account again and again: an attribute sync that never sticks or a request ISC keeps re-sending.'],
|
|
14
|
+
['outside', 'Changed outside ISC', 'eye', 'Accounts disabled on the application although ISC never disabled them, and accounts enabled again after ISC disabled them.'],
|
|
15
|
+
['syncdrift', 'Attribute sync drift', 'cols', 'Synced attributes whose value on the account differs from ISC, and attribute syncs that failed.'],
|
|
16
|
+
['groupappr', 'Group approvals', 'people', 'Access approvals waiting on a governance group, with how many members can still approve.'],
|
|
17
|
+
['mgrleft', 'Manager left', 'people', 'Active people (contractors included) whose manager or sponsor has left: their approvals and reviews reach nobody.'],
|
|
18
|
+
['aggsafe', 'Aggregation safety', 'pulse', 'Per source: the delete threshold, failed aggregations, and sources that did not aggregate at all.'],
|
|
19
|
+
['svc', 'Service accounts', 'code', 'Service and machine accounts without an owner, with an owner who left, or not used for a long time, and who owns which.'],
|
|
20
|
+
['multi', 'Several accounts', 'people', 'People with more than one account on the same source; on the authoritative source this usually means a duplicate HR record or a rehire.'],
|
|
21
|
+
['pwfail', 'Password failures', 'shield', 'Password changes, resets and syncs that failed, per person and source.'],
|
|
22
|
+
['lcset', 'Lifecycle settings', 'lifecycle', 'What each lifecycle state does to accounts and access, and leaver states that leave accounts switched on.'],
|
|
23
|
+
['govgroups', 'Governance groups', 'people', 'Governance groups with no members, only members who left, an owner who left, or no use anywhere.'],
|
|
24
|
+
['signins', 'Sign-in signals', 'shield', 'Many failed sign-ins for one person, a sign-in right after a run of failures, sign-ins by people who have left, and one network address trying many people.'],
|
|
25
|
+
['selfappr', 'Self-approvals', 'eye', 'Access requests approved by the person who gets the access, or by the person who asked for it on someone’s behalf.'],
|
|
26
|
+
['adminact', 'Admin activity', 'code', 'Who changed tenant settings, sources, admins and access items, with changes made by people who have left or by something that is not a person.'],
|
|
27
|
+
['spikes', 'Access spikes', 'pulse', 'People who were given an unusual number of access items in one day.'],
|
|
28
|
+
['privgain', 'Privileged access gained', 'shield', 'Privileged entitlements people hold now and did not hold at the previous look, and whether ISC provisioned them or they appeared on the application.'],
|
|
29
|
+
['outacct', 'Accounts created outside ISC', 'eye', 'New accounts ISC found on a source and did not create itself, with the ones nobody owns or that already have access first.'],
|
|
30
|
+
['sensitive', 'Sensitive changes', 'code', 'Configuration changes that touch a control (rules, lifecycle states, sources, password and SOD policies, event subscriptions) and new API credentials, with who made them where ISC says.'],
|
|
31
|
+
['risk', 'Risk by person', 'people', 'The signals of all threat screens added up per person: someone who shows on several screens comes first.'],
|
|
32
|
+
['upcoming', 'Coming up', 'clock', 'Who starts or ends in the next days, the lifecycle state they are in now and what the states of their identity profile are set to do. Before the day, not after.'],
|
|
33
|
+
['stuckreq', 'Stuck requests', 'pulse', 'Access requests still running after a day or more: the phase each waits in and on whom, next to the sources ISC keeps re-sending the same change to.'],
|
|
34
|
+
['ending', 'Access ending', 'clock', 'Access granted with an end date. ISC removes it on that date; renew it before then if it is still needed.'],
|
|
35
|
+
['stuck', 'Waiting on leavers', 'people', 'Certification reviews and access approvals assigned to someone who left. They do not move until someone reassigns them.'],
|
|
36
|
+
['reminders', 'Review deadlines', 'cert', 'Certifications still open close to their deadline, per reviewer, so you can send reminders in time.'],
|
|
37
|
+
['people', 'End dates', 'lifecycle', 'Active people whose end date is coming up, and people still active after their end date.'],
|
|
38
|
+
['admins', 'ISC admins', 'shield', 'Who holds a user level in ISC itself, such as Org admin, and who of them has left.'],
|
|
39
|
+
['catalog', 'Access catalog', 'apps', 'Requestable access without a description or owner: people request the wrong thing and approvals stall.'],
|
|
40
|
+
['growth', 'Identity count', 'up', 'How many identities you have, how fast the number grows, and when you reach your licensed number.'],
|
|
41
|
+
['quality', 'Identity data', 'people', 'Active people without a manager, email or a key attribute, and emails used by more than one person.']
|
|
42
|
+
];
|
|
43
|
+
function renderWarnings() {
|
|
44
|
+
var W = wnState();
|
|
45
|
+
var outer = $('warnings');
|
|
46
|
+
outer.textContent = '';
|
|
47
|
+
var w = el('div', { className: 'wrap', style: 'max-width:1240px' });
|
|
48
|
+
outer.appendChild(w);
|
|
49
|
+
w.appendChild(el('div', { className: 'rhead', style: 'margin-bottom:4px' }, el('span', { className: 'cat-ico', style: 'color:#b45309;background:#fef3c7' }, icon('clock')),
|
|
50
|
+
el('div', {}, el('h2', { text: 'Warnings' }), el('p', { className: 'desc', text: 'Things that break on a date or stall quietly, found before someone notices the hard way. Read-only.' }))));
|
|
51
|
+
groupedTabs(w, 'wn', WN_GROUPS, WN_TABS, W.tab, function (id) { W.tab = id; renderWarnings(); });
|
|
52
|
+
var spec = WN_TABS.filter(function (t) { return t[0] === W.tab; })[0];
|
|
53
|
+
if (!W.settings && (W.tab === 'people' || W.tab === 'growth')) {
|
|
54
|
+
W.settings = 'loading';
|
|
55
|
+
api('/api/warnings/settings').then(function (s) { W.settings = s; }, function () { W.settings = {}; }).then(function () { if (state.page === 'warnings') renderWarnings(); });
|
|
56
|
+
}
|
|
57
|
+
({ ending: wnEnding, stuck: wnStuck, reminders: wnReminders, people: wnPeople, admins: wnAdmins, catalog: wnCatalog, growth: wnGrowth, quality: wnQuality, joiners: wnJoiners, leavers: wnLeavers, expiry: wnExpiry, revokes: wnRevokes, massch: wnMassChange, signins: wnSignIns, selfappr: wnSelfApprovals, adminact: wnAdminActivity, spikes: wnAccessSpikes, lcset: wnLifecycleSettings, govgroups: wnGovGroups, aggsafe: wnAggSafety, svc: wnServiceAccounts, multi: wnMultiAccounts, pwfail: wnPasswordFailures, loops: wnLoops, outside: wnOutside, syncdrift: wnSyncDrift, groupappr: wnGroupApprovals, mgrleft: wnManagerLeft, privgain: wnPrivGained, outacct: wnOutsideAccounts, sensitive: wnSensitive, risk: wnRisk, upcoming: wnUpcoming, stuckreq: wnStuckReq, movers: function (w) { renderMovers(w); } })[W.tab](w, W[W.tab] || {}, spec[3]);
|
|
58
|
+
}
|
|
59
|
+
function wnRunBar(w, H, path, label, desc, extras, body) {
|
|
60
|
+
w.appendChild(el('div', { className: 'bar', style: 'margin-bottom:14px' }, el('span', { className: 'muted', style: 'flex:1;min-width:260px', text: desc }), extras || null,
|
|
61
|
+
el('button', { className: 'btn primary', disabled: !!H.busy, onclick: function () { runJobInto(H, '/api/warnings/' + path + '/run', body ? body() : {}, renderWarnings); } }, icon('play'), H.data ? 'Read again' : label)));
|
|
62
|
+
if (H.busy) { w.appendChild(busyBox(H.busy)); return false; }
|
|
63
|
+
if (H.error) { w.appendChild(el('div', { className: 'error', text: H.error })); return false; }
|
|
64
|
+
if (!H.data) return false;
|
|
65
|
+
(H.data.notes || []).forEach(function (n) { w.appendChild(el('div', { className: 'note', text: n })); });
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
function daysSelect(H, options, label) {
|
|
69
|
+
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] }); }));
|
|
70
|
+
s.value = String(H.days);
|
|
71
|
+
s.addEventListener('change', function () { H.days = Number(s.value); });
|
|
72
|
+
return s;
|
|
73
|
+
}
|
|
74
|
+
function stat(n, label, tone) { return el('div', { className: 'bigstat' + (tone && n ? ' ' + tone : '') }, el('b', { text: n === null || n === undefined ? '—' : fmtNum(n) }), el('span', { text: label })); }
|
|
75
|
+
function pill(text, tone) { return el('span', { className: 'chg ' + tone, text: text }); }
|
|
76
|
+
function statusPill(s) { return !s || s === 'active' ? null : pill(s === 'left' ? 'has left' : s, 'lose'); }
|
|
77
|
+
function daysText(n) { return n === 0 ? 'today' : n === 1 ? 'tomorrow' : n < 0 ? (-n) + ' days ago' : 'in ' + n + ' days'; }
|
|
78
|
+
|
|
79
|
+
function wnEnding(w, H, desc) {
|
|
80
|
+
var sel = daysSelect(H, [[7, 'Next 7 days'], [14, 'Next 14 days'], [30, 'Next 30 days'], [90, 'Next 90 days']], 'Period');
|
|
81
|
+
if (!wnRunBar(w, H, 'access-ending', 'Find access ending', desc, sel, function () { return { days: H.days }; })) return;
|
|
82
|
+
var d = H.data;
|
|
83
|
+
w.appendChild(el('div', { className: 'bigstats' }, stat(d.rows.length, 'items end in the next ' + d.days + ' days'), stat(d.rows.filter(function (r) { return r.daysLeft <= 7; }).length, 'within 7 days', 'lose'), stat(d.byManager.length, 'managers to tell')));
|
|
84
|
+
if (!d.rows.length) { w.appendChild(el('p', { className: 'muted', text: 'No access with an end date in this period.' })); return; }
|
|
85
|
+
w.appendChild(section('By manager', d.byManager.length, simpleTable(['Manager', 'Items ending', 'Soonest'], d.byManager.map(function (m) { return [m.manager, m.count, daysText(m.soonest)]; }))));
|
|
86
|
+
w.appendChild(section('Access ending', d.rows.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)),
|
|
87
|
+
simpleTable(['Person', 'Access', 'Type', 'Ends', 'Manager', 'Requested by'], d.rows.slice(0, 2000).map(function (r) {
|
|
88
|
+
return [el('span', {}, r.person, ' ', statusPill(r.personStatus)), r.access, r.type, el('span', { style: 'white-space:nowrap' }, r.removeDate.slice(0, 10) + ' ', pill(daysText(r.daysLeft), r.daysLeft <= 7 ? 'lose' : 'off')), r.manager, r.requester];
|
|
89
|
+
})))));
|
|
90
|
+
w.appendChild(el('p', { className: 'muted small', text: 'From completed access requests that had an end date. Access removed earlier by another route may still show here.' }));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function wnStuck(w, H, desc) {
|
|
94
|
+
if (!wnRunBar(w, H, 'stuck', 'Find stuck items', desc)) return;
|
|
95
|
+
var d = H.data;
|
|
96
|
+
w.appendChild(el('div', { className: 'bigstats' }, stat(d.totals.reviews, 'certification reviews', 'lose'), stat(d.totals.approvals, 'access approvals', 'lose')));
|
|
97
|
+
if (!d.rows.length) w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'Nothing is waiting on people who left' })));
|
|
98
|
+
else w.appendChild(section('Waiting on people who left', d.rows.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)),
|
|
99
|
+
simpleTable(['What', 'Item', 'Waiting on', 'When'], d.rows.map(function (r) { return [r.kind, r.item, el('span', {}, r.waitingOn, ' ', statusPill(r.status)), r.detail]; })))));
|
|
100
|
+
w.appendChild(el('p', { className: 'muted small' }, 'Reassign them in ISC: certification reviews from the campaign, approvals from the request. Objects owned by people who left (sources, roles, access profiles) are on ',
|
|
101
|
+
el('button', { className: 'btn link', style: 'padding:0', text: 'Lookup → Ownership', onclick: function () { state.lk.tab = 'ownership'; showPage('lookup'); } }), '.'));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function wnReminders(w, H, desc) {
|
|
105
|
+
var sel = daysSelect(H, [[3, 'Due within 3 days'], [7, 'Due within 7 days'], [14, 'Due within 14 days'], [30, 'Due within 30 days']], 'Due within');
|
|
106
|
+
if (!wnRunBar(w, H, 'reminders', 'Find reviews due', desc, sel, function () { return { days: H.days }; })) return;
|
|
107
|
+
var d = H.data;
|
|
108
|
+
var left = d.reviewers.reduce(function (a, r) { return a + r.decisionsLeft; }, 0);
|
|
109
|
+
w.appendChild(el('div', { className: 'bigstats' }, stat(d.reviewers.length, 'reviewers to remind'), stat(d.rows.length, 'open certifications'), stat(left, 'decisions still to make'), stat(d.rows.filter(function (r) { return r.daysLeft < 0; }).length, 'already overdue', 'lose')));
|
|
110
|
+
if (!d.rows.length) { w.appendChild(el('p', { className: 'muted', text: 'No open certification is due in this period.' })); return; }
|
|
111
|
+
var copy = el('button', { className: 'btn sm', disabled: !d.emails.length, onclick: function () {
|
|
112
|
+
try { navigator.clipboard.writeText(d.emails.join('; ')).then(function () { toast(d.emails.length + ' email addresses copied'); }, function () { toast('Could not copy; select them from the download instead'); }); } catch (e) { toast('Could not copy; select them from the download instead'); }
|
|
113
|
+
} }, icon('copy'), 'Copy reviewer emails');
|
|
114
|
+
var mail = d.emails.length ? el('a', { className: 'btn sm', href: 'mailto:?bcc=' + encodeURIComponent(d.emails.join(',')) + '&subject=' + encodeURIComponent('Reminder: your access review is due soon') + '&body=' + encodeURIComponent('Hello,\n\nYou have an access review in SailPoint that is due soon. Please open SailPoint, go to Certifications, and complete your decisions before the deadline.\n\nThank you.') }, icon('inbox'), 'Email draft (BCC)') : null;
|
|
115
|
+
w.appendChild(section('Reviewers', d.reviewers.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, copy, mail, downloads(H.job)),
|
|
116
|
+
simpleTable(['Reviewer', 'Email', 'Certifications', 'Decisions left', 'Soonest deadline', 'Campaigns'], d.reviewers.map(function (r) {
|
|
117
|
+
return [el('span', {}, r.reviewer, ' ', statusPill(r.status)), r.email, r.certifications, r.decisionsLeft, r.soonest === null ? null : pill(daysText(r.soonest), r.soonest <= 2 ? 'lose' : 'off'), r.campaigns.join(', ')];
|
|
118
|
+
})))));
|
|
119
|
+
w.appendChild(el('p', { className: 'muted small' }, 'Reviewers who left are not in the copied emails; reassign their reviews instead (see "Waiting on leavers"). For progress, approve rates and rubber-stamped reviews, see ',
|
|
120
|
+
el('button', { className: 'btn link', style: 'padding:0', text: 'Audit > Certifications', onclick: function () { state.au.tab = 'certs'; showPage('certs'); } }), '.'));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function wnPeople(w, H, desc) {
|
|
124
|
+
var W = wnState();
|
|
125
|
+
var st = W.settings && W.settings !== 'loading' ? W.settings : null;
|
|
126
|
+
var p = (st && st.people) || {};
|
|
127
|
+
var attr = el('input', { className: 'input', value: p.endDateAttribute || '', placeholder: 'endDate', style: 'max-width:220px', 'aria-label': 'End-date attribute' });
|
|
128
|
+
var q = el('input', { className: 'input', value: p.query || '', placeholder: 'All active identities, or e.g. attributes.employeeType:contractor', style: 'max-width:420px', 'aria-label': 'Which identities' });
|
|
129
|
+
var msg = el('span');
|
|
130
|
+
w.appendChild(el('section', { className: 'card' }, el('div', { className: 'card-h' }, el('h3', { text: 'Settings' })),
|
|
131
|
+
el('div', { className: 'bar' },
|
|
132
|
+
el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Identity attribute with the end date' }), attr),
|
|
133
|
+
el('label', { className: 'field', style: 'margin:0;flex:1' }, el('span', { className: 'lbl', text: 'Which identities (search query, optional)' }), q),
|
|
134
|
+
el('button', { className: 'btn', style: 'align-self:flex-end', onclick: function () {
|
|
135
|
+
msg.textContent = '';
|
|
136
|
+
api('/api/warnings/settings', 'PUT', { people: { endDateAttribute: attr.value.trim(), query: q.value.trim() } }).then(function () { W.settings = null; toast('Saved. The instant check now includes "Active after end date".'); renderWarnings(); }).catch(function (e) { msg.appendChild(el('div', { className: 'error', text: errorText(e) })); });
|
|
137
|
+
} }, icon('save'), 'Save')), msg,
|
|
138
|
+
el('p', { className: 'muted small', style: 'margin:8px 0 0', text: 'Use the name of the identity attribute as in the identity profile (not the display name). Dates like 2026-12-31, 12/31/2026 or epoch numbers are understood.' })));
|
|
139
|
+
var sel = daysSelect(H, [[7, 'Ending within 7 days'], [30, 'Ending within 30 days'], [90, 'Ending within 90 days']], 'Ending within');
|
|
140
|
+
if (!wnRunBar(w, H, 'people', 'Check end dates', desc, sel, function () { return { days: H.days }; })) return;
|
|
141
|
+
var d = H.data;
|
|
142
|
+
w.appendChild(el('div', { className: 'bigstats' }, stat(d.pastEnd.length, 'still active after end date', 'lose'), stat(d.endingSoon.length, 'ending within ' + d.days + ' days'), stat(d.withDate, 'of ' + fmtNum(d.checked) + ' have an end date')));
|
|
143
|
+
var tbl = function (list, label) { return simpleTable(['Person', 'End date', 'Manager', 'Lifecycle state'], list.slice(0, 2000).map(function (r) { return [r.person, el('span', { style: 'white-space:nowrap' }, r.endDate.slice(0, 10) + ' ', pill(daysText(r.daysLeft), r.daysLeft < 0 ? 'lose' : 'off')), r.manager, r.lifecycle]; }), label); };
|
|
144
|
+
if (d.pastEnd.length) w.appendChild(section('Still active after their end date', d.pastEnd.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)), tbl(d.pastEnd, 'People still active after their end date'))));
|
|
145
|
+
if (d.endingSoon.length) w.appendChild(section('Ending soon', d.endingSoon.length, tbl(d.endingSoon, 'People ending soon')));
|
|
146
|
+
if (!d.pastEnd.length && !d.endingSoon.length && d.withDate) w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'No one is past or near their end date' })));
|
|
147
|
+
w.appendChild(el('p', { className: 'muted small', text: 'People past their end date usually mean the HR source still sends them as active, or the lifecycle state does not react to the end date. Check with HR before disabling anyone.' }));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function wnAdmins(w, H, desc) {
|
|
151
|
+
if (!wnRunBar(w, H, 'admins', 'List ISC admins', desc)) return;
|
|
152
|
+
var d = H.data;
|
|
153
|
+
var fresh = d.rows.filter(function (r) { return r.isNew; }).length;
|
|
154
|
+
w.appendChild(el('div', { className: 'bigstats' }, stat(d.totals.people, 'people with a user level'), stat(d.totals.orgAdmins, 'Org admins'), stat(d.totals.left, 'who have left', 'lose'), stat(d.since ? fresh : null, d.since ? 'new since ' + d.since.slice(0, 10) : 'new: from the next look on', 'lose')));
|
|
155
|
+
w.appendChild(el('div', { style: 'display:grid;grid-template-columns:minmax(220px,1fr) 3fr;gap:16px;align-items:start' },
|
|
156
|
+
section('By user level', d.byLevel.length, simpleTable(['User level', 'People'], d.byLevel.map(function (l) { return [levelName(l.level), l.people]; }))),
|
|
157
|
+
section('People', d.rows.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)),
|
|
158
|
+
simpleTable(['Person', 'User levels', 'Lifecycle state', 'Status'], d.rows.map(function (r) {
|
|
159
|
+
return [el('span', {}, r.person, r.email ? el('div', { className: 'muted small', text: r.email }) : null), r.levels.map(levelName).join(', '), r.lifecycle, el('span', {}, statusPill(r.status), r.isNew ? pill('new', 'off') : null)];
|
|
160
|
+
}))))));
|
|
161
|
+
w.appendChild(el('p', { className: 'muted small', text: 'User levels are the "IdentityNow" source entitlements found by search. Last sign-in is not shown: ISC gives it per person through another API. Remove user levels in ISC under Admin > Identities > the person > User level.' }));
|
|
162
|
+
}
|
|
163
|
+
function levelName(l) {
|
|
164
|
+
var M = { ORG_ADMIN: 'Org admin', CERT_ADMIN: 'Certification admin', HELPDESK: 'Help desk', DASHBOARD: 'Dashboard', REPORT_ADMIN: 'Report admin', ROLE_ADMIN: 'Role admin', ROLE_SUBADMIN: 'Role sub-admin', SOURCE_ADMIN: 'Source admin', SOURCE_SUBADMIN: 'Source sub-admin', SAAS_MANAGEMENT_ADMIN: 'SaaS management admin', SAAS_MANAGEMENT_READER: 'SaaS management reader' };
|
|
165
|
+
return M[l] || l;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function wnCatalog(w, H, desc) {
|
|
169
|
+
if (!wnRunBar(w, H, 'catalog', 'Check the catalog', desc)) return;
|
|
170
|
+
var d = H.data, T = d.totals;
|
|
171
|
+
w.appendChild(el('div', { className: 'bigstats' }, stat(T.score === null ? null : T.score, 'quality score (% complete)'), stat(T.items, 'requestable items'), stat(T.noDescription, 'without a description', 'lose'), stat(T.noOwner, 'without an owner', 'lose'), stat(T.ownerLeft, 'owner has left', 'lose')));
|
|
172
|
+
w.appendChild(section('By source', d.bySource.length, simpleTable(['Source', 'Requestable items', 'Complete', 'Score'], d.bySource.map(function (s) { return [s.source, s.items, s.complete, progressBar(s.score, s.score < 60)]; }))));
|
|
173
|
+
if (d.unused) {
|
|
174
|
+
w.appendChild(section('Nobody has it', d.unused.length, d.unused.length ? el('div', {},
|
|
175
|
+
el('p', { className: 'muted', text: 'Roles and access profiles that no identity holds, out of ' + fmtNum(T.unusedChecked || 0) + ' checked. Candidates to retire, or roles whose membership criteria match nobody (check those with Role tools > Preview a role change).' }),
|
|
176
|
+
simpleTable(['Type', 'Name', 'Source', 'Owner', 'Requestable', 'Enabled'], d.unused.slice(0, 2000).map(function (r) { return [r.type, r.name, r.source || null, r.owner || null, r.requestable ? 'yes' : 'no', r.enabled ? 'yes' : pill('disabled', 'off')]; }), 'Roles and access profiles nobody has'))
|
|
177
|
+
: el('p', { className: 'muted', text: 'Every role and access profile checked (' + fmtNum(T.unusedChecked || 0) + ') is held by at least one identity.' })));
|
|
178
|
+
}
|
|
179
|
+
if (!d.rows.length) return;
|
|
180
|
+
var f = el('input', { className: 'input', placeholder: 'Filter by name, source or owner...', value: H.q || '', style: 'max-width:300px', 'aria-label': 'Filter' });
|
|
181
|
+
var box = el('div');
|
|
182
|
+
var draw = function () {
|
|
183
|
+
var q = (H.q || '').toLowerCase();
|
|
184
|
+
var list = d.rows.filter(function (r) { return !q || (r.name + ' ' + (r.source || '') + ' ' + (r.owner || '')).toLowerCase().indexOf(q) >= 0; });
|
|
185
|
+
box.textContent = '';
|
|
186
|
+
box.appendChild(simpleTable(['Type', 'Name', 'Source', 'Owner', 'Missing'], list.slice(0, 2000).map(function (r) { return [r.type, r.name, r.source, r.owner, el('span', {}, r.issues.map(function (x) { return el('span', { className: 'chg ' + (/left|longer/.test(x) ? 'lose' : 'off'), style: 'margin:0 4px 2px 0;display:inline-block', text: x }); }))]; })));
|
|
187
|
+
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.' }));
|
|
188
|
+
};
|
|
189
|
+
f.addEventListener('input', function () { H.q = f.value; draw(); });
|
|
190
|
+
w.appendChild(section('Items to fix', d.rows.length + (d.more || 0), el('div', {}, el('div', { className: 'bar', style: 'margin-bottom:10px' }, f, el('span', { style: 'flex:1' }), downloads(H.job)), box)));
|
|
191
|
+
draw();
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function wnGrowth(w, H, desc) {
|
|
195
|
+
var W = wnState();
|
|
196
|
+
var st = W.settings && W.settings !== 'loading' ? W.settings : {};
|
|
197
|
+
var lic = el('input', { className: 'input', type: 'number', min: '1', value: st.licensed || '', placeholder: 'e.g. 10000', style: 'max-width:160px', 'aria-label': 'Licensed identities' });
|
|
198
|
+
var basis = el('select', { className: 'input', style: 'width:auto', 'aria-label': 'Count' }, [['all', 'All identities'], ['active', 'Active identities only']].map(function (o) { return el('option', { value: o[0], text: o[1] }); }));
|
|
199
|
+
basis.value = st.basis || 'all';
|
|
200
|
+
var msg = el('span');
|
|
201
|
+
w.appendChild(el('section', { className: 'card' }, el('div', { className: 'card-h' }, el('h3', { text: 'Your license' })),
|
|
202
|
+
el('div', { className: 'bar' },
|
|
203
|
+
el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Licensed identities' }), lic),
|
|
204
|
+
el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Count' }), basis),
|
|
205
|
+
el('button', { className: 'btn', style: 'align-self:flex-end', onclick: function () {
|
|
206
|
+
msg.textContent = '';
|
|
207
|
+
api('/api/warnings/settings', 'PUT', { licensed: lic.value === '' ? '' : Number(lic.value), basis: basis.value }).then(function () { W.settings = null; toast('Saved'); renderWarnings(); }).catch(function (e) { msg.appendChild(el('div', { className: 'error', text: errorText(e) })); });
|
|
208
|
+
} }, icon('save'), 'Save')), msg));
|
|
209
|
+
if (!wnRunBar(w, H, 'growth', 'Count identities', desc)) return;
|
|
210
|
+
var d = H.data;
|
|
211
|
+
var cur = d.basis === 'active' ? d.active : d.total;
|
|
212
|
+
var pace = d.netPerMonth !== null ? d.netPerMonth : d.addedPerMonth;
|
|
213
|
+
w.appendChild(el('div', { className: 'bigstats' }, stat(d.total, 'identities'), stat(d.active, 'active'), stat(pace, d.forecastFrom === 'kept counts' ? 'net change per month' : 'new per month (3-month average)'),
|
|
214
|
+
d.licensed ? stat(d.licensed - cur, 'left of your ' + fmtNum(d.licensed), d.licensed - cur < 0 ? 'lose' : '') : null));
|
|
215
|
+
if (d.licensed) {
|
|
216
|
+
var used = cur === null ? 0 : Math.round((cur * 100) / d.licensed);
|
|
217
|
+
var when = d.monthsToLicensed === null ? (pace && pace > 0 ? null : 'not growing at the current pace') : d.monthsToLicensed === 0 ? 'already reached' : 'in about ' + d.monthsToLicensed + ' months (' + new Date(Date.now() + d.monthsToLicensed * 30.4 * 86400000).toISOString().slice(0, 7) + ')';
|
|
218
|
+
w.appendChild(el('div', { className: 'banner ' + (used >= 100 ? 'bad' : d.monthsToLicensed !== null && d.monthsToLicensed <= 6 ? 'warn' : 'ok') }, el('b', { text: used + '% of your license used' }), when ? el('span', { text: 'Licensed number reached ' + when }) : null));
|
|
219
|
+
} else w.appendChild(el('div', { className: 'note', text: 'Enter your licensed number above to see when you reach it.' }));
|
|
220
|
+
var max = Math.max.apply(null, d.monthly.map(function (m) { return m.added || 0; }).concat([1]));
|
|
221
|
+
w.appendChild(section('New identities per month', d.monthly.length, el('div', {}, el('div', { className: 'bar', style: 'justify-content:flex-end;margin-bottom:8px' }, downloads(H.job)),
|
|
222
|
+
simpleTable(['Month', 'New identities', 'Compared'], d.monthly.map(function (m) { return [m.month, m.added, m.added === null ? null : el('div', { className: 'meter', style: 'width:240px;margin:4px 0' }, el('span', { style: 'width:' + Math.round(((m.added || 0) * 100) / max) + '%' }))]; })))));
|
|
223
|
+
if (d.history && d.history.length > 1) w.appendChild(section('Counts kept on this computer', d.history.length, simpleTable(['Date', 'Identities', 'Active'], d.history.slice(-12).reverse().map(function (p) { return [p.date, p.total, p.active]; }))));
|
|
224
|
+
}
|