identityscope 0.28.4 → 0.28.8

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.
Files changed (119) hide show
  1. package/README.md +122 -96
  2. package/SECURITY.md +7 -7
  3. package/dist/core/audit-readiness.js +7 -7
  4. package/dist/core/audit-readiness.js.map +1 -1
  5. package/dist/core/checks.js +13 -13
  6. package/dist/core/checks.js.map +1 -1
  7. package/dist/core/datasets.js +1 -1
  8. package/dist/core/datasets.js.map +1 -1
  9. package/dist/core/governance-trail.js +3 -3
  10. package/dist/core/governance-trail.js.map +1 -1
  11. package/dist/core/http-transport.js +1 -1
  12. package/dist/core/http-transport.js.map +1 -1
  13. package/dist/core/insights.d.ts +1 -1
  14. package/dist/core/insights.js +8 -8
  15. package/dist/core/insights.js.map +1 -1
  16. package/dist/core/joiner-evidence.js +5 -5
  17. package/dist/core/joiner-evidence.js.map +1 -1
  18. package/dist/core/lab/policy-preview.js +3 -3
  19. package/dist/core/lab/policy-preview.js.map +1 -1
  20. package/dist/core/lab/transform-impact.js +1 -1
  21. package/dist/core/lab/transform-impact.js.map +1 -1
  22. package/dist/core/lab/transform-people.js +4 -4
  23. package/dist/core/lab/transform-people.js.map +1 -1
  24. package/dist/core/lab/transforms.js +1 -1
  25. package/dist/core/lab/transforms.js.map +1 -1
  26. package/dist/core/lifecycle-gaps.js +6 -6
  27. package/dist/core/lifecycle-gaps.js.map +1 -1
  28. package/dist/core/lookup.js +1 -1
  29. package/dist/core/lookup.js.map +1 -1
  30. package/dist/core/model-insights.js +10 -10
  31. package/dist/core/model-insights.js.map +1 -1
  32. package/dist/core/operations-watch.js +7 -7
  33. package/dist/core/operations-watch.js.map +1 -1
  34. package/dist/core/preview.js +3 -3
  35. package/dist/core/preview.js.map +1 -1
  36. package/dist/core/roles.js +1 -1
  37. package/dist/core/roles.js.map +1 -1
  38. package/dist/core/threat-signals.js +9 -9
  39. package/dist/core/threat-signals.js.map +1 -1
  40. package/dist/core/threat-watch.js +3 -3
  41. package/dist/core/threat-watch.js.map +1 -1
  42. package/dist/core/transport.d.ts +4 -0
  43. package/dist/core/transport.js +23 -3
  44. package/dist/core/transport.js.map +1 -1
  45. package/dist/core/warnings.js +3 -3
  46. package/dist/core/warnings.js.map +1 -1
  47. package/dist/node/attribute-history.js +2 -2
  48. package/dist/node/attribute-history.js.map +1 -1
  49. package/dist/node/cli.js +57 -5
  50. package/dist/node/cli.js.map +1 -1
  51. package/dist/node/evidence.js +7 -7
  52. package/dist/node/evidence.js.map +1 -1
  53. package/dist/node/ui-page.d.ts +1 -1
  54. package/dist/node/ui-page.js +1 -1
  55. package/dist/node/ui-page.js.map +1 -1
  56. package/dist/node/ui-server.js +64 -51
  57. package/dist/node/ui-server.js.map +1 -1
  58. package/dist/reports/builtin.generated.js +35 -35
  59. package/dist/reports/builtin.generated.js.map +1 -1
  60. package/package.json +1 -1
  61. package/reports/access-profile-members.yaml +3 -3
  62. package/reports/access-profile-membership-counts.yaml +2 -2
  63. package/reports/accounts-by-source.yaml +2 -2
  64. package/reports/active-identities-without-manager.yaml +2 -2
  65. package/reports/aggregation-failures.yaml +1 -1
  66. package/reports/aggregation-history.yaml +1 -1
  67. package/reports/all-sources.yaml +1 -1
  68. package/reports/application-accounts.yaml +3 -3
  69. package/reports/application-entitlements.yaml +3 -3
  70. package/reports/certification-decisions.yaml +1 -1
  71. package/reports/direct-reports-per-manager.yaml +3 -3
  72. package/reports/disabled-accounts-of-active-people.yaml +3 -3
  73. package/reports/duplicate-emails.yaml +1 -1
  74. package/reports/entitlement-holders.yaml +2 -2
  75. package/reports/entitlements-held-by-inactive-identities.yaml +3 -3
  76. package/reports/identities-by-lifecycle-state.yaml +3 -3
  77. package/reports/identities-missing-key-attributes.yaml +3 -3
  78. package/reports/identities-with-processing-errors.yaml +2 -2
  79. package/reports/machine-accounts.yaml +1 -1
  80. package/reports/managers-and-direct-reports.yaml +4 -4
  81. package/reports/most-access.yaml +3 -3
  82. package/reports/new-identities.yaml +3 -3
  83. package/reports/old-passwords.yaml +3 -3
  84. package/reports/pending-reviews-by-reviewer.yaml +1 -1
  85. package/reports/person-access.yaml +4 -4
  86. package/reports/privileged-access.yaml +2 -2
  87. package/reports/provisioning-error-causes.yaml +1 -1
  88. package/reports/provisioning-failures.yaml +1 -1
  89. package/reports/recent-activity.yaml +3 -3
  90. package/reports/recent-leavers.yaml +4 -4
  91. package/reports/role-members.yaml +3 -3
  92. package/reports/role-membership-counts.yaml +2 -2
  93. package/reports/team-access.yaml +4 -4
  94. package/reports/terminated-users-with-active-accounts.yaml +4 -4
  95. package/reports/uncorrelated-accounts.yaml +1 -1
  96. package/ui/js/01-small-helpers.js +2 -2
  97. package/ui/js/04-library.js +1 -1
  98. package/ui/js/07-fields.js +1 -1
  99. package/ui/js/08-designer.js +4 -4
  100. package/ui/js/11-lookup.js +4 -4
  101. package/ui/js/16-ownership.js +3 -3
  102. package/ui/js/18-audit.js +5 -5
  103. package/ui/js/19-insights.js +6 -6
  104. package/ui/js/20-role-mining.js +5 -5
  105. package/ui/js/22-partner-overview-all-customer-tenants.js +2 -2
  106. package/ui/js/23-in-app-guidance.js +42 -42
  107. package/ui/js/24-role-tools.js +4 -4
  108. package/ui/js/27-warnings.js +29 -29
  109. package/ui/js/28-audit-readiness.js +12 -12
  110. package/ui/js/29-lifecycle.js +19 -19
  111. package/ui/js/30-labs.js +8 -8
  112. package/ui/js/31-build.js +6 -6
  113. package/ui/js/32-lab-examples.js +2 -2
  114. package/ui/js/33-finder.js +2 -2
  115. package/ui/js/34-governance.js +4 -4
  116. package/ui/js/35-watch.js +13 -13
  117. package/ui/js/36-model.js +21 -21
  118. package/ui/js/37-logs-and-watch.js +11 -11
  119. package/ui/shell.html +3 -3
@@ -40,8 +40,8 @@
40
40
  var d = H.data, E = d.evidence;
41
41
  if (!E) {
42
42
  var started = d.rows.filter(function (r) { return !r.missing.length; }).length;
43
- w.appendChild(el('div', { className: 'bigstats' }, stat(d.rows.length - started, 'missing a birthright account', 'lose'), stat(started, 'past start date, still pre-hire', 'lose'), stat(d.checked, 'active people checked')));
44
- if (d.rows.length) w.appendChild(section('Missed joiners', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Person', 'Identity profile', 'Created', 'Why', 'Missing accounts on'], function (r) {
43
+ w.appendChild(el('div', { className: 'bigstats' }, stat(d.rows.length - started, 'missing a birthright account', 'lose'), stat(started, 'past start date, still pre-hire', 'lose'), stat(d.checked, 'active identities checked')));
44
+ if (d.rows.length) w.appendChild(section('Missed joiners', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Identity', 'Identity profile', 'Created', 'Why', 'Missing accounts on'], function (r) {
45
45
  return [el('span', {}, r.person, r.email ? el('div', { className: 'muted small', text: r.email }) : null), r.profile, r.created ? r.created.slice(0, 10) : null, r.reason, r.missing.length ? el('span', {}, r.missing.map(function (m) { return pill(m, 'lose'); })) : null];
46
46
  }, 'Missed joiners')));
47
47
  return;
@@ -50,17 +50,17 @@
50
50
  w.appendChild(el('div', { className: 'bigstats' },
51
51
  stat(T['Criteria met, state not applied'], 'criteria met, state not applied', 'lose'), stat(T['Joiner ran, provisioning failed'], 'joiner ran, provisioning failed', 'lose'),
52
52
  stat(T['No joiner activity recorded'] + T['Joiner ran, access not in place'], 'access missing, no create recorded', 'lose'), stat(T['Joiner ran, still in progress'], 'still in progress'),
53
- stat(T['Joiner complete'], 'joiner complete'), stat(T.checked, 'people checked')));
54
- w.appendChild(el('p', { className: 'muted', text: 'ISC has no single "joiner triggered" event, so each person is checked three ways: what their lifecycle state is set up to grant, whether the identity profile\'s lifecycle mapping puts them in that state today (worked out with the Transform lab engine), and what ISC recorded (lifecycle changes, account activities, account creates passed or failed).' }));
53
+ stat(T['Joiner complete'], 'joiner complete'), stat(T.checked, 'identities checked')));
54
+ w.appendChild(el('p', { className: 'muted', text: 'ISC has no single "joiner triggered" event, so each identity is checked three ways: what their lifecycle state is set up to grant, whether the identity profile\'s lifecycle mapping puts them in that state today (worked out with the Transform lab engine), and what ISC recorded (lifecycle changes, account activities, account creates passed or failed).' }));
55
55
  if (E.states.length) w.appendChild(section('What each lifecycle state grants', E.states.length, simpleTable(['Identity profile', 'Lifecycle state', 'Access profiles', 'Enables accounts on'], E.states.map(function (x) {
56
56
  return [x.profile, x.name + (x.enabled ? '' : ' (disabled)'), x.accessProfiles.map(function (a) { return a.name + (a.source ? ' (' + a.source + ')' : ''); }).join(', ') || '—', x.enableSources.map(function (a) { return a.name; }).join(', ') || '—'];
57
57
  }), 'Lifecycle state configuration')));
58
- if (d.birthright.length) w.appendChild(section('Accounts most of each profile has', d.birthright.length, simpleTable(['Identity profile', 'Active people', 'Sources nearly everyone has'], d.birthright.map(function (b) {
58
+ if (d.birthright.length) w.appendChild(section('Accounts most of each profile has', d.birthright.length, simpleTable(['Identity profile', 'Active identities', 'Sources nearly everyone has'], d.birthright.map(function (b) {
59
59
  return [b.profile, b.people, b.sources.length ? b.sources.map(function (s) { return s.source + ' (' + s.share + '%)'; }).join(', ') : '—'];
60
60
  }), 'Birthright accounts per identity profile')));
61
- if (!bad && !T['State does not match the criteria']) w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'No missed joiners: every person checked has what their lifecycle state grants, or it is in progress' })));
61
+ if (!bad && !T['State does not match the criteria']) w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'No missed joiners: every identity checked has what their lifecycle state grants, or it is in progress' })));
62
62
  var tone = function (v) { return v === 'Joiner complete' ? 'gain' : v === 'Joiner ran, still in progress' || v === 'Could not tell' ? 'keep-other' : 'lose'; };
63
- w.appendChild(section('People checked', E.rows.length, filteredTable(H, E.rows, ['Person', 'Lifecycle state', 'Verdict', 'Why', 'Recorded by ISC'], function (r) {
63
+ w.appendChild(section('Identities checked', E.rows.length, filteredTable(H, E.rows, ['Identity', 'Lifecycle state', 'Verdict', 'Why', 'Recorded by ISC'], function (r) {
64
64
  var ev = r.evidence.length ? el('details', {}, el('summary', { text: r.evidence.length + ' record' + (r.evidence.length === 1 ? '' : 's') }),
65
65
  el('ul', { className: 'evlist' }, r.evidence.map(function (e) { return el('li', {}, el('span', { className: 'muted small', text: e.when ? e.when.slice(0, 16).replace('T', ' ') + ' ' : '' }), e.what, e.status ? ' ' : null, e.status ? pill(e.status.toLowerCase(), /fail|error/i.test(e.status) ? 'lose' : /pass|complete|commit/i.test(e.status) ? 'gain' : 'keep-other') : null, e.detail ? el('div', { className: 'small', text: e.detail }) : null); })))
66
66
  : el('span', { className: 'muted', text: 'nothing' });
@@ -68,7 +68,7 @@
68
68
  el('span', {}, r.lifecycle || '—', r.criteria ? el('div', { className: 'small' + (r.criteria === r.lifecycle ? ' muted' : ''), text: 'criteria: ' + r.criteria }) : r.criteriaNote ? el('div', { className: 'muted small', text: r.criteriaNote }) : null),
69
69
  el('span', {}, pill(r.verdict, tone(r.verdict)), el('div', { className: 'muted small', text: r.reason })), r.why, ev];
70
70
  }, 'Joiner check')));
71
- w.appendChild(el('p', { className: 'muted small', text: 'Checked: people missing what their lifecycle state grants, people flagged by the birthright pattern (a source most of their identity profile has), past start dates, and everyone who joined in the period chosen. Birthright access given by roles with membership criteria is covered by the pattern, not the lifecycle state.' }));
71
+ w.appendChild(el('p', { className: 'muted small', text: 'Checked: identities missing what their lifecycle state grants, identities flagged by the birthright pattern (a source most of their identity profile has), past start dates, and everyone who joined in the period chosen. Birthright access given by roles with membership criteria is covered by the pattern, not the lifecycle state.' }));
72
72
  }
73
73
 
74
74
  // Warnings > Missed leavers
@@ -83,26 +83,26 @@
83
83
  sel.value = H.kind;
84
84
  sel.addEventListener('change', function () { H.kind = sel.value; renderWarnings(); });
85
85
  var rows = H.kind === 'all' ? d.rows : d.rows.filter(function (r) { return r.kind === H.kind; });
86
- w.appendChild(section('Missed leavers', rows.length, filteredTable(H, rows, ['Person', 'Lifecycle state', 'Gap', 'Detail', 'Source'], function (r) {
86
+ w.appendChild(section('Missed leavers', rows.length, filteredTable(H, rows, ['Identity', 'Lifecycle state', 'Gap', 'Detail', 'Source'], function (r) {
87
87
  return [el('span', {}, r.person, r.email ? el('div', { className: 'muted small', text: r.email }) : null), r.lifecycle, pill(r.kind, /HR/.test(r.kind) ? 'lose' : 'off'), r.detail, r.source];
88
88
  }, 'Missed leavers', sel)));
89
- w.appendChild(el('p', { className: 'muted small', text: '"HR says gone" means the account on the person’s own authoritative source is disabled while ISC still treats them as active: usually the lifecycle state does not follow the HR status. People active after their end date are on the End dates tab.' }));
89
+ w.appendChild(el('p', { className: 'muted small', text: '"HR says gone" means the account on the identity’s own authoritative source is disabled while ISC still treats them as active: usually the lifecycle state does not follow the HR status. Identities active after their end date are on the End dates tab.' }));
90
90
  }
91
91
 
92
92
  // Warnings > Mover leftovers
93
93
  function renderMovers(w) {
94
94
  var H = lcState().movers;
95
- var extras = el('div', { className: 'bar' }, attrInput(H, 'groupBy', 'Compare people by attribute', 'department'),
95
+ var extras = el('div', { className: 'bar' }, attrInput(H, 'groupBy', 'Compare identities by attribute', 'department'),
96
96
  el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Unusual when held by under' }), numSelect(H, 'maxShare', [[2, '2% of the group'], [5, '5% of the group'], [10, '10% of the group']], 'Unusual share')));
97
- if (!lcRunBar(w, H, 'movers', 'Find unusual access', 'Access that almost no one else in the person’s group has: often left over from a previous job (movers) or given as a one-off.', extras, function () { return { groupBy: H.groupBy || 'department', maxShare: H.maxShare }; }, renderWarnings)) return;
97
+ if (!lcRunBar(w, H, 'movers', 'Find unusual access', 'Access that almost no one else in the identity’s group has: often left over from a previous job (movers) or given as a one-off.', extras, function () { return { groupBy: H.groupBy || 'department', maxShare: H.maxShare }; }, renderWarnings)) return;
98
98
  var d = H.data;
99
99
  var people = {}; d.rows.forEach(function (r) { people[r.person] = 1; });
100
- w.appendChild(el('div', { className: 'bigstats' }, stat(d.rows.length, 'unusual access items', 'lose'), stat(Object.keys(people).length, 'people'), stat(d.rows.filter(function (r) { return r.privileged; }).length, 'of them privileged', 'lose'), stat(d.groups, 'groups compared')));
100
+ w.appendChild(el('div', { className: 'bigstats' }, stat(d.rows.length, 'unusual access items', 'lose'), stat(Object.keys(people).length, 'identities'), stat(d.rows.filter(function (r) { return r.privileged; }).length, 'of them privileged', 'lose'), stat(d.groups, 'groups compared')));
101
101
  if (!d.rows.length) { w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'No unusual access found' }))); return; }
102
- w.appendChild(section('Unusual access', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Person', 'Group (' + d.groupBy + ')', 'Access', 'Source', 'Holders in group'], function (r) {
102
+ w.appendChild(section('Unusual access', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Identity', 'Group (' + d.groupBy + ')', 'Access', 'Source', 'Holders in group'], function (r) {
103
103
  return [el('span', {}, r.person, r.email ? el('div', { className: 'muted small', text: r.email }) : null), r.group, el('span', {}, r.access + ' ', r.privileged ? pill('privileged', 'lose') : null, el('div', { className: 'muted small', text: r.type })), r.source, r.holders + ' of ' + fmtNum(r.groupSize)];
104
104
  }, 'Unusual access')));
105
- w.appendChild(el('p', { className: 'muted small', text: 'Groups need at least 10 active people. Access held by at most 3 people of the group, and by fewer than the share you chose, counts as unusual. ISC user levels are left out (see Warnings > ISC admins).' }));
105
+ w.appendChild(el('p', { className: 'muted small', text: 'Groups need at least 10 active identities. Access held by at most 3 identities of the group, and by fewer than the share you chose, counts as unusual. ISC user levels are left out (see Warnings > ISC admins).' }));
106
106
  }
107
107
 
108
108
  // Audit > Admin accounts
@@ -114,12 +114,12 @@
114
114
  if (!lcRunBar(w, H, 'accounts', 'Find accounts', 'Admin, service and test accounts that are linked to a person: often shared or privileged accounts hiding under a normal identity.', extras, function () { return { words: H.words.split(/[\s,;]+/).filter(Boolean) }; }, renderAudit)) return;
115
115
  var d = H.data;
116
116
  var leftEnabled = d.rows.filter(function (r) { return r.left && !r.disabled; }).length;
117
- w.appendChild(el('div', { className: 'bigstats' }, stat(d.rows.length, 'accounts found'), stat(leftEnabled, 'enabled, person has left', 'lose'), stat(d.rows.filter(function (r) { return r.privileged; }).length, 'privileged')));
118
- if (!d.rows.length) { w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'No such accounts linked to people' }))); return; }
117
+ w.appendChild(el('div', { className: 'bigstats' }, stat(d.rows.length, 'accounts found'), stat(leftEnabled, 'enabled, identity has left', 'lose'), stat(d.rows.filter(function (r) { return r.privileged; }).length, 'privileged')));
118
+ if (!d.rows.length) { w.appendChild(el('div', { className: 'banner ok' }, el('b', { text: 'No such accounts linked to identities' }))); return; }
119
119
  w.appendChild(section('Accounts', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Account', 'Source', 'Linked to', 'Matched', 'State'], function (r) {
120
120
  return [el('span', {}, r.account + ' ', r.privileged ? pill('privileged', 'lose') : null), r.source, el('span', {}, r.person, ' ', r.left ? pill('has left', 'lose') : null), r.word, r.disabled ? 'disabled' : 'enabled'];
121
- }, 'Admin and service accounts linked to people')));
122
- w.appendChild(el('p', { className: 'muted small', text: 'A word matches when it is a separate part of the name: adm.alice, svc_backup and alice-test match; "sample" does not match "sa". Decide per account whether it should belong to the person, to a service owner, or be removed.' }));
121
+ }, 'Admin and service accounts linked to identities')));
122
+ w.appendChild(el('p', { className: 'muted small', text: 'A word matches when it is a separate part of the name: adm.alice, svc_backup and alice-test match; "sample" does not match "sa". Decide per account whether it should belong to the identity, to a service owner, or be removed.' }));
123
123
  }
124
124
 
125
125
  // Audit > Exceptions
package/ui/js/30-labs.js CHANGED
@@ -138,27 +138,27 @@
138
138
  }
139
139
  function renderLabPeople(w, L, rr) {
140
140
  var H = L.people;
141
- var count = numSelect(L, 'count', [[50, '50 people'], [200, '200 people'], [500, '500 people'], [2000, '2,000 people']], 'How many people');
142
- var q = attrInput(L, 'query', 'Which people (search query, optional)', 'attributes.department:Sales');
141
+ var count = numSelect(L, 'count', [[50, '50 identities'], [200, '200 identities'], [500, '500 identities'], [2000, '2,000 identities']], 'How many identities');
142
+ var q = attrInput(L, 'query', 'Which identities (search query, optional)', 'attributes.department:Sales');
143
143
  var at = attrInput(L, 'attribute', 'Compare with identity attribute (optional)', 'email');
144
144
  var go = el('button', { className: 'btn primary', disabled: !!H.busy, onclick: function () {
145
145
  try { runJobInto(H, '/api/lab/transform/people', { transform: labParse(L.json, 'The transform'), transforms: labParse(L.drafts, 'Other transforms'), attribute: L.attribute || undefined, query: L.query || undefined, count: L.count }, rr); } catch (e) { toast(e.message); }
146
- } }, icon('people'), 'Run on real people');
147
- var body = el('div', {}, el('p', { className: 'muted', text: 'Reads real people and their accounts from ISC and works the value out for each, on this computer. With an attribute to compare, it shows where the offline result differs from what ISC holds now: use it before changing a mapping, or to check this engine against your tenant.' }),
146
+ } }, icon('people'), 'Run on real identities');
147
+ var body = el('div', {}, el('p', { className: 'muted', text: 'Reads real identities and their accounts from ISC and works the value out for each, on this computer. With an attribute to compare, it shows where the offline result differs from what ISC holds now: use it before changing a mapping, or to check this engine against your tenant.' }),
148
148
  el('div', { className: 'bar', style: 'margin-bottom:12px;align-items:flex-end' }, q, at, el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'How many' }), count), go));
149
149
  if (H.busy) body.appendChild(busyBox(H.busy));
150
150
  if (H.error) body.appendChild(el('div', { className: 'error', text: H.error }));
151
151
  if (H.data) {
152
152
  var d = H.data, S = d.summary;
153
153
  (d.notes || []).forEach(function (n) { body.appendChild(el('div', { className: 'note', text: n })); });
154
- body.appendChild(el('div', { className: 'bigstats' }, d.attribute ? stat(S.same, 'same as ISC') : null, d.attribute ? stat(S.different, 'different from ISC', 'lose') : null, stat(S.empty, 'no value'), stat(S.errors, 'errors', 'lose'), stat(S.iscOnly + S.random, 'only ISC can say'), stat(d.people, 'people')));
154
+ body.appendChild(el('div', { className: 'bigstats' }, d.attribute ? stat(S.same, 'same as ISC') : null, d.attribute ? stat(S.different, 'different from ISC', 'lose') : null, stat(S.empty, 'no value'), stat(S.errors, 'errors', 'lose'), stat(S.iscOnly + S.random, 'only ISC can say'), stat(d.people, 'identities')));
155
155
  if (d.distinct.length) body.appendChild(el('p', { className: 'muted small', text: 'Most common results: ' + d.distinct.slice(0, 8).map(function (x) { return (x.value || '(empty)') + ' × ' + x.people; }).join(', ') }));
156
156
  var show = d.attribute ? d.rows.slice().sort(function (a, b) { return (a.same === false ? 0 : 1) - (b.same === false ? 0 : 1); }) : d.rows;
157
- body.appendChild(filteredTable(H, show, ['Person', d.attribute ? 'In ISC now' : 'Current', 'Offline result', 'Result'], function (r) {
157
+ body.appendChild(filteredTable(H, show, ['Identity', d.attribute ? 'In ISC now' : 'Current', 'Offline result', 'Result'], function (r) {
158
158
  return [r.person, r.current === undefined ? null : labValue(r.current), labValue(r.result), r.status !== 'ok' ? labStatus(r.status) : d.attribute ? pill(r.same ? 'same' : 'different', r.same ? 'gain' : 'lose') : null];
159
- }, 'Transform results per person'));
159
+ }, 'Transform results per identity'));
160
160
  }
161
- w.appendChild(section('Try it on real people', null, body));
161
+ w.appendChild(section('Try it on real identities', null, body));
162
162
  }
163
163
 
164
164
  // Tenant > Workflow lab
package/ui/js/31-build.js CHANGED
@@ -36,7 +36,7 @@
36
36
  function renderImpactMap(w) {
37
37
  var B = state.bt, H = B.impact;
38
38
  w.appendChild(el('div', { className: 'bar', style: 'margin-bottom:14px' },
39
- el('span', { className: 'muted', style: 'flex:1;min-width:260px', text: 'Before you change a transform: every identity profile, other transform and provisioning policy that uses it, also through other transforms, and how many people that covers. Also lists transforms nothing uses.' }),
39
+ el('span', { className: 'muted', style: 'flex:1;min-width:260px', text: 'Before you change a transform: every identity profile, other transform and provisioning policy that uses it, also through other transforms, and how many identities that covers. Also lists transforms nothing uses.' }),
40
40
  el('button', { className: 'btn primary', disabled: !!H.busy, onclick: function () { runJobInto(H, '/api/build/impact/run', {}, rerenderHost); } }, icon('search'), H.data ? 'Read again' : 'Find where transforms are used')));
41
41
  if (H.busy) { w.appendChild(busyBox(H.busy)); return; }
42
42
  if (H.error) { w.appendChild(el('div', { className: 'error', text: H.error })); return; }
@@ -53,13 +53,13 @@
53
53
  if (t) {
54
54
  var people = t.people === null ? 'an unknown number of' : fmtNum(t.people);
55
55
  w.appendChild(el('div', { className: 'banner ' + (t.uses.length ? 'bad' : 'ok') }, el('b', { text: t.uses.length ? 'Changing "' + t.name + '" affects ' + t.uses.length + ' place' + (t.uses.length === 1 ? '' : 's') : '"' + t.name + '" is not used anywhere IdentityScope can see' }),
56
- t.uses.length ? el('span', { text: t.people ? ' · identity attributes of ' + people + ' people' : '' }) : null));
56
+ t.uses.length ? el('span', { text: t.people ? ' · identity attributes of ' + people + ' identities' : '' }) : null));
57
57
  if (t.uses.length) w.appendChild(section('Where "' + t.name + '" is used', t.uses.length, simpleTable(['Used by', 'Where', 'Attribute or field', 'How'], t.uses.map(function (u) {
58
58
  return [u.kind, u.where, u.detail || null, u.via.length ? 'through ' + u.via.join(' → ') : 'directly'];
59
59
  }), 'Uses of the transform')));
60
60
  }
61
61
  if (d.unused.length) w.appendChild(section('Used by nothing', d.unused.length, el('p', { className: 'muted', text: d.unused.join(', ') + '. Check rules before deleting: a rule can use a transform in its own code.' })));
62
- w.appendChild(section('All transforms', d.transforms.length, filteredTable(H, d.transforms, ['Transform', 'Type', 'Used directly', 'All uses', 'People'], function (x) {
62
+ w.appendChild(section('All transforms', d.transforms.length, filteredTable(H, d.transforms, ['Transform', 'Type', 'Used directly', 'All uses', 'Identities'], function (x) {
63
63
  return [el('button', { className: 'linkbtn', text: x.name, onclick: function () { B.pick = x.name; rerenderHost(); } }), x.type, x.direct, x.uses.length ? x.uses.length : pill('not used', 'lose'), x.people === null ? null : x.people];
64
64
  }, 'Transforms and their uses')));
65
65
  }
@@ -71,7 +71,7 @@
71
71
  P.loading = true;
72
72
  api('/api/build/sources').then(function (r) { P.sources = r; }, function (e) { P.sourcesError = errorText(e); }).then(function () { P.loading = false; if (state.bt.tab === 'policy') renderBuild(); });
73
73
  }
74
- w.appendChild(el('div', { className: 'note', text: 'What a source\'s create policy would produce for one person, worked out on this computer with the Transform lab engine. Nothing is created. Use it to check a new or changed policy before the next joiner, or why a create failed.' }));
74
+ w.appendChild(el('div', { className: 'note', text: 'What a source\'s create policy would produce for one identity, worked out on this computer with the Transform lab engine. Nothing is created. Use it to check a new or changed policy before the next joiner, or why a create failed.' }));
75
75
  var src = el('select', { className: 'input', style: 'max-width:320px', 'aria-label': 'Source' }, el('option', { value: '', text: P.sourcesError ? 'Could not read sources' : P.sources ? 'Pick a source...' : 'Reading sources...' }));
76
76
  (P.sources || []).forEach(function (s) { src.appendChild(el('option', { value: s.id, text: s.name })); });
77
77
  src.value = P.sourceId || '';
@@ -80,12 +80,12 @@
80
80
  ['CREATE', 'UPDATE', 'ENABLE', 'DISABLE', 'CHANGE_PASSWORD'].forEach(function (u) { use.appendChild(el('option', { value: u, text: u === 'CREATE' ? 'Create account' : u.charAt(0) + u.slice(1).toLowerCase().replace('_', ' ') })); });
81
81
  use.value = P.usageType;
82
82
  use.addEventListener('change', function () { P.usageType = use.value; });
83
- var who = el('input', { className: 'input', value: P.person, placeholder: 'Username, email or display name', style: 'max-width:280px', 'aria-label': 'Person' });
83
+ var who = el('input', { className: 'input', value: P.person, placeholder: 'Username, email or display name', style: 'max-width:280px', 'aria-label': 'Identity' });
84
84
  who.addEventListener('input', function () { P.person = who.value; });
85
85
  who.addEventListener('keydown', function (e) { if (e.key === 'Enter') go.click(); });
86
86
  var go = el('button', { className: 'btn primary', disabled: !!P.busy, onclick: function () {
87
87
  if (!P.sourceId) { toast('Pick a source first'); return; }
88
- if (!P.person.trim()) { toast('Name the person first'); return; }
88
+ if (!P.person.trim()) { toast('Name the identity first'); return; }
89
89
  runJobInto(P, '/api/build/policy/run', { sourceId: P.sourceId, usageType: P.usageType, person: P.person }, renderBuild);
90
90
  } }, icon('play'), 'Preview');
91
91
  w.appendChild(el('div', { className: 'bar', style: 'margin-bottom:14px' }, src, use, who, go));
@@ -11,7 +11,7 @@
11
11
  var TRANSFORM_EXAMPLES = [
12
12
  {
13
13
  title: 'Account attribute from one source',
14
- help: 'accountAttribute reads a value from the person\'s account on a source. Put the account in the Accounts box: "source" is the source name the transform asks for, "attributes" are the account\'s attributes.',
14
+ help: 'accountAttribute reads a value from the identity\'s account on a source. Put the account in the Accounts box: "source" is the source name the transform asks for, "attributes" are the account\'s attributes.',
15
15
  transform: { type: 'accountAttribute', attributes: { sourceName: 'Workday', attributeName: 'department' } },
16
16
  accounts: [LAB_HR_ACCOUNT],
17
17
  },
@@ -107,7 +107,7 @@
107
107
  },
108
108
  {
109
109
  title: 'Joiner: welcome email with a built variable',
110
- help: 'Define Variable builds a value from the trigger (here the first letter of the first name and the last name). Steps that read ISC, like Get Identity, are pretended with the output in the third box: edit it to try another person.',
110
+ help: 'Define Variable builds a value from the trigger (here the first letter of the first name and the last name). Steps that read ISC, like Get Identity, are pretended with the output in the third box: edit it to try another identity.',
111
111
  trigger: 1,
112
112
  definition: { start: 'Get Identity', steps: {
113
113
  'Get Identity': { actionId: 'sp:get-identity', attributes: { 'id.$': '$.trigger.identity.id' }, nextStep: 'Define Variable', type: 'action', versionNumber: 2 },
@@ -12,7 +12,7 @@
12
12
  tabs.forEach(function (t) { list.push([t[1], pageLabel + ' > ' + t[1], (t[2] || '') + ' ' + pageLabel, go(page, tab(holder, key, t[0]))]); });
13
13
  };
14
14
  add('warnings', 'Warnings', wnState, 'tab', WN_TABS.map(function (t) { return [t[0], t[1], t[3]]; }));
15
- add('lookup', 'Lookup', function () { return state.lk; }, 'tab', [['person', 'Person', 'user identity everything one person has accounts access requests events'], ['source', 'Source', 'application connector errors aggregation'], ['ownership', 'Ownership', 'owners owner left without owner']]);
15
+ add('lookup', 'Lookup', function () { return state.lk; }, 'tab', [['person', 'Identity', 'user identity everything one identity has accounts access requests events'], ['source', 'Source', 'application connector errors aggregation'], ['ownership', 'Ownership', 'owners owner left without owner']]);
16
16
  add('tenant', 'Tenant', function () { return state.tn; }, 'tab', [
17
17
  ['overview', 'Overview', 'counts sources identities size'], ['clusters', 'Virtual Appliances', 'va cluster health'],
18
18
  ['workflows', 'Workflows', 'workflow health runs failures failed causes errors trends'], ['transforms', 'Transforms', 'transform impact where used unused references provisioning policies'],
@@ -27,7 +27,7 @@
27
27
  ['certs', 'Certifications', 'campaigns reviewers progress rubber stamp'], ['outmodel', 'Outside roles', 'entitlements not assigned via roles direct access standalone birthright outside the model'], ['composition', 'What is in every role', 'role composition entitlements by role access profiles breakdown export'], ['reassigned', 'Reassigned reviews', 'certification reassignment forwarded delegated reviewer'], ['sod', 'Separation of duties', 'sod toxic conflicts rules'],
28
28
  ['coverage', 'Review coverage', 'certified access never reviewed'], ['outliers', 'Access outliers', 'peer unusual compared with peers'],
29
29
  ['speed', 'Provisioning speed', 'slow removals how long'], ['adminaccts', 'Admin accounts', 'privileged admin service test accounts linked'],
30
- ['exceptions', 'Exceptions', 'accepted risk exception register'], ['trail', 'Request trail', 'access request approvals approver comment decision audit history who approved'], ['chain', 'Approver chain', 'approval schemes who approves governance group revoke approval'], ['leavertimes', 'Leaver removal times', 'termination leaver sla disabled how long per person'], ['attrhist', 'Attribute changes', 'manager change department title history who changed'], ['owners', 'Entitlement owners', 'owner review holders who has my entitlement'], ['changes', 'Change history', 'snapshot drift baseline approved release what changed'],
30
+ ['exceptions', 'Exceptions', 'accepted risk exception register'], ['trail', 'Request trail', 'access request approvals approver comment decision audit history who approved'], ['chain', 'Approver chain', 'approval schemes who approves governance group revoke approval'], ['leavertimes', 'Leaver removal times', 'termination leaver sla disabled how long per identity'], ['attrhist', 'Attribute changes', 'manager change department title history who changed'], ['owners', 'Entitlement owners', 'owner review holders who has my entitlement'], ['changes', 'Change history', 'snapshot drift baseline approved release what changed'],
31
31
  ['evidence', 'Evidence pack', 'auditor zip excel evidence']]);
32
32
  add('roles', 'Role tools', function () { return state; }, 'roleTab', [['compare', 'Compare roles', 'role differences'], ['impact', 'Preview a role change', 'criteria membership who gains loses simulate'], ['mining', 'Find candidate roles', 'role mining common access']]);
33
33
  add('monthly', 'Insights', function () { return state.inz; }, 'tab', [['monthly', 'Monthly report', 'management summary trend'], ['reclaim', 'License reclaim', 'cost dormant licenses save money'], ['requests', 'Access requests', 'approvers requested reject rate']]);
@@ -26,7 +26,7 @@
26
26
  var H = gvState().trail;
27
27
  var extras = el('div', { className: 'bar' },
28
28
  el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Submitted in the last' }), numSelect(H, 'days', [[7, '7 days'], [30, '30 days'], [90, '90 days'], [180, '180 days'], [365, '365 days']], 'Period')),
29
- gvText(H, 'item', 'Access item contains', 'e.g. VPN'), gvText(H, 'person', 'Person contains', 'requester or recipient'));
29
+ gvText(H, 'item', 'Access item contains', 'e.g. VPN'), gvText(H, 'person', 'Identity contains', 'requester or recipient'));
30
30
  if (!gvRunBar(w, H, 'request-trail', 'Build the trail', 'Every access request with each approval step: who decided, the decision, their comment and when, and how provisioning ended. One row per step in the download, ready for auditors.', extras,
31
31
  function () { return { days: H.days, item: H.item || undefined, person: H.person || undefined }; }, renderAudit)) return;
32
32
  var d = H.data, T = d.totals;
@@ -89,8 +89,8 @@
89
89
  var d = H.data, T = d.totals;
90
90
  w.appendChild(el('div', { className: 'bigstats' }, stat(T.accounts, 'accounts read'), stat(T.withDate, 'with an expiry date'), stat(T.never, 'set to never expire'), stat(T.missing, 'without a value'), stat(T.expiring, 'expire in the next ' + d.days + ' days', 'lose'), stat(T.expiredEnabled, 'expired but still enabled', 'lose'), stat(T.unreadable, 'values not readable as a date')));
91
91
  if (!d.rows.length) { w.appendChild(el('p', { className: 'muted', text: 'No account expires in this period.' })); return; }
92
- w.appendChild(section('Accounts', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Account', 'Person', 'Source', 'Expires', 'When', 'Account'], function (r) {
93
- return [r.account, r.person || el('span', { className: 'muted', text: 'not linked to a person' }), r.source, r.expires, pill(daysText(r.daysLeft), r.daysLeft <= 7 ? 'lose' : 'off'), r.disabled ? 'disabled' : 'enabled'];
92
+ w.appendChild(section('Accounts', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Account', 'Identity', 'Source', 'Expires', 'When', 'Account'], function (r) {
93
+ return [r.account, r.person || el('span', { className: 'muted', text: 'not linked to an identity' }), r.source, r.expires, pill(daysText(r.daysLeft), r.daysLeft <= 7 ? 'lose' : 'off'), r.disabled ? 'disabled' : 'enabled'];
94
94
  }, 'Accounts expiring')));
95
95
  }
96
96
 
@@ -102,7 +102,7 @@
102
102
  var d = H.data, T = d.totals;
103
103
  w.appendChild(el('div', { className: 'bigstats' }, stat(d.campaigns, 'campaigns checked'), stat(T.revokes, 'revoke decisions'), stat(T.removed, 'removed'), stat(T.stillHeld, 'signed off but still held', 'lose'), stat(T.notSignedOff, 'waiting for sign-off')));
104
104
  if (!d.rows.length) { w.appendChild(el('p', { className: 'muted', text: 'Every revoked item has been removed.' })); return; }
105
- w.appendChild(section('Revoked but still there', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Person', 'Access', 'Type', 'Campaign', 'Reviewer', 'Signed off', 'Status'], function (r) {
105
+ w.appendChild(section('Revoked but still there', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Identity', 'Access', 'Type', 'Campaign', 'Reviewer', 'Signed off', 'Status'], function (r) {
106
106
  return [r.person, r.access, r.accessType, r.campaign, r.reviewer, r.signedOff ? r.signedOff.slice(0, 10) + (r.daysSinceSignOff !== null ? ' (' + r.daysSinceSignOff + ' days ago)' : '') : '—',
107
107
  el('span', {}, pill(r.status, r.status === 'still held' ? 'lose' : 'off'), r.alsoFromRole ? el('div', { className: 'small muted', text: 'May also come from a role or access profile' }) : null)];
108
108
  }, 'Revoked but still held')));
package/ui/js/35-watch.js CHANGED
@@ -66,7 +66,7 @@
66
66
  var d = H.data;
67
67
  w.appendChild(el('div', { className: 'bigstats' }, stat(d.read, 'activities read'), stat(d.rows.length + (d.more || 0), 'changes sent again and again', 'lose')));
68
68
  if (!d.rows.length) { w.appendChild(el('p', { className: 'muted', text: 'No change was sent that often.' })); return; }
69
- w.appendChild(section('Loops', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Person', 'Source', 'Operation', 'Change', 'Times', 'First', 'Last', 'Last result'], function (r) {
69
+ w.appendChild(section('Loops', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Identity', 'Source', 'Operation', 'Change', 'Times', 'First', 'Last', 'Last result'], function (r) {
70
70
  return [r.person, r.source, r.op, el('span', { className: 'small', text: r.change }), pill(String(r.times), 'lose'), when16(r.first), when16(r.last), r.lastStatus];
71
71
  }, 'Provisioning loops')));
72
72
  }
@@ -80,7 +80,7 @@
80
80
  var d = H.data, T = d.totals;
81
81
  w.appendChild(el('div', { className: 'bigstats' }, stat(T.accounts, 'accounts read'), stat(T.disabledOutside, 'disabled outside ISC', 'lose'), stat(T.enabledOutside, 'enabled again outside ISC', 'lose')));
82
82
  if (!d.rows.length) { w.appendChild(el('p', { className: 'muted', text: 'Every account state matches what ISC sent.' })); return; }
83
- w.appendChild(section('Accounts', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Person', 'Person state', 'Account', 'Source', 'Finding', 'Last disable or enable ISC sent'], function (r) { return [r.person, r.personState, r.account, r.source, r.finding, r.lastIsc]; }, 'Changes made outside ISC')));
83
+ w.appendChild(section('Accounts', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Identity', 'Identity state', 'Account', 'Source', 'Finding', 'Last disable or enable ISC sent'], function (r) { return [r.person, r.personState, r.account, r.source, r.finding, r.lastIsc]; }, 'Changes made outside ISC')));
84
84
  }
85
85
 
86
86
  // Warnings > Attribute sync drift
@@ -91,9 +91,9 @@
91
91
  var d = H.data, T = d.totals;
92
92
  w.appendChild(el('div', { className: 'bigstats' }, stat(d.mappings.length, 'attributes synced'), stat(T.accounts, 'accounts'), stat(T.compared, 'values compared'), stat(T.drifted, 'values that differ', 'lose'), stat(T.failedSyncs, 'failed syncs (14 days)', 'lose')));
93
93
  if (d.mappings.length) w.appendChild(el('p', { className: 'muted small', text: 'Synced: ' + d.mappings.map(function (m) { return m.identityAttribute + ' → ' + m.accountAttribute; }).join(', ') }));
94
- if (d.rows.length) w.appendChild(section('Values that differ', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Person', 'Account', 'Attribute', 'Value in ISC', 'Value on the account'], function (r) { return [r.person, r.account, r.identityAttribute + ' → ' + r.accountAttribute, r.inIsc, r.onAccount]; }, 'Attribute sync drift')));
94
+ if (d.rows.length) w.appendChild(section('Values that differ', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Identity', 'Account', 'Attribute', 'Value in ISC', 'Value on the account'], function (r) { return [r.person, r.account, r.identityAttribute + ' → ' + r.accountAttribute, r.inIsc, r.onAccount]; }, 'Attribute sync drift')));
95
95
  else if (d.mappings.length) w.appendChild(el('p', { className: 'muted', text: 'Every synced value matches.' }));
96
- if (d.failedSyncs.length) w.appendChild(section('Failed attribute syncs', d.failedSyncs.length, simpleTable(['When', 'Person', 'Detail'], d.failedSyncs.slice(0, 500).map(function (f) { return [when16(f.when), f.person, f.detail]; }), 'Failed attribute syncs')));
96
+ if (d.failedSyncs.length) w.appendChild(section('Failed attribute syncs', d.failedSyncs.length, simpleTable(['When', 'Identity', 'Detail'], d.failedSyncs.slice(0, 500).map(function (f) { return [when16(f.when), f.person, f.detail]; }), 'Failed attribute syncs')));
97
97
  }
98
98
 
99
99
  // Warnings > Group approvals
@@ -111,14 +111,14 @@
111
111
  // Warnings > Manager left
112
112
  function wnManagerLeft(w, _H, desc) {
113
113
  var H = owState().mgrleft;
114
- var q = el('input', { className: 'input', value: H.query || '', placeholder: 'e.g. attributes.employeeType:contractor', style: 'max-width:300px', 'aria-label': 'Only people matching (search query, optional)' });
114
+ var q = el('input', { className: 'input', value: H.query || '', placeholder: 'e.g. attributes.employeeType:contractor', style: 'max-width:300px', 'aria-label': 'Only identities matching (search query, optional)' });
115
115
  q.addEventListener('input', function () { H.query = q.value; });
116
- var extras = el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Only people matching (optional)' }), q);
117
- if (!owRunBar(w, H, '/api/watch/manager-left/run', 'Find people', desc, extras, function () { return { query: H.query || undefined }; }, renderWarnings)) return;
116
+ var extras = el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Only identities matching (optional)' }), q);
117
+ if (!owRunBar(w, H, '/api/watch/manager-left/run', 'Find identities', desc, extras, function () { return { query: H.query || undefined }; }, renderWarnings)) return;
118
118
  var d = H.data;
119
- w.appendChild(el('div', { className: 'bigstats' }, stat(d.totals.people, 'active people'), stat(d.totals.managerLeft, 'whose manager left', 'lose')));
119
+ w.appendChild(el('div', { className: 'bigstats' }, stat(d.totals.people, 'active identities'), stat(d.totals.managerLeft, 'whose manager left', 'lose')));
120
120
  if (!d.rows.length) return;
121
- w.appendChild(section('People', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Person', 'Lifecycle state', 'Identity profile', 'Manager', 'Manager state'], function (r) { return [r.person, r.lifecycle, r.profile, r.manager, pill(r.managerState, 'lose')]; }, 'People whose manager left')));
121
+ w.appendChild(section('Identities', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Identity', 'Lifecycle state', 'Identity profile', 'Manager', 'Manager state'], function (r) { return [r.person, r.lifecycle, r.profile, r.manager, pill(r.managerState, 'lose')]; }, 'Identities whose manager left')));
122
122
  }
123
123
 
124
124
  // Audit > Leaver removal times
@@ -131,7 +131,7 @@
131
131
  var d = H.data, T = d.totals;
132
132
  w.appendChild(el('div', { className: 'bigstats' }, stat(T.leavers, 'leavers'), stat(T.late, 'over ' + d.limitHours + ' h or not done', 'lose'), stat(T.stillEnabled, 'with an account still enabled', 'lose'), el('div', { className: 'bigstat' }, el('b', { text: hrs(T.medianHours) }), el('span', { text: 'median removal time' }))));
133
133
  if (!d.rows.length) return;
134
- w.appendChild(section('Leavers', d.rows.length, filteredTable(H, d.rows, ['Person', 'Lifecycle state', 'Started', 'Accounts', 'Slowest removal', 'Still enabled on', 'Result'], function (r) {
134
+ w.appendChild(section('Leavers', d.rows.length, filteredTable(H, d.rows, ['Identity', 'Lifecycle state', 'Started', 'Accounts', 'Slowest removal', 'Still enabled on', 'Result'], function (r) {
135
135
  return [r.person, r.lifecycle, el('span', {}, when16(r.started) || '—', el('div', { className: 'small muted', text: r.startedBy })), r.accounts, hrs(r.slowestHours), r.stillEnabled.join(', '), pill(r.late ? 'late' : 'on time', r.late ? 'lose' : 'win')];
136
136
  }, 'Leaver removal times')));
137
137
  }
@@ -145,16 +145,16 @@
145
145
  if (!owRunBar(w, H, '/api/watch/attr-history/run', 'Look now', 'Who changed manager, department, title or lifecycle state, from what to what. IdentityScope remembers the values at each look and lists the changes between looks.', extras,
146
146
  function () { return { attributes: H.attributes.split(',').map(function (x) { return x.trim(); }).filter(Boolean) }; }, renderAudit)) return;
147
147
  var d = H.data;
148
- w.appendChild(el('div', { className: 'bigstats' }, stat(d.people, 'people looked at'), stat(d.newChanges, 'changes since the last look'), stat(d.changes.length + (d.more || 0), 'changes on record')));
148
+ w.appendChild(el('div', { className: 'bigstats' }, stat(d.people, 'identities looked at'), stat(d.newChanges, 'changes since the last look'), stat(d.changes.length + (d.more || 0), 'changes on record')));
149
149
  if (d.previousLook) w.appendChild(el('p', { className: 'muted small', text: 'Previous look: ' + when16(d.previousLook) }));
150
150
  if (!d.changes.length) return;
151
- w.appendChild(section('Changes', d.changes.length + (d.more || 0), filteredTable(H, d.changes, ['Seen at', 'Person', 'Attribute', 'From', 'To'], function (r) { return [when16(r.at), r.person, r.attribute, r.from || '(empty)', r.to || '(empty)']; }, 'Attribute changes')));
151
+ w.appendChild(section('Changes', d.changes.length + (d.more || 0), filteredTable(H, d.changes, ['Seen at', 'Identity', 'Attribute', 'From', 'To'], function (r) { return [when16(r.at), r.person, r.attribute, r.from || '(empty)', r.to || '(empty)']; }, 'Attribute changes')));
152
152
  }
153
153
 
154
154
  // Audit > Entitlement owners
155
155
  function renderOwners(w) {
156
156
  var H = owState().owners;
157
- if (!owRunBar(w, H, '/api/watch/owners/run', 'Read owners', 'Every entitlement owner with what they own and how many people hold each item, so each owner can review their own access. Owners who left are listed first.', null, null, renderAudit)) return;
157
+ if (!owRunBar(w, H, '/api/watch/owners/run', 'Read owners', 'Every entitlement owner with what they own and how many identities hold each item, so each owner can review their own access. Owners who left are listed first.', null, null, renderAudit)) return;
158
158
  var d = H.data;
159
159
  w.appendChild(el('div', { className: 'bigstats' }, stat(d.owners.length, 'owners'), stat(d.owners.filter(function (o) { return o.ownerState !== 'active'; }).length, 'owners who left or are not found', 'lose'), stat(d.rows.length + (d.more || 0), 'owned entitlements')));
160
160
  w.appendChild(section('Owners', d.owners.length, simpleTable(['Owner', 'State', 'Entitlements', 'Holders'], d.owners.map(function (o) {
package/ui/js/36-model.js CHANGED
@@ -54,20 +54,20 @@
54
54
  // Audit > Outside roles
55
55
  function renderOutsideModel(w) {
56
56
  var H = mdState().outmodel;
57
- var q = el('input', { className: 'input', value: H.query || '', placeholder: 'e.g. attributes.department:Finance', style: 'max-width:300px', 'aria-label': 'Only people matching (search query, optional)' });
57
+ var q = el('input', { className: 'input', value: H.query || '', placeholder: 'e.g. attributes.department:Finance', style: 'max-width:300px', 'aria-label': 'Only identities matching (search query, optional)' });
58
58
  q.addEventListener('input', function () { H.query = q.value; });
59
- var extras = el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Only people matching (optional)' }), q);
60
- if (!mdRun(w, H, 'outside-model', 'Find direct access', 'Entitlements people hold on their own, not through any role or access profile: the access nobody designed. Shows which entitlements are mostly given directly and who holds them.', extras, function () { return { query: H.query || undefined }; }, renderAudit)) return;
59
+ var extras = el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Only identities matching (optional)' }), q);
60
+ if (!mdRun(w, H, 'outside-model', 'Find direct access', 'Entitlements identities hold on their own, not through any role or access profile: the access nobody designed. Shows which entitlements are mostly given directly and who holds them.', extras, function () { return { query: H.query || undefined }; }, renderAudit)) return;
61
61
  var d = H.data, T = d.totals;
62
- w.appendChild(el('div', { className: 'bigstats' }, stat(T.people, 'active people'), stat(T.assignments, 'entitlements held'), stat(T.direct, 'held directly', 'lose'), stat(pct(T.direct, T.assignments), '% held directly'), stat(T.peopleWithDirect, 'people with direct access'), stat(T.entitlementsOnlyDirect, 'entitlements never given by a role')));
63
- var sw = el('div', { className: 'seg', style: 'margin:0 0 10px' }, [['ent', 'By entitlement'], ['people', 'By person']].map(function (v) {
62
+ w.appendChild(el('div', { className: 'bigstats' }, stat(T.people, 'active identities'), stat(T.assignments, 'entitlements held'), stat(T.direct, 'held directly', 'lose'), stat(pct(T.direct, T.assignments), '% held directly'), stat(T.peopleWithDirect, 'identities with direct access'), stat(T.entitlementsOnlyDirect, 'entitlements never given by a role')));
63
+ var sw = el('div', { className: 'seg', style: 'margin:0 0 10px' }, [['ent', 'By entitlement'], ['people', 'By identity']].map(function (v) {
64
64
  return el('button', { className: 'segbtn' + (H.view === v[0] ? ' active' : ''), 'aria-pressed': String(H.view === v[0]), onclick: function () { H.view = v[0]; renderAudit(); } }, v[1]);
65
65
  }));
66
66
  w.appendChild(sw);
67
67
  if (H.view === 'ent') w.appendChild(section('Entitlements given directly', d.entitlements.length, filteredTable(H.e || (H.e = { data: d, job: H.job }), d.entitlements, ['Entitlement', 'Source', 'Privileged', 'Holders', 'Directly', 'Through a role or access profile'], function (r) {
68
68
  return [r.entitlement, r.source, r.privileged ? pill('privileged', 'lose') : '', fmtNum(r.holders), el('span', {}, fmtNum(r.direct), el('span', { className: 'muted small', text: ' (' + pct(r.direct, r.holders) + '%)' })), fmtNum(r.viaModel)];
69
69
  }, 'Entitlements given directly')));
70
- else w.appendChild(section('People with direct access', d.people.length + (d.morePeople || 0), filteredTable(H, d.people, ['Person', 'Entitlement', 'Source', 'Privileged'], function (r) { return [r.person, r.entitlement, r.source, r.privileged ? pill('privileged', 'lose') : '']; }, 'Access held directly')));
70
+ else w.appendChild(section('Identities with direct access', d.people.length + (d.morePeople || 0), filteredTable(H, d.people, ['Identity', 'Entitlement', 'Source', 'Privileged'], function (r) { return [r.person, r.entitlement, r.source, r.privileged ? pill('privileged', 'lose') : '']; }, 'Access held directly')));
71
71
  }
72
72
 
73
73
  // Audit > What is in every role
@@ -131,14 +131,14 @@
131
131
  // Warnings > Several accounts
132
132
  function wnMultiAccounts(w, _H, desc) {
133
133
  var H = mdState().multi;
134
- if (!mdRun(w, H, 'multi-accounts', 'Find people with several accounts', desc, null, null, renderWarnings)) return;
134
+ if (!mdRun(w, H, 'multi-accounts', 'Find identities with several accounts', desc, null, null, renderWarnings)) return;
135
135
  var d = H.data, T = d.totals;
136
- w.appendChild(el('div', { className: 'bigstats' }, stat(T.people, 'active people'), stat(T.withDuplicates, 'with several accounts on one source'), stat(T.onAuthoritative, 'on the authoritative source', 'lose')));
136
+ w.appendChild(el('div', { className: 'bigstats' }, stat(T.people, 'active identities'), stat(T.withDuplicates, 'with several accounts on one source'), stat(T.onAuthoritative, 'on the authoritative source', 'lose')));
137
137
  if (!d.rows.length) { w.appendChild(el('p', { className: 'muted', text: 'Nobody has more than one account on the same source.' })); return; }
138
- w.appendChild(section('By source', d.bySource.length, simpleTable(['Source', 'People with several accounts'], d.bySource.map(function (s) { return [s.source, fmtNum(s.people)]; }), 'Several accounts by source')));
139
- w.appendChild(section('People', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Person', 'Lifecycle state', 'Source', 'Accounts', 'Account names'], function (r) {
138
+ w.appendChild(section('By source', d.bySource.length, simpleTable(['Source', 'Identities with several accounts'], d.bySource.map(function (s) { return [s.source, fmtNum(s.people)]; }), 'Several accounts by source')));
139
+ w.appendChild(section('Identities', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Identity', 'Lifecycle state', 'Source', 'Accounts', 'Account names'], function (r) {
140
140
  return [r.person, r.personState, el('span', {}, r.source, r.authoritative ? el('span', {}, ' ', pill('authoritative', 'lose')) : null), r.accounts + ' (' + r.enabled + ' enabled)', el('span', { className: 'small', text: r.names })];
141
- }, 'People with several accounts on one source')));
141
+ }, 'Identities with several accounts on one source')));
142
142
  }
143
143
 
144
144
  // Warnings > Password failures
@@ -147,9 +147,9 @@
147
147
  var extras = el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'In the last' }), numSelect(H, 'days', [[7, '7 days'], [14, '14 days'], [30, '30 days'], [90, '90 days']], 'Period'));
148
148
  if (!mdRun(w, H, 'password-failures', 'Find failed password changes', desc, extras, function () { return { days: H.days }; }, renderWarnings)) return;
149
149
  var d = H.data, T = d.totals;
150
- w.appendChild(el('div', { className: 'bigstats' }, stat(T.events, 'password events'), stat(T.passed, 'passed'), stat(T.failed, 'failed', 'lose'), stat(T.people, 'people affected', 'lose')));
150
+ w.appendChild(el('div', { className: 'bigstats' }, stat(T.events, 'password events'), stat(T.passed, 'passed'), stat(T.failed, 'failed', 'lose'), stat(T.people, 'identities affected', 'lose')));
151
151
  if (d.bySource.length > 1) w.appendChild(section('By source', d.bySource.length, simpleTable(['Source', 'Passed', 'Failed'], d.bySource.map(function (s) { return [s.source, fmtNum(s.passed), s.failed ? pill(fmtNum(s.failed), 'lose') : '0']; }), 'Password events by source')));
152
- if (d.rows.length) w.appendChild(section('Failures', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['When', 'Person', 'Source', 'Event', 'Error'], function (r) { return [when16(r.when), r.person, r.source, r.event, el('span', { className: 'small', text: r.error })]; }, 'Password failures')));
152
+ if (d.rows.length) w.appendChild(section('Failures', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['When', 'Identity', 'Source', 'Event', 'Error'], function (r) { return [when16(r.when), r.person, r.source, r.event, el('span', { className: 'small', text: r.error })]; }, 'Password failures')));
153
153
  }
154
154
 
155
155
  // Warnings > Lifecycle settings
@@ -158,7 +158,7 @@
158
158
  if (!mdRun(w, H, 'lifecycle-settings', 'Read lifecycle states', desc, null, null, renderWarnings)) return;
159
159
  var d = H.data, T = d.totals;
160
160
  w.appendChild(el('div', { className: 'bigstats' }, stat(T.profiles, 'identity profiles'), stat(T.states, 'lifecycle states'), stat(T.leaverStates, 'leaver states'), stat(T.flagged, 'with a finding', 'lose')));
161
- w.appendChild(section('Lifecycle states', d.rows.length, filteredTable(H, d.rows, ['Identity profile', 'State', 'People', 'What it does to accounts', 'Removes all access', 'Findings'], function (r) {
161
+ w.appendChild(section('Lifecycle states', d.rows.length, filteredTable(H, d.rows, ['Identity profile', 'State', 'Identities', 'What it does to accounts', 'Removes all access', 'Findings'], function (r) {
162
162
  return [r.profile, el('span', {}, r.state, ' ', pill(r.kind === 'leaver' ? 'leaver' : 'active', r.kind === 'leaver' ? 'off' : 'blue'), r.enabled ? null : el('span', {}, ' ', pill('switched off', 'lose'))), r.people === null ? '—' : fmtNum(r.people), el('span', { className: 'small', text: r.accounts }), r.removesAccess ? 'Yes' : 'No',
163
163
  r.findings.length ? el('div', {}, r.findings.map(function (f) { return el('div', { className: 'small', style: 'color:var(--danger)', text: f }); })) : ''];
164
164
  }, 'What each lifecycle state does')));
@@ -204,9 +204,9 @@
204
204
  threatNote(w);
205
205
  if (!mdRun(w, H, 'signins', 'Read sign-ins', desc, extras, function () { return { days: H.days, minFailed: H.minFailed }; }, renderWarnings)) return;
206
206
  var d = H.data, T = d.totals;
207
- w.appendChild(el('div', { className: 'bigstats' }, stat(T.events, 'sign-in events'), stat(T.failed, 'failed'), stat(T.people, 'people'), stat(T.flagged, 'people with a signal', 'lose'), stat(T.leaversSignedIn, 'leavers who signed in', 'lose')));
208
- if (d.byAddress.length) w.appendChild(section('One address, many people', d.byAddress.length, simpleTable(['Network address', 'People tried', 'Failed sign-ins'], d.byAddress.map(function (a) { return [a.address, fmtNum(a.people), fmtNum(a.failed)]; }), 'Addresses with failures for many people')));
209
- if (d.rows.length) w.appendChild(section('People', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Person', 'State', 'Failed', 'Successful', 'Worst day', 'Signals'], function (r) {
207
+ w.appendChild(el('div', { className: 'bigstats' }, stat(T.events, 'sign-in events'), stat(T.failed, 'failed'), stat(T.people, 'identities'), stat(T.flagged, 'identities with a signal', 'lose'), stat(T.leaversSignedIn, 'leavers who signed in', 'lose')));
208
+ if (d.byAddress.length) w.appendChild(section('One address, many identities', d.byAddress.length, simpleTable(['Network address', 'Identities tried', 'Failed sign-ins'], d.byAddress.map(function (a) { return [a.address, fmtNum(a.people), fmtNum(a.failed)]; }), 'Addresses with failures for many identities')));
209
+ if (d.rows.length) w.appendChild(section('Identities', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Identity', 'State', 'Failed', 'Successful', 'Worst day', 'Signals'], function (r) {
210
210
  return [el('span', {}, r.person, el('div', { className: 'small muted', text: r.username })), r.state === 'active' ? 'active' : pill(r.state, 'lose'), fmtNum(r.failed), fmtNum(r.passed), r.worstDay + ' (' + r.worstDayFailed + ')', sigList(r.signals)];
211
211
  }, 'Sign-in signals')));
212
212
  else if (T.events) w.appendChild(el('p', { className: 'muted', text: 'No sign-in signal in this period.' }));
@@ -227,9 +227,9 @@
227
227
  threatNote(w);
228
228
  if (!mdRun(w, H, 'admin-activity', 'Read admin activity', desc, extras, function () { return { days: H.days }; }, renderWarnings)) return;
229
229
  var d = H.data, T = d.totals;
230
- w.appendChild(el('div', { className: 'bigstats' }, stat(T.events, 'changes by people'), stat(T.actors, 'who made them'), stat(T.byLeavers, 'are people who left', 'lose'), stat(T.unknownActors, 'are not a person in ISC')));
230
+ w.appendChild(el('div', { className: 'bigstats' }, stat(T.events, 'changes by identities'), stat(T.actors, 'who made them'), stat(T.byLeavers, 'are identities who left', 'lose'), stat(T.unknownActors, 'are not an identity in ISC')));
231
231
  if (d.actors.length) w.appendChild(section('Who made changes', d.actors.length, simpleTable(['Who', 'State', 'Changes', 'To what', 'Last change', 'Signals'], d.actors.slice(0, 300).map(function (a) {
232
- return [a.actor, a.state === 'active' ? 'active' : pill(a.state, a.state === 'not a person in ISC' ? 'off' : 'lose'), fmtNum(a.changes), a.kinds, when16(a.last), a.signals.length ? sigList(a.signals) : ''];
232
+ return [a.actor, a.state === 'active' ? 'active' : pill(a.state, a.state === 'not an identity in ISC' ? 'off' : 'lose'), fmtNum(a.changes), a.kinds, when16(a.last), a.signals.length ? sigList(a.signals) : ''];
233
233
  }), 'Who made changes')));
234
234
  if (d.events.length) w.appendChild(section('Changes', d.events.length + (d.more || 0), filteredTable(H, d.events, ['When', 'Who', 'Event', 'On'], function (r) { return [when16(r.when), r.actor, r.event, r.target]; }, 'Administration changes')));
235
235
  }
@@ -241,7 +241,7 @@
241
241
  threatNote(w);
242
242
  if (!mdRun(w, H, 'access-spikes', 'Find access spikes', desc, extras, function () { return { days: H.days, min: H.min }; }, renderWarnings)) return;
243
243
  var d = H.data, T = d.totals;
244
- w.appendChild(el('div', { className: 'bigstats' }, stat(T.activities, 'provisioning activities read'), stat(T.people, 'people who gained access'), stat(T.flagged, 'with ' + d.min + ' or more in one day', 'lose')));
245
- if (d.rows.length) w.appendChild(section('Access spikes', d.rows.length, filteredTable(H, d.rows, ['Person', 'State', 'Day', 'Added', 'Sources', 'Requested by', 'Examples'], function (r) { return [r.person, r.personState, r.day, pill(String(r.added), 'lose'), r.sources, r.requestedBy, el('span', { className: 'small', text: r.examples })]; }, 'Access spikes per person')));
244
+ w.appendChild(el('div', { className: 'bigstats' }, stat(T.activities, 'provisioning activities read'), stat(T.people, 'identities who gained access'), stat(T.flagged, 'with ' + d.min + ' or more in one day', 'lose')));
245
+ if (d.rows.length) w.appendChild(section('Access spikes', d.rows.length, filteredTable(H, d.rows, ['Identity', 'State', 'Day', 'Added', 'Sources', 'Requested by', 'Examples'], function (r) { return [r.person, r.personState, r.day, pill(String(r.added), 'lose'), r.sources, r.requestedBy, el('span', { className: 'small', text: r.examples })]; }, 'Access spikes per identity')));
246
246
  else w.appendChild(el('p', { className: 'muted', text: 'Nobody was given that much access in one day.' }));
247
247
  }
@@ -137,10 +137,10 @@
137
137
  threatNote(w);
138
138
  if (!mdRun(w, H, 'priv-gained', 'Find new privileged access', desc, extras, function () { return { remember: H.remember !== false }; }, renderWarnings)) return;
139
139
  var d = H.data, T = d.totals;
140
- w.appendChild(el('div', { className: 'bigstats' }, stat(T.holdings, 'privileged entitlements held'), stat(T.people, 'people holding them'), stat(d.baseline ? null : T.fresh, 'gained since the previous look'), stat(d.baseline ? null : T.outside, 'of those with no ISC record', 'lose'), stat(d.baseline ? null : T.lost, 'no longer held')));
141
- if (d.since) w.appendChild(el('p', { className: 'muted small', style: 'margin:-4px 0 12px', text: 'Compared with the look of ' + when16(d.since) + '. Findings of the last 90 days stay listed while the person still holds the access.' }));
140
+ w.appendChild(el('div', { className: 'bigstats' }, stat(T.holdings, 'privileged entitlements held'), stat(T.people, 'identities holding them'), stat(d.baseline ? null : T.fresh, 'gained since the previous look'), stat(d.baseline ? null : T.outside, 'of those with no ISC record', 'lose'), stat(d.baseline ? null : T.lost, 'no longer held')));
141
+ if (d.since) w.appendChild(el('p', { className: 'muted small', style: 'margin:-4px 0 12px', text: 'Compared with the look of ' + when16(d.since) + '. Findings of the last 90 days stay listed while the identity still holds the access.' }));
142
142
  var fresh = {}; (d.freshKeys || []).forEach(function (k) { fresh[k] = true; });
143
- if (d.findings && d.findings.length) w.appendChild(section('Privileged access gained', d.findings.length + (d.more || 0), filteredTable(H, d.findings, ['Found', 'Person', 'Privileged entitlement', 'Source', 'Held', 'How it got there', 'Requested by'], function (r) {
143
+ if (d.findings && d.findings.length) w.appendChild(section('Privileged access gained', d.findings.length + (d.more || 0), filteredTable(H, d.findings, ['Found', 'Identity', 'Privileged entitlement', 'Source', 'Held', 'How it got there', 'Requested by'], function (r) {
144
144
  return [el('span', {}, r.found.slice(0, 10), fresh[r.key] ? el('div', {}, pill('new', 'gain')) : null), el('span', {}, r.person, el('div', { className: 'muted small', text: r.personState + (r.newPerson ? ' · new identity' : '') })), r.entitlement, r.source, r.via, r.how === 'No ISC record' ? pill(r.how, 'lose') : el('span', {}, r.how, r.when ? el('div', { className: 'muted small', text: when16(r.when) }) : null), r.requestedBy || ''];
145
145
  }, 'Privileged access gained')));
146
146
  else if (!d.baseline) w.appendChild(el('p', { className: 'muted', text: 'Nobody gained a privileged entitlement since the previous look.' }));
@@ -180,27 +180,27 @@
180
180
  threatNote(w);
181
181
  if (!mdRun(w, H, 'risk', 'Add up the signals', desc, extras, function () { return { days: H.days }; }, renderWarnings)) return;
182
182
  var d = H.data, T = d.totals;
183
- w.appendChild(el('div', { className: 'bigstats' }, stat(T.people, 'people with a signal'), stat(T.several, 'on more than one screen', 'lose'), stat(T.signals, 'signals in all')));
184
- if (d.rows.length) w.appendChild(section('People, highest first', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Person', 'Score', 'Screens', 'Signals'], function (r) {
183
+ w.appendChild(el('div', { className: 'bigstats' }, stat(T.people, 'identities with a signal'), stat(T.several, 'on more than one screen', 'lose'), stat(T.signals, 'signals in all')));
184
+ if (d.rows.length) w.appendChild(section('Identities, highest first', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Identity', 'Score', 'Screens', 'Signals'], function (r) {
185
185
  return [r.person, r.screens > 1 ? pill(String(r.score), 'lose') : String(r.score), String(r.screens), el('div', {}, r.signals.map(function (s) { return el('div', { className: 'small', text: s }); }))];
186
- }, 'Risk by person')));
187
- else w.appendChild(el('p', { className: 'muted', text: 'No person has a signal in the period.' }));
186
+ }, 'Risk by identity')));
187
+ else w.appendChild(el('p', { className: 'muted', text: 'No identity has a signal in the period.' }));
188
188
  }
189
189
  // Warnings > Joiners, movers, leavers > Coming up
190
190
  function wnUpcoming(w, _H, desc) {
191
191
  var H = tw().upcoming;
192
- var q = el('input', { className: 'input', value: H.query || '', placeholder: 'e.g. attributes.country:US', style: 'max-width:220px', 'aria-label': 'Only people matching (search query, optional)' });
192
+ var q = el('input', { className: 'input', value: H.query || '', placeholder: 'e.g. attributes.country:US', style: 'max-width:220px', 'aria-label': 'Only identities matching (search query, optional)' });
193
193
  q.addEventListener('input', function () { H.query = q.value; });
194
194
  var extras = el('div', { className: 'bar' },
195
195
  el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Next' }), numSelect(H, 'days', [[3, '3 days'], [7, '7 days'], [14, '14 days'], [30, '30 days'], [90, '90 days']], 'Period')),
196
196
  attrInput(H, 'startDateAttribute', 'Start-date attribute', 'startDate'), attrInput(H, 'endDateAttribute', 'End-date attribute', 'endDate'),
197
- el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Only people matching (optional)' }), q));
197
+ el('label', { className: 'field', style: 'margin:0' }, el('span', { className: 'lbl', text: 'Only identities matching (optional)' }), q));
198
198
  if (!mdRun(w, H, 'jml-preview', 'Show who is coming up', desc, extras, function () { return { days: H.days, startDateAttribute: H.startDateAttribute || undefined, endDateAttribute: H.endDateAttribute || undefined, query: H.query || undefined }; }, renderWarnings)) return;
199
199
  var d = H.data, T = d.totals;
200
200
  w.appendChild(el('div', { className: 'bigstats' }, stat(T.starts, 'start in the period'), stat(T.ends, 'end in the period'), stat(T.findings, 'with something to check', 'lose'), stat(T.checked, 'identities read')));
201
201
  var busy = d.perDay.filter(function (p) { return p.starts || p.ends; });
202
202
  if (busy.length) w.appendChild(section('Per day', busy.length, simpleTable(['Day', 'Start', 'End'], busy.map(function (p) { return [p.day, p.starts ? fmtNum(p.starts) : '', p.ends ? fmtNum(p.ends) : '']; }), 'Per day')));
203
- if (d.rows.length) w.appendChild(section('People', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Date', 'Kind', 'Person', 'Manager', 'Identity profile', 'Lifecycle state now', 'Accounts', 'Access', 'To check'], function (r) {
203
+ if (d.rows.length) w.appendChild(section('Identities', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Date', 'Kind', 'Identity', 'Manager', 'Identity profile', 'Lifecycle state now', 'Accounts', 'Access', 'To check'], function (r) {
204
204
  return [el('span', {}, r.date, el('div', { className: 'muted small', text: daysText(r.inDays) })), pill(r.kind, r.kind === 'Ends' ? 'lose' : 'gain'), el('span', {}, r.person, r.email ? el('div', { className: 'muted small', text: r.email }) : null), r.manager || '', r.profile, el('span', {}, r.lifecycle, r.stateNow ? el('div', { className: 'muted small', text: r.stateNow }) : null), r.accounts === null ? '' : fmtNum(r.accounts), r.access === null ? '' : fmtNum(r.access), r.findings.length ? sigList(r.findings) : ''];
205
205
  }, 'Joiners and leavers coming up')));
206
206
  else w.appendChild(el('p', { className: 'muted', text: 'Nobody has a start or end date in the period.' }));
@@ -216,7 +216,7 @@
216
216
  var d = H.data, T = d.totals;
217
217
  w.appendChild(el('div', { className: 'bigstats' }, stat(T.running, 'requests still running'), stat(T.stuck, 'longer than the limit', 'lose'), stat(T.approval, 'waiting in approval'), stat(T.provisioning, 'waiting in provisioning'), stat(T.churningSources, 'sources ISC keeps re-sending to', 'lose')));
218
218
  if (d.byPhase.length) w.appendChild(section('Where they wait', d.byPhase.length, simpleTable(['Phase', 'Requests', 'Oldest'], d.byPhase.map(function (p) { return [p.phase, fmtNum(p.requests), hrs(p.oldestHours)]; }), 'Where they wait')));
219
- if (d.churn.length) w.appendChild(section('Sources ISC keeps sending the same change to (last 2 days)', d.churn.length, simpleTable(['Source', 'Repeated changes', 'People', 'Example'], d.churn.map(function (c) { return [c.source, pill(fmtNum(c.changes), 'lose'), fmtNum(c.people), el('span', { className: 'small', text: c.example })]; }), 'Churning sources')));
219
+ if (d.churn.length) w.appendChild(section('Sources ISC keeps sending the same change to (last 2 days)', d.churn.length, simpleTable(['Source', 'Repeated changes', 'Identities', 'Example'], d.churn.map(function (c) { return [c.source, pill(fmtNum(c.changes), 'lose'), fmtNum(c.people), el('span', { className: 'small', text: c.example })]; }), 'Churning sources')));
220
220
  if (d.rows.length) w.appendChild(section('Stuck requests', d.rows.length + (d.more || 0), filteredTable(H, d.rows, ['Submitted', 'Running', 'Access', 'Requested for', 'Phase', 'Waiting on', 'Why'], function (r) {
221
221
  return [when16(r.submitted), hrs(r.hours), el('span', {}, r.access, el('div', { className: 'muted small', text: r.type })), el('span', {}, r.requestedFor, r.requestedBy && r.requestedBy !== r.requestedFor ? el('div', { className: 'muted small', text: 'by ' + r.requestedBy }) : null), el('span', {}, r.phase, r.phaseHours === null ? null : el('div', { className: 'muted small', text: 'for ' + hrs(r.phaseHours) })), r.waitingOn, el('span', {}, r.reason, r.errors ? el('div', { className: 'small', style: 'color:var(--danger)', text: r.errors }) : null)];
222
222
  }, 'Stuck requests')));