identityscope 0.28.3 → 0.28.4

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 (91) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +917 -917
  3. package/SECURITY.md +56 -56
  4. package/dist/node/cli.js +26 -26
  5. package/dist/node/monthly.js +17 -17
  6. package/package.json +2 -2
  7. package/reports/access-profile-members.yaml +29 -29
  8. package/reports/access-profile-membership-counts.yaml +17 -17
  9. package/reports/access-profiles-without-owner.yaml +16 -16
  10. package/reports/access-request-audit-trail.yaml +36 -36
  11. package/reports/accounts-by-source.yaml +19 -19
  12. package/reports/active-identities-without-manager.yaml +22 -22
  13. package/reports/aggregation-failures.yaml +29 -29
  14. package/reports/aggregation-history.yaml +27 -27
  15. package/reports/all-sources.yaml +16 -16
  16. package/reports/application-accounts.yaml +32 -32
  17. package/reports/application-entitlements.yaml +31 -31
  18. package/reports/campaign-progress.yaml +23 -23
  19. package/reports/certification-decisions.yaml +31 -31
  20. package/reports/direct-reports-per-manager.yaml +20 -20
  21. package/reports/disabled-accounts-of-active-people.yaml +33 -33
  22. package/reports/duplicate-emails.yaml +16 -16
  23. package/reports/entitlement-holders.yaml +35 -35
  24. package/reports/entitlements-held-by-inactive-identities.yaml +31 -31
  25. package/reports/entitlements-without-owner.yaml +28 -28
  26. package/reports/identities-by-lifecycle-state.yaml +15 -15
  27. package/reports/identities-missing-key-attributes.yaml +27 -27
  28. package/reports/identities-with-processing-errors.yaml +19 -19
  29. package/reports/identity-attribute-mappings.yaml +27 -27
  30. package/reports/machine-accounts.yaml +28 -28
  31. package/reports/managers-and-direct-reports.yaml +23 -23
  32. package/reports/most-access.yaml +18 -18
  33. package/reports/new-identities.yaml +24 -24
  34. package/reports/old-passwords.yaml +35 -35
  35. package/reports/pending-reviews-by-reviewer.yaml +20 -20
  36. package/reports/person-access.yaml +31 -31
  37. package/reports/privileged-access.yaml +29 -29
  38. package/reports/provisioning-error-causes.yaml +27 -27
  39. package/reports/provisioning-errors.yaml +32 -32
  40. package/reports/provisioning-failures.yaml +28 -28
  41. package/reports/recent-access-requests.yaml +22 -22
  42. package/reports/recent-activity.yaml +32 -32
  43. package/reports/recent-leavers.yaml +34 -34
  44. package/reports/role-members.yaml +29 -29
  45. package/reports/role-membership-counts.yaml +18 -18
  46. package/reports/roles-without-owner.yaml +17 -17
  47. package/reports/sources-needing-attention.yaml +23 -23
  48. package/reports/stuck-access-requests.yaml +29 -29
  49. package/reports/team-access.yaml +30 -30
  50. package/reports/terminated-users-with-active-accounts.yaml +46 -46
  51. package/reports/uncorrelated-accounts.yaml +38 -38
  52. package/ui/js/00-setup.js +6 -6
  53. package/ui/js/01-small-helpers.js +143 -143
  54. package/ui/js/02-connection.js +150 -150
  55. package/ui/js/03-health-check.js +17 -17
  56. package/ui/js/04-library.js +135 -135
  57. package/ui/js/05-pickers.js +163 -163
  58. package/ui/js/06-report-view.js +157 -157
  59. package/ui/js/07-fields.js +85 -85
  60. package/ui/js/08-designer.js +360 -360
  61. package/ui/js/09-yaml.js +22 -22
  62. package/ui/js/10-instant-check.js +171 -171
  63. package/ui/js/11-lookup.js +161 -161
  64. package/ui/js/12-tenant.js +115 -115
  65. package/ui/js/13-source-configuration-and-diagnostics.js +64 -64
  66. package/ui/js/14-certifications.js +68 -68
  67. package/ui/js/15-monthly-report.js +24 -24
  68. package/ui/js/16-ownership.js +39 -39
  69. package/ui/js/17-compare-tenants.js +102 -102
  70. package/ui/js/18-audit.js +181 -181
  71. package/ui/js/19-insights.js +108 -108
  72. package/ui/js/20-role-mining.js +35 -35
  73. package/ui/js/21-share-reports.js +45 -45
  74. package/ui/js/22-partner-overview-all-customer-tenants.js +228 -228
  75. package/ui/js/23-in-app-guidance.js +217 -217
  76. package/ui/js/24-role-tools.js +220 -220
  77. package/ui/js/25-schedules.js +264 -264
  78. package/ui/js/26-start.js +7 -7
  79. package/ui/js/27-warnings.js +224 -224
  80. package/ui/js/28-audit-readiness.js +99 -99
  81. package/ui/js/29-lifecycle.js +182 -182
  82. package/ui/js/30-labs.js +265 -265
  83. package/ui/js/31-build.js +203 -203
  84. package/ui/js/32-lab-examples.js +148 -148
  85. package/ui/js/33-finder.js +89 -89
  86. package/ui/js/34-governance.js +129 -129
  87. package/ui/js/35-watch.js +266 -266
  88. package/ui/js/36-model.js +247 -247
  89. package/ui/js/37-logs-and-watch.js +224 -224
  90. package/ui/shell.html +112 -112
  91. package/ui/style.css +350 -350
@@ -1,217 +1,217 @@
1
- // ---------- in-app guidance ----------
2
- var HELP = {
3
- reports: { title: 'Reports', what: 'Ready-made reports and the ones you build. Pick a report, fill in its options and press Preview (first 500 records, quick) or Run report (everything).', read: ['"Show: Count by" turns any report into a summary: one row per value with how many.', 'Click a column heading to sort; type in "Filter these rows" to search what is shown.', 'Downloads (Excel, CSV, HTML) always contain every row, also when the screen shows only the first part.'], act: ['Customize makes your own copy you can change with drop-downs.', 'New report: pick what a row is (people, accounts, access...), add filters, choose columns, save.', 'Schedule this report sends it by email or Teams on a schedule.'], perms: 'Depends on the data: search needs sp:search:read; accounts, entitlements and sources need their read permissions. The Health check shows what your sign-in can read.' },
4
- checks: { title: 'Instant check', what: 'Every daily check in one click. Each tile is green (fine), amber (look at it) or red (act now), based on the limits you set.', read: ['"N new" means rows that were not there at the previous check, so you see what changed since yesterday.', 'The small line is the trend: the value of each past check, kept on this computer.', 'Grey "(last time)" tiles show the previous result until you run the checks again.', '"Could not check" usually means the sign-in or token lacks a permission for that check.'], act: ['Click a tile for the rows behind it, how to fix it and a link to the full report.', 'Limits sets when a check turns amber or red, the period it looks at, or switches it off.', 'Schedules > New schedule > "Instant check" with "only when something is new or got worse" gives a quiet daily alert.'], perms: 'Each check needs read access to its data (search, sources, VA clusters, workflows, campaigns, access requests).' },
5
- 'lookup-person': { title: 'Person lookup', what: 'One person on one page: lifecycle state, manager, every account, all access, the last 30 days of provisioning, access requests and audit events.', read: ['The coloured lines at the top are hints: red needs action (locked account, failed provisioning), amber is worth checking (disabled account, no manager or email).', '"Assigned directly" means the entitlement was given on its own, not through a role or access profile.'], act: ['Use it for "why can’t this person log in" and "why does this person have this access".', 'Open in ISC jumps to the person in the admin console.'], perms: 'Search (identities, account activities, events); access requests need an admin.' },
6
- 'lookup-source': { title: 'Source lookup', what: 'Every source with its connection status and last aggregation; click one for counts, aggregations, errors, configuration and what depends on it.', read: ['"Last successful aggregation" comes from audit events, so it only reaches back as far as ISC keeps them.', '"Used by" lists the identity profiles that read this source; a failing authoritative source affects every identity in that profile.', 'The configuration hides passwords, secrets, keys and encrypted values.'], act: ['Open in ISC goes to the source’s configuration (Admin > Connections > Sources).', 'Connector diagnostics (test connection, ping VA cluster, peek) are off until you turn them on, and ask before every action.'], perms: 'Sources, accounts and entitlements read; diagnostics need source admin rights.' },
7
- ownership: { title: 'Ownership', what: 'Who owns every source, role, access profile, entitlement, workflow and identity profile, what has no owner, and what is owned by people who left.', read: ['Owners who left or no longer exist cannot approve requests or review access, so those requests and reviews get stuck.', '"Not found" means the owner identity no longer exists.'], act: ['Hand over the objects listed under "Owned by people who left" (Excel download for the handover).', 'Click an owner to see everything they own before they change jobs.'], perms: 'Read access to sources, roles, access profiles, entitlements, workflows and identity profiles.' },
8
- tenant: { title: 'Tenant', what: 'The size and health of the setup: counts, Virtual Appliances, workflows, transforms, API credentials and a comparison with another tenant. To try transforms and workflows before changing them, see Build & test.', read: ['A dash in the overview means the sign-in or token cannot read that number.', 'Virtual Appliances: anything not NORMAL is listed first. A VA in error stops aggregation and provisioning for its sources.', 'Transforms "not referenced" are not used by an identity profile or another transform; they may still be used in provisioning policies or rules.', 'API credentials: personal access tokens show their expiry date; API clients have none in ISC. "Owner has left" means the owner is inactive or in a leaver lifecycle state; the token keeps working until someone deletes it.'], act: ['API credentials: renew tokens that expire soon before scripts and schedules stop, and delete tokens of people who left after checking with their team.', 'Compare tenants: connect production with a token (kept in memory only) to see what differs from sandbox before you move changes.'], perms: 'idn:remote-client:read, sp:workflow:read, sp:workflow-execution:read, idn:transform:read. API credentials: sp:all-personal-access-tokens:read (or sp:my-personal-access-tokens:read for your own) and sp:oauth-client:read.' },
9
- 'build-tlab': { title: 'Transform lab', what: 'Run a transform on this computer and see each step. Nothing is saved to ISC.', read: ['"Only ISC can say" marks custom rules, uniqueness checks and anything else the offline engine cannot know.', 'Assumptions are listed where SailPoint\'s documentation does not say what happens.', 'Try it on real people with an attribute to compare: "different" shows where the result is not what ISC holds now. Check a mapping this way before trusting a result.'], act: ['Save test cases for a transform and run them after every change.'], perms: 'idn:transform:read; on people also sp:search:read, idn:accounts:read and idn:identity-profile:read.' },
10
- 'build-impact': { title: 'Transform impact', what: 'Where each transform is used: identity profiles, other transforms and provisioning policies, also through chains of transforms, and how many people that covers.', read: ['"Through A → B" means the transform is used inside A, which is used by B.', 'People counts are the identities in the identity profiles that use it.', 'Rules run code IdentityScope cannot read, so anything a rule does is not included.'], act: ['Before changing a transform, try the change in the Transform lab on people of every profile listed.', 'Transforms used by nothing are candidates for clean-up; check rules first.'], perms: 'idn:transform:read, idn:identity-profile:read, idn:sources:read, sp:search:read.' },
11
- 'build-policy': { title: 'Account create preview', what: 'What a source\'s provisioning policy would produce for one person, worked out on this computer. Nothing is created.', read: ['"Not set here" means the field has no transform in the policy; the value comes from the source, a rule or the connector.', 'Password fields are never worked out or shown. Generators and rules are only known to ISC.', 'A required field that would be empty stops the account from being created.'], act: ['Preview a joiner before their start date to find empty required fields.'], perms: 'idn:sources:read, sp:search:read, idn:accounts:read, idn:transform:read.' },
12
- 'build-wlab': { title: 'Workflow lab', what: 'Walk a workflow step by step on this computer with a trigger you give it. Nothing is called, so the workflow does not need to be disabled.', read: ['Replay reads the history of real runs (kept 90 days by ISC). "Same path" means the simulator took the branches ISC took.', 'Secrets in steps show as "(hidden)".', 'Loops run their first five items.'], act: ['"Replay with my edits" shows which real runs would take a different path before you publish a change.'], perms: 'sp:workflow:read, sp:workflow-execution:read.' },
13
- 'build-health': { title: 'Workflow health', what: 'Runs and failures of each workflow per week, and the causes of failed runs grouped.', read: ['Causes come from the history of failed runs; IDs, numbers and names are taken out so the same problem groups together.', 'Runs older than 90 days have no history in ISC.', '"Enabled, never ran" can be normal for rare events; check the trigger if it should have run.'], act: ['A workflow that fails every run usually has an expired credential: see the Credential map.'], perms: 'sp:workflow:read, sp:workflow-execution:read.' },
14
- 'build-roles': { title: 'Role change preview', what: 'Who would gain or lose a role if its membership criteria changed.', read: ['"Keeps it" are people who hold the role another way (request or assignment).'], act: ['Try the criteria here before saving them in ISC.'], perms: 'idn:role-unchecked:read, sp:search:read; account conditions also idn:accounts:read.' },
15
- 'build-drift': { title: 'Drift check', what: 'Compare the configuration now with an approved baseline: what was added, removed or changed since.', read: ['The baseline is a copy of a change-history snapshot, kept on this computer, so later snapshots cannot change it.', 'IDs, timestamps and secrets are not compared.'], act: ['Approve a baseline after each release to production, and check for drift before the next one.'], perms: 'The scopes of the Tenant page plus idn:sources:read, idn:identity-profile:read, idn:role-unchecked:read and sp:search:read.' },
16
- 'build-cmap': { title: 'Credential map', what: 'Every client ID, user and endpoint used in workflows and source connections.', read: ['Secret values are never read; "typed in" only means the field is filled in.', 'HTTP Request steps before version 3 cannot use Parameter Storage.'], act: ['When a secret is rotated in an application, update each place listed (or once in Parameter Storage).'], perms: 'sp:workflow:read, idn:sources:read.' },
17
- partner: { title: 'All tenants (partner overview)', what: 'The instant check of every tenant you look after, side by side: sandbox, QA and production of one company, or each customer of a partner.', read: ['Each row is one tenant; each column one check. Green is OK, amber needs a look, red is a problem, grey could not be checked.', '"new" marks a check that is new or worse since that tenant\'s previous check.', 'Rows with problems come first. Click a number for the cause and how to fix it; Open switches to that tenant with all pages.'], act: ['Schedule "All tenants" daily (Schedules page) to get one summary by email or Teams, only when something is new or worse.', 'Use a read-only token for each tenant: the overview never changes anything, but a read-only identity keeps it that way by design.'], perms: 'Per tenant: the read scopes the instant check uses (search, sources, account activities, events, clusters, workflows, campaigns, access request status).' },
18
- sod: { title: 'Separation of duties', what: 'Rules for access one person should not hold together, and everyone who breaks them.', read: ['A person breaks a rule when they hold any item of side A and any item of side B, however they got it (role, access profile, request).', 'Write items as ISC shows them; add the source in brackets to be exact, e.g. "Domain Admins (Active Directory)". Case is ignored.', 'Some ISC editions have their own SOD policies; these rules work without them and stay on this computer.'], act: ['Remove one side, or record an approved exception (mitigating control) for the auditors.', 'The Evidence pack can include the violations list.'], perms: 'Search on identities (sp:search:read).' },
19
- changes: { title: 'Change history', what: 'What changed in the configuration between two days: sources, transforms, identity profiles, roles, access profiles and workflows.', read: ['Drift from an approved baseline: approve the snapshot of a release, then "Check for drift now" lists what was added, removed or changed since. The baseline is a copy kept on this computer.', 'Added and Removed are by name; a renamed object shows as one removed and one added.', 'Snapshots hide secrets and ignore IDs and timestamps, so only real setting changes show.', 'Snapshots are kept on this computer (the "changes" folder), one per day, at most 400 days.'], act: ['Schedule the instant check daily: it saves a snapshot every day by itself.', 'Use it after "something broke yesterday": compare yesterday with today.'], perms: 'Read on sources, transforms, identity profiles, workflows; search on roles and access profiles.' },
20
- evidence: { title: 'Evidence pack', what: 'One zip with the reports auditors ask for, a README and SHA-256 fingerprints of every file.', read: ['README.txt says which tenant, when, by whom and with which version it was produced.', 'SHA256SUMS.txt lets an auditor check that no file was changed afterwards (sha256sum -c SHA256SUMS.txt).', 'A part the sign-in cannot read is listed as NOT INCLUDED, with the reason.'], act: ['Build it at the start of the audit and hand the zip over as is.', 'Keep a copy: rebuilding later gives today’s data, not the data of that day.'], perms: 'Whatever each part reads: search, sources, campaigns and certifications, access requests.' },
21
- reclaim: { title: 'License reclaim', what: 'Enabled accounts of people who left, and accounts nobody signed in with for a long time, with what they cost.', read: ['Authoritative sources (HR) and disabled accounts are skipped.', 'Dormant accounts need a sign-in date attribute per source; without one only leavers are listed.', 'Savings are an estimate: accounts times the monthly cost you entered.'], act: ['Download the list and agree with the application owners which accounts to disable or delete in ISC.', 'Check service and shared accounts before removing them.'], perms: 'Search on identities, accounts and sources read.' },
22
- requests: { title: 'Access requests', what: 'How fast access requests are approved and fulfilled, who approves slowly, and what is requested and rejected most.', read: ['"Typical" is the median: half of the requests were faster.', 'Waiting now counts approvals that are still open, per approver.', 'A high reject rate on an item often means it is requestable by the wrong people or badly described.'], act: ['Remind or replace slow approvers; add a backup approver.', 'Make often-approved items part of a role so nobody has to request them.'], perms: 'Access request status read; an admin sees everyone’s requests.' },
23
- mining: { title: 'Find candidate roles', what: 'Entitlements most people with the same attribute value (for example the same department) already hold: candidates for a birthright role.', read: ['"Held by" shows how many people of the group hold the item.', '"Already in a role" means an existing role gives it, directly or through an access profile.'], act: ['Try the candidate in "Preview a role change" with the attribute as criteria, then create the role in ISC.'], perms: 'Search on identities, roles and access profiles.' },
24
- certs: { title: 'Certifications', what: 'Campaign progress, every reviewer’s progress and decisions, and reviews that may be rubber-stamped.', read: ['At risk: due within 7 days and under 80% complete. Overdue: past the deadline and not complete.', 'Approve % close to 100 on large reviews, or a sign-off minutes after the review opened, are signals worth a conversation, not proof.', 'A high share of revokes is usually healthy: reviewers are actually removing access.'], act: ['Download the reviewer list and send reminders to the reviewers who are behind.', 'Reassign reviews of reviewers who are absent, or extend the deadline in ISC.'], perms: 'A certification admin’s sign-in or token sees every reviewer; others may see only their own reviews.' },
25
- roles: { title: 'Role tools', what: 'Compare roles side by side, and preview who would gain or lose a role before you change its membership criteria in ISC.', read: ['The preview evaluates the criteria like ISC does, ignoring upper and lower case in values.', '"Each condition on its own" shows how many people match each condition, how many have the attribute at all, and its most common values: the quickest way to spot a typo.', 'Only attributes that are searchable in ISC can be checked.', '"Keeps it (other way)" are people who hold the role by request or assignment, not by the criteria.'], act: ['Show JSON gives the criteria in the format of the ISC role API.', 'Download the list of people affected for the change approval.'], perms: 'Role read (idn:role-unchecked:read or idn:role-checked:read) and search.' },
26
- coverage: { title: 'Review coverage', what: 'Which sources and privileged entitlements a certification campaign reviewed in the period, and which none did.', read: ['A source counts as reviewed when at least one review item named it.', 'Privileged entitlements are matched by ID, or by name and source.'], act: ['Add the sources and privileged entitlements that were not reviewed to your next campaign.', 'Download the list as evidence that coverage was checked.'], perms: 'idn:campaign:read, idn:sources:read, sp:search:read.' },
27
- outliers: { title: 'Access outliers', what: 'Active people with far more access items than the median of their group (department by default).', read: ['Groups need at least 5 people; the difference must be at least 10 items.', 'Admins and long-serving staff often have more access; an outlier is a place to start, not a finding.'], act: ['Review the top outliers with their managers first.', 'Compare by job title or another attribute if department is too broad.'], perms: 'sp:search:read on identities.' },
28
- speed: { title: 'Provisioning speed', what: 'How long account changes take per source, and access removals (disable, delete) that took longer than your limit or are still not done.', read: ['Time runs from when ISC started the change to its last update.', 'For connectors that work through tickets or queues, waiting time is included.'], act: ['Follow up removals "not done" first: someone who left may still have access.', 'Use the 90% figure per source to agree a realistic target with application owners.'], perms: 'sp:search:read on account activity.' },
29
- 'wn-quality': { title: 'Identity data', what: 'Active people without a manager, an email or an attribute you choose, and emails used by more than one person.', read: ['People who left are not checked.', 'Shared emails often mean duplicate identities, test accounts or a mapping problem.'], act: ['Fix the data in the HR source; ISC takes it from there.', 'Missing managers first: approvals and manager certifications depend on them.'], perms: 'sp:search:read on identities.' },
30
- 'wn-joiners': { title: 'Missed joiners', what: 'Active people missing an account on a source that nearly everyone in their identity profile has (a birthright account), and people past their start date still in a pre-hire lifecycle state.', read: ['Birthright sources are worked out per identity profile; nothing needs setting up.', 'People created within the grace period are not flagged yet.'], act: ['Check the provisioning policy and the account activity for the person; a failed create often explains it.', 'Fix the lifecycle state or the start date for people stuck in pre-hire.'], perms: 'sp:search:read on identities.' },
31
- 'wn-leavers': { title: 'Missed leavers', what: 'People whose account on their own authoritative (HR) source is disabled while ISC treats them as active, and leavers who still have enabled accounts, roles or access profiles.', read: ['Accounts on the HR source and on ISC itself are not counted for leavers.', 'People active after their end date are on the End dates tab.'], act: ['For "HR says gone", check the lifecycle state rules: they should follow the HR status.', 'Disable or remove what leavers still have, starting with privileged accounts.'], perms: 'sp:search:read on identities.' },
32
- movers: { title: 'Mover leftovers', what: 'Access that almost nobody else in the person\u2019s group (department by default) has.', read: ['Often left over from a previous job, or granted as a one-off.', 'Groups need at least 10 people.'], act: ['Ask the manager whether the person still needs it; remove what is left from a previous job.'], perms: 'sp:search:read on identities.' },
33
- adminaccts: { title: 'Admin accounts', what: 'Accounts named like admin, svc, test or shared that are linked to a person.', read: ['A word matches only as a separate part of the account name.', 'You can change the words.'], act: ['Give service accounts an owner instead of linking them to a person; remove test accounts; keep admin accounts separate and reviewed.'], perms: 'sp:search:read on identities.' },
34
- exceptions: { title: 'Exceptions', what: 'Findings someone accepted, with a reason, who accepted it and an end date.', read: ['In force: left out of the instant check until the end date.', 'Expired: shown again; decide again or fix it.'], act: ['Accept from the details of an instant check tile; end an exception here when the reason no longer holds.', 'Include the register in the evidence pack.'], perms: 'None: kept on this computer.' },
35
- 'wn-massch': { title: 'Mass changes', what: 'Provisioning per day, with a spike flagged when today or yesterday is far above the usual day.', read: ['Usual = the median day of the period before.', 'A spike lists the sources behind it.'], act: ['Check the last HR file, transform or role change before the next aggregation; pause the source if needed.'], perms: 'sp:search:read on account activities.' },
36
- 'wn-loops': { title: 'Provisioning loops', what: 'The same change for the same person and source sent many times.', read: ['Often an attribute sync whose value the connector changes back, or a request ISC keeps re-sending.'], act: ['Fix the transform or the connector mapping; remove the stale assignment.'], perms: 'sp:search:read on account activities.' },
37
- 'wn-outside': { title: 'Changed outside ISC', what: 'Account states that ISC did not cause: disabled without an ISC disable, or enabled again after ISC disabled them.', read: ['Account state is from the last aggregation.', 'By default every disable and enable ISC still has on record is checked, not only recent ones.', 'The last column shows the last disable or enable ISC itself sent to the account.'], act: ['Ask the application team who changed it; turn on native change detection where the source supports it.'], perms: 'Read access to accounts and account activities.' },
38
- 'wn-syncdrift': { title: 'Attribute sync drift', what: 'Attributes ISC syncs to a source whose value on the account differs from ISC, plus failed syncs.', read: ['Only active people and enabled accounts are compared.', 'Manager is compared by display name.'], act: ['Run an attribute sync for the person, or fix the target attribute mapping.'], perms: 'idn:attr-sync-source-config:read (ORG_ADMIN or HELPDESK) and read access to accounts.' },
39
- 'wn-groupappr': { title: 'Group approvals', what: 'Pending approvals assigned to a governance group, with how many members are still active.', read: ['"Nobody can approve" means every member has left.'], act: ['Add active members to the group or forward the approval.'], perms: 'An org admin token; idn:workgroup:read.' },
40
- 'wn-mgrleft': { title: 'Manager left', what: 'Active people whose manager has left or is not in ISC.', read: ['Narrow to contractors with a search query.'], act: ['Fix the manager in the HR or NERM source.'], perms: 'sp:search:read on identities.' },
41
- leavertimes: { title: 'Leaver removal times', what: 'Per leaver: when leaving started and how long each account took to be disabled.', read: ['Start is the lifecycle state change event when ISC has one, otherwise the first disable ISC sent.', 'Accounts on the authoritative source are left out.'], act: ['Fix slow sources first; give auditors the download.'], perms: 'sp:search:read on identities, events and account activities.' },
42
- attrhist: { title: 'Attribute changes', what: 'Changes of the attributes you follow, between looks by IdentityScope.', read: ['The first look records values only.', 'Kept on this computer, owner-only.'], act: ['Schedule a look every day for a running history.'], perms: 'sp:search:read on identities.' },
43
- owners: { title: 'Entitlement owners', what: 'Each entitlement owner with what they own and how many people hold it.', read: ['Owners who left come first.', 'Holders are counted for up to 3,000 entitlements.'], act: ['Give each owner their filtered download; replace owners who left.'], perms: 'Read access to entitlements; sp:search:read on identities.' },
44
- rules: { title: 'Rule usage', what: 'Every connector and cloud rule and where it is used.', read: ['Cloud rules can only be listed with the opt-in SP-Config export.', 'Rules called from other rules or workflows are not seen.'], act: ['Remove unused rules after a check; deploy missing ones before they are called.'], perms: 'Read access to sources, transforms, identity profiles and connector rules; sp:config:read for the export.' },
45
- 'nerm-overview': { title: 'End dates and sponsors', what: 'Active non-employees past or near their end date, and sponsor problems.', read: ['The end date comes from a date attribute with end, expiry or termination in its name, unless you name one.', 'Sponsors are owner attributes, matched to ISC by email.'], act: ['Ask sponsors to renew or end the engagement; give profiles without a sponsor a new one.'], perms: 'A NERM scope on the API token (nerm:api:read-only), plus sp:search:read in ISC.' },
46
- 'nerm-sync': { title: 'NERM vs ISC', what: 'Profiles whose NERM status and ISC identity state differ.', read: ['Matched through the accounts on the NERM source in ISC.', 'Only profile types marked as synced to ISC are compared.'], act: ['Aggregate the NERM source, then check the identity profile and lifecycle states.'], perms: 'nerm:api:read-only, and read access to accounts in ISC.' },
47
- 'nerm-sessions': { title: 'Waiting workflows', what: 'NERM workflow sessions still waiting on a step.', read: ['Age shows only when NERM returns the start date.'], act: ['Follow up with the approver or reviewer in NERM.'], perms: 'nerm:api:read-only (or workflow-operator).' },
48
- 'nerm-risk': { title: 'High risk', what: 'Profiles at the highest NERM risk level.', read: ['Risk levels and scores come from NERM.'], act: ['Review these first in certifications and end dates.'], perms: 'nerm:api:read-only.' },
49
- 'nerm-users': { title: 'Portal users who left', what: 'NERM users who can still sign in although their ISC identity has left.', read: ['Users not linked to an ISC identity are counted in a note.'], act: ['Disable the user in NERM.'], perms: 'nerm:api:read-only, plus sp:search:read in ISC.' },
50
- outmodel: { title: 'Outside roles', what: 'Entitlements active people hold directly instead of through a role or access profile.', read: ['Directly = by request, by an admin, or found on the source by aggregation.', '"Never given by a role" entitlements are not in any role or access profile that someone has.'], act: ['Put common direct access into a role or access profile; review privileged direct access first.'], perms: 'sp:search:read on identities.' },
51
- composition: { title: 'What is in every role', what: 'One row per role, access profile and entitlement.', read: ['Entitlements put straight into a role have no access profile.', 'Empty roles grant nothing.'], act: ['Give the download to role owners for review; remove or fill empty roles.'], perms: 'idn:role-unchecked:read and idn:access-profile:read.' },
52
- reassigned: { title: 'Reassigned reviews', what: 'Certifications passed on to another reviewer.', read: ['Shows who passed it on, the reason given, and whether the new reviewer is still active.'], act: ['Ask for a reason where none was given; reassign reviews that sit with someone who left.'], perms: 'A certification admin token (idn:campaign:read).' },
53
- 'wn-aggsafe': { title: 'Aggregation safety', what: 'Per source: the delete threshold, how many account aggregations ran and failed, and sources that did not aggregate.', read: ['A high delete threshold lets one broken read remove most accounts.', 'Sources fed by file upload aggregate only when a file is loaded.'], act: ['Lower thresholds of 50% or more; fix sources whose aggregations keep failing.'], perms: 'Read access to sources; sp:search:read on events.' },
54
- 'wn-svc': { title: 'Service accounts', what: 'Service and machine accounts with no owner, an owner who left, or no recent use.', read: ['Owners and last-used dates come from Machine Identity Security when the tenant has it.'], act: ['Give every enabled account an owner; disable the unused ones after checking.'], perms: 'idn:mis-account:read, or read access to accounts.' },
55
- 'wn-multi': { title: 'Several accounts', what: 'People with more than one account on the same source.', read: ['On the authoritative source it usually means a duplicate HR record or a rehire.'], act: ['Fix the correlation or merge the HR records.'], perms: 'sp:search:read on identities.' },
56
- 'wn-pwfail': { title: 'Password failures', what: 'Password changes, resets and syncs that failed.', read: ['From audit events of type password activity.'], act: ['Fix the source connection or password policy mismatch; ask the person to change the password again.'], perms: 'sp:search:read on events.' },
57
- 'wn-lcset': { title: 'Lifecycle settings', what: 'What each lifecycle state of each identity profile does to accounts and access.', read: ['A leaver state is one where ISC marks people inactive, or whose name says so.', 'Findings: leaver states that turn nothing off, or leave some sources on; states switched off that still hold people.'], act: ['Add the missing sources to the state’s account settings in the identity profile, or confirm a workflow handles them.'], perms: 'idn:identity-profile:read, idn:identity-profile-lifecycle-state:read and idn:sources:read.' },
58
- 'wn-govgroups': { title: 'Governance groups', what: 'Every governance group with its owner, members and where it is used.', read: ['A group with no active member cannot approve or review anything sent to it.'], act: ['Add active members, replace owners who left, delete groups that are not used.'], perms: 'idn:workgroup:read; sp:search:read on identities.' },
59
- 'logs-ccg': { title: 'Connector log (ccg.log)', what: 'Reads the connector log of a Virtual Appliance from a copy on this computer and shows the errors and warnings grouped and counted, per source, with the full error detail.', read: ['ISC has no API for this file: copy it from the appliance (/home/sailpoint/log/ccg.log) or point to a folder where it is dropped.', 'Repeats are one row with a count; IDs, numbers and names are ignored when grouping.', 'Times are as written in the log (UTC).', 'Values that look like passwords, tokens or keys are hidden.'], act: ['Open the detail of the most frequent error for the source that fails; the first line of the error detail usually names the cause (timeout, permission, certificate, bad attribute).', 'Compare the time with “What ISC recorded”.'], perms: 'None in ISC. The file must be readable on this computer.' },
60
- 'logs-isc': { title: 'What ISC recorded', what: 'One timeline of aggregations, source changes and provisioning errors per source, and the state of the Virtual Appliances now.', read: ['This is ISC’s summary of each error, not the full connector log.', 'Event names and statuses are shown as ISC wrote them.'], act: ['A source failing while its cluster is not NORMAL: fix the appliance first.', 'For the detail behind an error of a Virtual Appliance source, read its ccg.log in the other tab.'], perms: 'sp:search:read on events and account activities; idn:sources:read; idn:remote-client:read for the appliances.' },
61
- 'wn-privgain': { title: 'Privileged access gained', what: 'Privileged entitlements a person holds now and did not hold at the previous look, each checked against what ISC itself provisioned in between.', read: ['The first run only remembers who holds what; findings appear from the second run.', '“No ISC record” means the access appeared at aggregation without ISC provisioning it: granted on the application, or arrived with a new account.', 'Kept on this computer: identity and entitlement IDs, and the findings of the last 90 days.'], act: ['Ask the application owner who granted it; remove it or put it through a request so it is approved and reviewed.'], perms: 'sp:search:read on identities and account activities.' },
62
- 'wn-outacct': { title: 'Accounts created outside ISC', what: 'Accounts that appeared in the period and that ISC marks as aggregated, not provisioned, on sources that are not authoritative.', read: ['A source where most accounts are new was probably just connected; its accounts are listed last.', 'Accounts without an origin in ISC are left out and counted in a note.'], act: ['An account nobody owns that already has access: find who created it on the application, then correlate or remove it.'], perms: 'idn:accounts:read, idn:sources:read; sp:search:read for the owners.' },
63
- 'wn-sensitive': { title: 'Sensitive changes', what: 'What changed in the configuration that touches a control, compared with an earlier snapshot on this computer, plus API clients and tokens created since.', read: ['Needs two snapshots: the first run takes one; schedule a daily snapshot for a steady record.', '“Who” is the last person ISC’s audit log names for an object of the same name; it can be empty.', 'High: rules, lifecycle states, password and SOD policies, event subscriptions, anything removed, and source safety settings.'], act: ['Confirm each change was planned and approved; revert what was not.'], perms: 'The reads of Change history; sp:search:read for who; an org admin token for API credentials.' },
64
- 'wn-risk': { title: 'Risk by person', what: 'The signals of the threat screens added up per person.', read: ['People on more than one screen come first.', 'The score only orders the list.', 'Matched by display name: two people with the same name count as one.'], act: ['Start with the people on several screens; open the screen named in each signal for the detail.'], perms: 'Those of the threat screens; a screen this sign-in cannot read is left out and named.' },
65
- 'wn-upcoming': { title: 'Coming up', what: 'People whose start or end date falls in the next days, the lifecycle state they are in now, and what the states of their identity profile do.', read: ['ISC decides the state from the profile’s mapping; this page does not predict it.', '“To check” lists what could go wrong on the day: no manager, no leaver state, a leaver state that leaves accounts on.'], act: ['Fix the lifecycle state or the manager before the date; for starters, check the birthright accounts exist.'], perms: 'sp:search:read on identities; idn:identity-profile:read, idn:identity-profile-lifecycle-state:read and idn:sources:read for the states.' },
66
- 'wn-stuckreq': { title: 'Stuck requests', what: 'Access requests still running after the limit, the phase each is in and on whom it waits, with the sources ISC keeps re-sending the same change to.', read: ['ISC shows a request as pending until its last phase ends, even after it was approved.', 'A churning source fills the queue that requests wait in.'], act: ['Waiting for an approver: remind or reassign in ISC. Waiting in provisioning: check the source, its Virtual Appliance and Warnings > Provisioning loops.'], perms: 'An org admin token for all requests; sp:search:read on account activities.' },
67
- 'wn-signins': { title: 'Sign-in signals', what: 'Sign-ins to ISC that deserve a look: many failures for one person, a success right after a run of failures, sign-ins by people who have left, and one network address trying many people.', read: ['From ISC audit events of type AUTH. Sign-ins handled by a separate identity provider are recorded there, not here.', 'The address table appears only if the events carry a network address.'], act: ['Check with the person; reset the password and sign-in method if they did not do it; disable identities that left.'], perms: 'sp:search:read on events and identities.' },
68
- 'wn-selfappr': { title: 'Self-approvals', what: 'Access requests approved by the person who gets the access, or by whoever requested it for someone else.', read: ['Approvals by a governance group are not attributed to a member.'], act: ['Change the approval settings so the owner or manager step cannot be the requester; review what was granted.'], perms: 'An org admin token (idn:access-request-status:read).' },
69
- 'wn-adminact': { title: 'Admin activity', what: 'Changes to tenant settings, sources, users and access items, by who made them.', read: ['Changes ISC made itself are left out.', '"Not a person in ISC" is an API client, a token or a deleted identity.', 'Event names are shown as ISC wrote them.'], act: ['Confirm each change was planned; remove admin rights and tokens of people who left.'], perms: 'sp:search:read on events and identities.' },
70
- 'wn-spikes': { title: 'Access spikes', what: 'People who were given many access items in one day.', read: ['New joiners and role changes do this legitimately.'], act: ['Check who requested it and whether the person changed job; review what was added.'], perms: 'sp:search:read on account activities and identities.' },
71
- trail: { title: 'Request trail', what: 'Every access request in the period with each approval step: who decided, approved or rejected, their comment and when, and how the request ended.', read: ['"Was" shows the original approver when a step was forwarded or reassigned.', 'A request with no approval step was auto-approved or needed no approval.', '“How fast approvers decide” times each step from the step before it (or from submission) to the decision.', 'The download has one row per approval step.'], act: ['Give the download to auditors as approval evidence.', 'Requests that failed after approval: check the error on the request and the source.'], perms: 'An org admin token (idn:access-request-status:read); other users only see their own requests.' },
72
- chain: { title: 'Approver chain', what: 'For every access profile, role and requestable entitlement: who approves a request, in what order, and who approves a revoke.', read: ['Steps are in approval order; "Manager of the person" is the manager of whoever the access is for.', 'Problems: no approval at all, an owner step with no owner, a governance group that is empty or deleted.', 'At most 300 requestable entitlements are read (one call each).'], act: ['Add an owner, fix the governance group, or add an approval step in the access item settings in ISC.'], perms: 'Read access to access profiles, roles, entitlements, sources and governance groups.' },
73
- 'wn-expiry': { title: 'Accounts expiring', what: 'Accounts whose expiry attribute is within the period, and accounts that expired but ISC still shows as enabled.', read: ['Read: never (in words, 0, -1, the AD maximum), FILETIME, Unix seconds or milliseconds, LDAP time, ISO dates, MM/dd/yyyy and dd/MM/yyyy with or without a time, and month names.', 'Day-first dates are detected per source (a value like 31/12/2026 anywhere).', 'The attribute must be in the source account schema and aggregated.'], act: ['Ask the manager whether the account should be extended; for expired but enabled accounts, check the leaver process.'], perms: 'Read access to accounts on the chosen sources.' },
74
- 'wn-revokes': { title: 'Revokes not done', what: 'Items a reviewer revoked in a certification that the person still holds.', read: ['ISC removes revoked access only after sign-off, so unsigned certifications show "waiting for sign-off".', '"Still held" after sign-off: the removal failed, is still running, or the item also comes from a role, access profile or another assignment.'], act: ['Look at the account activity for the person (Person lookup), fix the source or connector, and remove the item again.'], perms: 'A certification admin token sees every campaign; others only see their own reviews.' },
75
- 'wn-ending': { title: 'Access ending', what: 'Access granted through a request with an end date. ISC removes it on that date without asking anyone.', read: ['Grouped by manager so you can tell each manager what their people will lose.', 'Comes from completed access requests that had an end date.'], act: ['If the access is still needed, the person requests it again with a later end date before it ends.'], perms: 'idn:access-request-status:read (an admin sees everyone’s requests); search on identities for managers.' },
76
- 'wn-stuck': { title: 'Waiting on leavers', what: 'Open certification reviews and pending access approvals assigned to someone who left or is no longer in ISC.', read: ['"Has left" means inactive or in a leaver lifecycle state.', 'Approvals assigned to a governance group are not listed; a group has other members.'], act: ['Reassign the reviews in the campaign and forward the approvals in ISC.', 'Hand over objects owned by people who left on Lookup > Ownership.'], perms: 'idn:campaign:read, idn:access-request-status:read, search on identities.' },
77
- 'wn-reminders': { title: 'Review deadlines', what: 'Open certifications due within the period you choose, grouped by reviewer.', read: ['Decisions left is decisions total minus decisions made.', 'Reviewers who left are not in the copied emails.'], act: ['Copy the emails or open an email draft with the reviewers in BCC.', 'Reassign reviews of reviewers who are away.'], perms: 'idn:campaign:read; search on identities.' },
78
- 'wn-people': { title: 'End dates', what: 'Active people whose end date is coming up, and people still active after their end date.', read: ['Uses the identity attribute you set as the end date; contractors often have one.', 'Saving the attribute turns on the "Active after end date" tile in the instant check.'], act: ['Check with HR whether the person really left, then fix the HR record or the lifecycle state.'], perms: 'sp:search:read on identities.' },
79
- 'wn-admins': { title: 'ISC admins', what: 'Everyone with a user level in ISC itself (Org admin, Source admin, Help desk and others), found as "IdentityNow" source entitlements.', read: ['"New" means not there at the previous look on this computer.', 'Last sign-in is not shown.'], act: ['Remove user levels of people who left first, then review whether each Org admin still needs it.', 'Download the list as evidence for your yearly admin review.'], perms: 'sp:search:read on identities.' },
80
- 'wn-catalog': { title: 'Access catalog', what: 'Requestable entitlements, access profiles and roles without a description or owner, or whose owner left.', read: ['The score is the share of requestable items with a description and an active owner.', 'Sources with the lowest score come first.'], act: ['Ask application owners to write one plain sentence per item, starting with the lowest-scoring sources.', 'Give every requestable item an owner so approvals have someone to go to.'], perms: 'sp:search:read on entitlements, access profiles and roles.' },
81
- 'wn-growth': { title: 'Identity count', what: 'How many identities you have, how many are new each month, and when you reach your licensed number.', read: ['Until four weeks of counts are kept on this computer, the pace counts new identities only, so it is an upper estimate.', 'Scheduled instant checks keep one count per day.'], act: ['Enter your licensed number and check which identities your contract counts.', 'Plan the renewal before you reach it.'], perms: 'sp:search:read on identities.' },
82
- monthly: { title: 'Monthly report', what: 'How every daily check moved during a month, with highlights and the tenant’s size, for management.', read: ['Each day counts once: the last check of that day.', 'Lower is better for every check; green change is an improvement.'], act: ['Download it and open it in a browser, then print to PDF to send.', 'Schedule the instant check daily so every month has data.'], perms: 'None beyond the checks themselves; built from this computer’s history.' },
83
- schedules: { title: 'Schedules', what: 'Send reports or the instant check by email or Teams/Slack automatically, using Windows Task Scheduler.', read: ['Email goes only to addresses of active identities in ISC (shared mailboxes can be allowed one by one).', 'Chat messages carry counts and check results only, never names.'], act: ['"Only when something is new or got worse" keeps alerts quiet on good days.', 'Automatic runs need "Remember my tenant" with a token of a read-only reporting identity, because sign-ins expire.'], perms: 'The saved token needs read access to what the scheduled reports read.' }
84
- };
85
- var FIX = {
86
- 'provisioning-errors': ['Fix the top cause first: the tile and the "grouped by cause" report collapse hundreds of errors into a few problems.', 'Duplicate or invalid usernames: check the naming attribute in the source’s create account profile.', 'Timeouts or connection errors: check the source and its Virtual Appliance (Tenant > Virtual Appliances).', 'Missing required attribute: check the create account profile and the identity attribute it reads.'],
87
- 'aggregation-failures': ['Open the source (Lookup > Source) to see the error ISC recorded.', 'Common causes: an expired service account password, a changed firewall rule, or the Virtual Appliance being down.', 'After fixing, run the aggregation again from the source in ISC (Admin > Connections > Sources).'],
88
- 'stale-sources': ['Check the source’s aggregation schedule in ISC: it may be off or failing.', 'Sources loaded by file upload are not counted here.'],
89
- 'va-clusters': ['Check that the Virtual Appliance machine is running and can reach SailPoint over the network.', 'The appliance status and its logs are in the ISC admin console under Virtual Appliances; contact SailPoint support if it stays in error.'],
90
- 'workflow-failures': ['Open the workflow’s execution history in ISC to see the step that failed.', 'Common causes: expired credentials in an HTTP step, renamed attributes, or rate limits.'],
91
- 'sources-in-error': ['Connection problems: see failed aggregations above and use Test connection on the source page.', 'No owner: assign one in ISC; owners approve access and review the source.'],
92
- 'identity-errors': ['Read the error message in the detail table: often a transform that fails or a manager that cannot be found.', 'The "Identity attribute mappings" report shows where each attribute comes from; fix the mapping, then refresh the identity in ISC.'],
93
- 'stuck-requests': ['Open the request in ISC: usually waiting for an approver who left (see Lookup > Ownership) or a provisioning error.'],
94
- 'leavers-with-access': ['Check the leaver lifecycle state in the identity profile: its "disable accounts" list must include these sources.', 'Disable the remaining accounts, and check why the lifecycle state change did not reach them.'],
95
- 'campaigns-at-risk': ['Send reminders to the reviewers who are behind (Certifications page), reassign reviews of absent reviewers, or extend the deadline.'],
96
- 'lifecycle-gaps': ['Open Warnings > Missed joiners and Missed leavers for details; a missed joiner usually means a failed or missing provisioning policy, "HR says gone" usually means the lifecycle state is not driven by the HR status.'],
97
- 'slow-removals': ['Open Audit > Provisioning speed to see which source is slow; removals "not done" usually wait on a ticket, a queue or a failed connector.'],
98
- 'access-ending': ['Tell the managers on Warnings > Access ending; if the access is still needed, it must be requested again with a later end date.'],
99
- 'stuck-on-leavers': ['Reassign the certification reviews in the campaign and forward the approvals in ISC (list on Warnings > Waiting on leavers).'],
100
- 'admins-left': ['Remove the user level in ISC under Admin > Identities > the person > User level, then check why the leaver process did not.'],
101
- 'past-end-date': ['Check with HR whether these people left; then fix the HR record or the lifecycle state rules (list on Warnings > End dates).'],
102
- 'uncorrelated-growth': ['A sudden jump usually means a correlation rule stopped matching after an attribute changed, or new service accounts arrived.', 'Check the source’s correlation settings and the "Accounts not linked to any person" report for that source.']
103
- };
104
- function currentHelpKey() {
105
- var p = state.page || 'reports';
106
- if (p === 'partner') return 'partner';
107
- if (p === 'certs') return state.au.tab === 'certs' ? 'certs' : state.au.tab;
108
- if (p === 'monthly') return state.inz.tab;
109
- if (p === 'warnings') return state.wn && state.wn.tab === 'movers' ? 'movers' : 'wn-' + (state.wn ? state.wn.tab : 'ending');
110
- if (p === 'tenant' && state.tn) {
111
- var moved = { workflows: 'build-health', transforms: 'build-impact', cmap: 'build-cmap' }[state.tn.tab];
112
- if (moved) return moved;
113
- }
114
- if (p === 'roles' && state.roleTab === 'mining') return 'mining';
115
- if (p === 'build') return 'build-' + state.bt.tab;
116
- if (p === 'nerm') return 'nerm-' + nmState().tab;
117
- if (p === 'logs') return 'logs-' + lgState().tab;
118
- if (p === 'tenant' && state.tn && state.tn.tab === 'rules') return 'rules';
119
- if (p === 'roles' && state.roleTab === 'impact') return 'build-roles';
120
- if (p === 'lookup') return state.lk.tab === 'ownership' ? 'ownership' : state.lk.tab === 'source' ? 'lookup-source' : 'lookup-person';
121
- return p;
122
- }
123
- function openHelp() {
124
- var h = HELP[currentHelpKey()] || HELP.reports;
125
- var drawer = el('aside', { className: 'drawer', 'aria-label': 'Help' });
126
- drawer.appendChild(el('button', { className: 'btn sm', style: 'margin-bottom:12px', onclick: function () { close(); openFinder(); } }, icon('search'), 'Find any page, tab or report (Ctrl+K)'));
127
- var onKey = function (e) { if (e.key === 'Escape') close(); };
128
- var close = function () { back.remove(); document.removeEventListener('keydown', onKey); if (!$('btn-help').classList.contains('hidden')) $('btn-help').focus(); };
129
- document.addEventListener('keydown', onKey);
130
- var back = el('div', { className: 'drawer-back', onclick: function (e) { if (e.target === back) close(); } }, drawer);
131
- var list = function (title, items) { return items && items.length ? el('div', {}, el('h4', { text: title }), el('ul', {}, items.map(function (x) { return el('li', { text: x }); }))) : null; };
132
- drawer.appendChild(el('div', { className: 'bar', style: 'margin-bottom:6px' }, el('h3', { style: 'margin:0;flex:1', text: h.title }), el('button', { className: 'btn icon ghost', title: 'Close', onclick: close }, icon('x'))));
133
- drawer.appendChild(el('p', { text: h.what }));
134
- drawer.appendChild(list('How to read it', h.read));
135
- drawer.appendChild(list('What you can do', h.act));
136
- drawer.appendChild(el('div', {}, el('h4', { text: 'Permissions' }), el('p', { className: 'muted', text: h.perms })));
137
- var checklist = el('div');
138
- drawer.appendChild(el('div', {}, el('h4', { text: 'Getting started' }), checklist));
139
- renderChecklist(checklist);
140
- drawer.appendChild(el('div', {}, el('h4', { text: 'Getting help' }),
141
- el('p', { className: 'small', text: 'A support file lists versions, settings, schedules, recent errors and log lines, with secrets, names, email addresses, tenant addresses and IDs removed. Read it before you send it to whoever helps you.' }),
142
- el('a', { className: 'btn sm', href: '/api/support/download?k=' + encodeURIComponent(KEY), download: '' }, icon('download'), 'Download a support file')));
143
- var upd = el('div');
144
- drawer.appendChild(upd);
145
- renderUpdates(upd);
146
- drawer.appendChild(el('p', { className: 'muted small', style: 'margin-top:18px', text: 'IdentityScope only reads from ISC. Nothing on these pages changes your tenant (connector diagnostics excepted, which are off unless you turn them on).' }));
147
- document.body.appendChild(back);
148
- var first = drawer.querySelector('button');
149
- if (first) first.focus();
150
- }
151
- function renderUpdates(box, now) {
152
- api('/api/updates' + (now ? '?now=1' : '')).then(function (u) {
153
- box.textContent = '';
154
- if (!u.available) return;
155
- var on = el('input', { type: 'checkbox', checked: u.enabled });
156
- on.addEventListener('change', function () { api('/api/updates', 'PUT', { enabled: on.checked }).then(function () { renderUpdates(box); }); });
157
- var line = u.error ? el('p', { className: 'small error', text: u.error })
158
- : u.latest ? el('p', { className: 'small', text: u.newer ? 'Version ' + u.latest + ' is available (you have ' + u.current + ').' : 'You have the latest version (' + u.current + ').' }, u.newer && u.page ? el('a', { href: u.page, target: '_blank', rel: 'noopener', text: ' Open the release page' }) : null)
159
- : el('p', { className: 'small muted', text: 'You have version ' + u.current + '.' });
160
- box.appendChild(el('div', {}, el('h4', { text: 'New versions' }), line,
161
- el('div', { className: 'bar' }, el('button', { className: 'btn sm', onclick: function () { renderUpdates(box, true); } }, 'Check now'),
162
- el('label', { className: 'inline small' }, on, 'Check when the screen opens')),
163
- el('p', { className: 'muted small', text: 'Checking asks the release page for the latest version number. Nothing about you or your tenant is sent.' })));
164
- }).catch(function () { box.textContent = ''; });
165
- }
166
- function noticeNewVersion() {
167
- api('/api/updates').then(function (u) { if (u.enabled && u.newer) toast('IdentityScope ' + u.latest + ' is available. See Help for the release page.'); }).catch(function () {});
168
- }
169
- function renderChecklist(box) {
170
- box.textContent = '';
171
- box.appendChild(el('div', { className: 'muted small', text: 'Checking...' }));
172
- Promise.all([api('/api/checks').catch(function () { return null; }), api('/api/schedules').catch(function () { return null; })]).then(function (r) {
173
- var checks = r[0], sched = r[1];
174
- var ran = checks && Object.keys(checks.trends || {}).some(function (k) { return (checks.trends[k].points || []).length; });
175
- var limits = checks && checks.checks.some(function (c) { return c.settings && Object.keys(c.settings).length; });
176
- var daily = sched && sched.jobs.some(function (j) { return j.report === '@instant-check'; });
177
- var delivery = sched && (sched.email || sched.jobs.some(function (j) { return j.webhookKind; }));
178
- var items = [
179
- [true, 'Connected to your tenant', null],
180
- [null, 'Run the Health check (top right) once to see what your sign-in can read', function () { $('btn-doctor').click(); }],
181
- [ran, 'Run the instant check', function () { showPage('checks'); }],
182
- [limits, 'Adjust the limits to your tenant (optional)', function () { state.chk.showLimits = true; showPage('checks'); }],
183
- [delivery, 'Set up email or a Teams/Slack webhook', function () { showPage('schedules'); }],
184
- [daily, 'Schedule the instant check daily (builds trends and the monthly report)', function () { state.editing = { isNew: true, report: '@instant-check', params: {} }; showPage('schedules'); }]
185
- ];
186
- box.textContent = '';
187
- box.appendChild(el('div', { className: 'checklist' }, items.map(function (it) {
188
- return el('button', { className: 'cl-item' + (it[0] ? ' done' : ''), onclick: function () { if (it[2]) { document.querySelectorAll('.drawer-back').forEach(function (d) { d.remove(); }); it[2](); } } },
189
- el('span', { className: 'cl-box', text: it[0] ? '✓' : it[0] === null ? '•' : '' }), el('span', { text: it[1] }));
190
- })));
191
- });
192
- }
193
- function fixCard(id) {
194
- var steps = FIX[id];
195
- if (!steps) return null;
196
- return el('div', { className: 'fix' }, el('b', { text: 'How to fix' }), el('ol', {}, steps.map(function (s) { return el('li', { text: s }); })));
197
- }
198
- /** "Today at a glance" for the home page, from the last instant check on this computer. */
199
- function glance(box) {
200
- api('/api/checks').then(function (m) {
201
- var last = null, worst = { bad: 0, warn: 0 };
202
- Object.keys(m.trends || {}).forEach(function (k) {
203
- var tr = m.trends[k], p = tr.points && tr.points[tr.points.length - 1];
204
- if (!p) return;
205
- if (!last || p.at > last) last = p.at;
206
- if (tr.status === 'bad') worst.bad++; else if (tr.status === 'warn') worst.warn++;
207
- });
208
- box.textContent = '';
209
- var level = !last ? 'idle' : worst.bad ? 'bad' : worst.warn ? 'warn' : 'ok';
210
- box.appendChild(el('div', { className: 'banner ' + level, style: 'margin-bottom:18px' },
211
- el('b', { text: !last ? 'Start your day with the instant check' : worst.bad + worst.warn ? (worst.bad ? worst.bad + ' problem' + (worst.bad > 1 ? 's' : '') : '') + (worst.bad && worst.warn ? ', ' : '') + (worst.warn ? worst.warn + ' to look at' : '') : 'All checks OK' }),
212
- el('span', { text: last ? 'Last instant check ' + ago(last) : 'Provisioning, aggregations, VAs, workflows, leavers and more in one click.' }),
213
- el('span', { style: 'flex:1' }),
214
- el('button', { className: 'btn sm', onclick: function () { showPage('checks'); } }, icon('pulse'), last ? 'Open instant check' : 'Run it now')));
215
- }).catch(function () { box.textContent = ''; });
216
- }
217
-
1
+ // ---------- in-app guidance ----------
2
+ var HELP = {
3
+ reports: { title: 'Reports', what: 'Ready-made reports and the ones you build. Pick a report, fill in its options and press Preview (first 500 records, quick) or Run report (everything).', read: ['"Show: Count by" turns any report into a summary: one row per value with how many.', 'Click a column heading to sort; type in "Filter these rows" to search what is shown.', 'Downloads (Excel, CSV, HTML) always contain every row, also when the screen shows only the first part.'], act: ['Customize makes your own copy you can change with drop-downs.', 'New report: pick what a row is (people, accounts, access...), add filters, choose columns, save.', 'Schedule this report sends it by email or Teams on a schedule.'], perms: 'Depends on the data: search needs sp:search:read; accounts, entitlements and sources need their read permissions. The Health check shows what your sign-in can read.' },
4
+ checks: { title: 'Instant check', what: 'Every daily check in one click. Each tile is green (fine), amber (look at it) or red (act now), based on the limits you set.', read: ['"N new" means rows that were not there at the previous check, so you see what changed since yesterday.', 'The small line is the trend: the value of each past check, kept on this computer.', 'Grey "(last time)" tiles show the previous result until you run the checks again.', '"Could not check" usually means the sign-in or token lacks a permission for that check.'], act: ['Click a tile for the rows behind it, how to fix it and a link to the full report.', 'Limits sets when a check turns amber or red, the period it looks at, or switches it off.', 'Schedules > New schedule > "Instant check" with "only when something is new or got worse" gives a quiet daily alert.'], perms: 'Each check needs read access to its data (search, sources, VA clusters, workflows, campaigns, access requests).' },
5
+ 'lookup-person': { title: 'Person lookup', what: 'One person on one page: lifecycle state, manager, every account, all access, the last 30 days of provisioning, access requests and audit events.', read: ['The coloured lines at the top are hints: red needs action (locked account, failed provisioning), amber is worth checking (disabled account, no manager or email).', '"Assigned directly" means the entitlement was given on its own, not through a role or access profile.'], act: ['Use it for "why can’t this person log in" and "why does this person have this access".', 'Open in ISC jumps to the person in the admin console.'], perms: 'Search (identities, account activities, events); access requests need an admin.' },
6
+ 'lookup-source': { title: 'Source lookup', what: 'Every source with its connection status and last aggregation; click one for counts, aggregations, errors, configuration and what depends on it.', read: ['"Last successful aggregation" comes from audit events, so it only reaches back as far as ISC keeps them.', '"Used by" lists the identity profiles that read this source; a failing authoritative source affects every identity in that profile.', 'The configuration hides passwords, secrets, keys and encrypted values.'], act: ['Open in ISC goes to the source’s configuration (Admin > Connections > Sources).', 'Connector diagnostics (test connection, ping VA cluster, peek) are off until you turn them on, and ask before every action.'], perms: 'Sources, accounts and entitlements read; diagnostics need source admin rights.' },
7
+ ownership: { title: 'Ownership', what: 'Who owns every source, role, access profile, entitlement, workflow and identity profile, what has no owner, and what is owned by people who left.', read: ['Owners who left or no longer exist cannot approve requests or review access, so those requests and reviews get stuck.', '"Not found" means the owner identity no longer exists.'], act: ['Hand over the objects listed under "Owned by people who left" (Excel download for the handover).', 'Click an owner to see everything they own before they change jobs.'], perms: 'Read access to sources, roles, access profiles, entitlements, workflows and identity profiles.' },
8
+ tenant: { title: 'Tenant', what: 'The size and health of the setup: counts, Virtual Appliances, workflows, transforms, API credentials and a comparison with another tenant. To try transforms and workflows before changing them, see Build & test.', read: ['A dash in the overview means the sign-in or token cannot read that number.', 'Virtual Appliances: anything not NORMAL is listed first. A VA in error stops aggregation and provisioning for its sources.', 'Transforms "not referenced" are not used by an identity profile or another transform; they may still be used in provisioning policies or rules.', 'API credentials: personal access tokens show their expiry date; API clients have none in ISC. "Owner has left" means the owner is inactive or in a leaver lifecycle state; the token keeps working until someone deletes it.'], act: ['API credentials: renew tokens that expire soon before scripts and schedules stop, and delete tokens of people who left after checking with their team.', 'Compare tenants: connect production with a token (kept in memory only) to see what differs from sandbox before you move changes.'], perms: 'idn:remote-client:read, sp:workflow:read, sp:workflow-execution:read, idn:transform:read. API credentials: sp:all-personal-access-tokens:read (or sp:my-personal-access-tokens:read for your own) and sp:oauth-client:read.' },
9
+ 'build-tlab': { title: 'Transform lab', what: 'Run a transform on this computer and see each step. Nothing is saved to ISC.', read: ['"Only ISC can say" marks custom rules, uniqueness checks and anything else the offline engine cannot know.', 'Assumptions are listed where SailPoint\'s documentation does not say what happens.', 'Try it on real people with an attribute to compare: "different" shows where the result is not what ISC holds now. Check a mapping this way before trusting a result.'], act: ['Save test cases for a transform and run them after every change.'], perms: 'idn:transform:read; on people also sp:search:read, idn:accounts:read and idn:identity-profile:read.' },
10
+ 'build-impact': { title: 'Transform impact', what: 'Where each transform is used: identity profiles, other transforms and provisioning policies, also through chains of transforms, and how many people that covers.', read: ['"Through A → B" means the transform is used inside A, which is used by B.', 'People counts are the identities in the identity profiles that use it.', 'Rules run code IdentityScope cannot read, so anything a rule does is not included.'], act: ['Before changing a transform, try the change in the Transform lab on people of every profile listed.', 'Transforms used by nothing are candidates for clean-up; check rules first.'], perms: 'idn:transform:read, idn:identity-profile:read, idn:sources:read, sp:search:read.' },
11
+ 'build-policy': { title: 'Account create preview', what: 'What a source\'s provisioning policy would produce for one person, worked out on this computer. Nothing is created.', read: ['"Not set here" means the field has no transform in the policy; the value comes from the source, a rule or the connector.', 'Password fields are never worked out or shown. Generators and rules are only known to ISC.', 'A required field that would be empty stops the account from being created.'], act: ['Preview a joiner before their start date to find empty required fields.'], perms: 'idn:sources:read, sp:search:read, idn:accounts:read, idn:transform:read.' },
12
+ 'build-wlab': { title: 'Workflow lab', what: 'Walk a workflow step by step on this computer with a trigger you give it. Nothing is called, so the workflow does not need to be disabled.', read: ['Replay reads the history of real runs (kept 90 days by ISC). "Same path" means the simulator took the branches ISC took.', 'Secrets in steps show as "(hidden)".', 'Loops run their first five items.'], act: ['"Replay with my edits" shows which real runs would take a different path before you publish a change.'], perms: 'sp:workflow:read, sp:workflow-execution:read.' },
13
+ 'build-health': { title: 'Workflow health', what: 'Runs and failures of each workflow per week, and the causes of failed runs grouped.', read: ['Causes come from the history of failed runs; IDs, numbers and names are taken out so the same problem groups together.', 'Runs older than 90 days have no history in ISC.', '"Enabled, never ran" can be normal for rare events; check the trigger if it should have run.'], act: ['A workflow that fails every run usually has an expired credential: see the Credential map.'], perms: 'sp:workflow:read, sp:workflow-execution:read.' },
14
+ 'build-roles': { title: 'Role change preview', what: 'Who would gain or lose a role if its membership criteria changed.', read: ['"Keeps it" are people who hold the role another way (request or assignment).'], act: ['Try the criteria here before saving them in ISC.'], perms: 'idn:role-unchecked:read, sp:search:read; account conditions also idn:accounts:read.' },
15
+ 'build-drift': { title: 'Drift check', what: 'Compare the configuration now with an approved baseline: what was added, removed or changed since.', read: ['The baseline is a copy of a change-history snapshot, kept on this computer, so later snapshots cannot change it.', 'IDs, timestamps and secrets are not compared.'], act: ['Approve a baseline after each release to production, and check for drift before the next one.'], perms: 'The scopes of the Tenant page plus idn:sources:read, idn:identity-profile:read, idn:role-unchecked:read and sp:search:read.' },
16
+ 'build-cmap': { title: 'Credential map', what: 'Every client ID, user and endpoint used in workflows and source connections.', read: ['Secret values are never read; "typed in" only means the field is filled in.', 'HTTP Request steps before version 3 cannot use Parameter Storage.'], act: ['When a secret is rotated in an application, update each place listed (or once in Parameter Storage).'], perms: 'sp:workflow:read, idn:sources:read.' },
17
+ partner: { title: 'All tenants (partner overview)', what: 'The instant check of every tenant you look after, side by side: sandbox, QA and production of one company, or each customer of a partner.', read: ['Each row is one tenant; each column one check. Green is OK, amber needs a look, red is a problem, grey could not be checked.', '"new" marks a check that is new or worse since that tenant\'s previous check.', 'Rows with problems come first. Click a number for the cause and how to fix it; Open switches to that tenant with all pages.'], act: ['Schedule "All tenants" daily (Schedules page) to get one summary by email or Teams, only when something is new or worse.', 'Use a read-only token for each tenant: the overview never changes anything, but a read-only identity keeps it that way by design.'], perms: 'Per tenant: the read scopes the instant check uses (search, sources, account activities, events, clusters, workflows, campaigns, access request status).' },
18
+ sod: { title: 'Separation of duties', what: 'Rules for access one person should not hold together, and everyone who breaks them.', read: ['A person breaks a rule when they hold any item of side A and any item of side B, however they got it (role, access profile, request).', 'Write items as ISC shows them; add the source in brackets to be exact, e.g. "Domain Admins (Active Directory)". Case is ignored.', 'Some ISC editions have their own SOD policies; these rules work without them and stay on this computer.'], act: ['Remove one side, or record an approved exception (mitigating control) for the auditors.', 'The Evidence pack can include the violations list.'], perms: 'Search on identities (sp:search:read).' },
19
+ changes: { title: 'Change history', what: 'What changed in the configuration between two days: sources, transforms, identity profiles, roles, access profiles and workflows.', read: ['Drift from an approved baseline: approve the snapshot of a release, then "Check for drift now" lists what was added, removed or changed since. The baseline is a copy kept on this computer.', 'Added and Removed are by name; a renamed object shows as one removed and one added.', 'Snapshots hide secrets and ignore IDs and timestamps, so only real setting changes show.', 'Snapshots are kept on this computer (the "changes" folder), one per day, at most 400 days.'], act: ['Schedule the instant check daily: it saves a snapshot every day by itself.', 'Use it after "something broke yesterday": compare yesterday with today.'], perms: 'Read on sources, transforms, identity profiles, workflows; search on roles and access profiles.' },
20
+ evidence: { title: 'Evidence pack', what: 'One zip with the reports auditors ask for, a README and SHA-256 fingerprints of every file.', read: ['README.txt says which tenant, when, by whom and with which version it was produced.', 'SHA256SUMS.txt lets an auditor check that no file was changed afterwards (sha256sum -c SHA256SUMS.txt).', 'A part the sign-in cannot read is listed as NOT INCLUDED, with the reason.'], act: ['Build it at the start of the audit and hand the zip over as is.', 'Keep a copy: rebuilding later gives today’s data, not the data of that day.'], perms: 'Whatever each part reads: search, sources, campaigns and certifications, access requests.' },
21
+ reclaim: { title: 'License reclaim', what: 'Enabled accounts of people who left, and accounts nobody signed in with for a long time, with what they cost.', read: ['Authoritative sources (HR) and disabled accounts are skipped.', 'Dormant accounts need a sign-in date attribute per source; without one only leavers are listed.', 'Savings are an estimate: accounts times the monthly cost you entered.'], act: ['Download the list and agree with the application owners which accounts to disable or delete in ISC.', 'Check service and shared accounts before removing them.'], perms: 'Search on identities, accounts and sources read.' },
22
+ requests: { title: 'Access requests', what: 'How fast access requests are approved and fulfilled, who approves slowly, and what is requested and rejected most.', read: ['"Typical" is the median: half of the requests were faster.', 'Waiting now counts approvals that are still open, per approver.', 'A high reject rate on an item often means it is requestable by the wrong people or badly described.'], act: ['Remind or replace slow approvers; add a backup approver.', 'Make often-approved items part of a role so nobody has to request them.'], perms: 'Access request status read; an admin sees everyone’s requests.' },
23
+ mining: { title: 'Find candidate roles', what: 'Entitlements most people with the same attribute value (for example the same department) already hold: candidates for a birthright role.', read: ['"Held by" shows how many people of the group hold the item.', '"Already in a role" means an existing role gives it, directly or through an access profile.'], act: ['Try the candidate in "Preview a role change" with the attribute as criteria, then create the role in ISC.'], perms: 'Search on identities, roles and access profiles.' },
24
+ certs: { title: 'Certifications', what: 'Campaign progress, every reviewer’s progress and decisions, and reviews that may be rubber-stamped.', read: ['At risk: due within 7 days and under 80% complete. Overdue: past the deadline and not complete.', 'Approve % close to 100 on large reviews, or a sign-off minutes after the review opened, are signals worth a conversation, not proof.', 'A high share of revokes is usually healthy: reviewers are actually removing access.'], act: ['Download the reviewer list and send reminders to the reviewers who are behind.', 'Reassign reviews of reviewers who are absent, or extend the deadline in ISC.'], perms: 'A certification admin’s sign-in or token sees every reviewer; others may see only their own reviews.' },
25
+ roles: { title: 'Role tools', what: 'Compare roles side by side, and preview who would gain or lose a role before you change its membership criteria in ISC.', read: ['The preview evaluates the criteria like ISC does, ignoring upper and lower case in values.', '"Each condition on its own" shows how many people match each condition, how many have the attribute at all, and its most common values: the quickest way to spot a typo.', 'Only attributes that are searchable in ISC can be checked.', '"Keeps it (other way)" are people who hold the role by request or assignment, not by the criteria.'], act: ['Show JSON gives the criteria in the format of the ISC role API.', 'Download the list of people affected for the change approval.'], perms: 'Role read (idn:role-unchecked:read or idn:role-checked:read) and search.' },
26
+ coverage: { title: 'Review coverage', what: 'Which sources and privileged entitlements a certification campaign reviewed in the period, and which none did.', read: ['A source counts as reviewed when at least one review item named it.', 'Privileged entitlements are matched by ID, or by name and source.'], act: ['Add the sources and privileged entitlements that were not reviewed to your next campaign.', 'Download the list as evidence that coverage was checked.'], perms: 'idn:campaign:read, idn:sources:read, sp:search:read.' },
27
+ outliers: { title: 'Access outliers', what: 'Active people with far more access items than the median of their group (department by default).', read: ['Groups need at least 5 people; the difference must be at least 10 items.', 'Admins and long-serving staff often have more access; an outlier is a place to start, not a finding.'], act: ['Review the top outliers with their managers first.', 'Compare by job title or another attribute if department is too broad.'], perms: 'sp:search:read on identities.' },
28
+ speed: { title: 'Provisioning speed', what: 'How long account changes take per source, and access removals (disable, delete) that took longer than your limit or are still not done.', read: ['Time runs from when ISC started the change to its last update.', 'For connectors that work through tickets or queues, waiting time is included.'], act: ['Follow up removals "not done" first: someone who left may still have access.', 'Use the 90% figure per source to agree a realistic target with application owners.'], perms: 'sp:search:read on account activity.' },
29
+ 'wn-quality': { title: 'Identity data', what: 'Active people without a manager, an email or an attribute you choose, and emails used by more than one person.', read: ['People who left are not checked.', 'Shared emails often mean duplicate identities, test accounts or a mapping problem.'], act: ['Fix the data in the HR source; ISC takes it from there.', 'Missing managers first: approvals and manager certifications depend on them.'], perms: 'sp:search:read on identities.' },
30
+ 'wn-joiners': { title: 'Missed joiners', what: 'Active people missing an account on a source that nearly everyone in their identity profile has (a birthright account), and people past their start date still in a pre-hire lifecycle state.', read: ['Birthright sources are worked out per identity profile; nothing needs setting up.', 'People created within the grace period are not flagged yet.'], act: ['Check the provisioning policy and the account activity for the person; a failed create often explains it.', 'Fix the lifecycle state or the start date for people stuck in pre-hire.'], perms: 'sp:search:read on identities.' },
31
+ 'wn-leavers': { title: 'Missed leavers', what: 'People whose account on their own authoritative (HR) source is disabled while ISC treats them as active, and leavers who still have enabled accounts, roles or access profiles.', read: ['Accounts on the HR source and on ISC itself are not counted for leavers.', 'People active after their end date are on the End dates tab.'], act: ['For "HR says gone", check the lifecycle state rules: they should follow the HR status.', 'Disable or remove what leavers still have, starting with privileged accounts.'], perms: 'sp:search:read on identities.' },
32
+ movers: { title: 'Mover leftovers', what: 'Access that almost nobody else in the person\u2019s group (department by default) has.', read: ['Often left over from a previous job, or granted as a one-off.', 'Groups need at least 10 people.'], act: ['Ask the manager whether the person still needs it; remove what is left from a previous job.'], perms: 'sp:search:read on identities.' },
33
+ adminaccts: { title: 'Admin accounts', what: 'Accounts named like admin, svc, test or shared that are linked to a person.', read: ['A word matches only as a separate part of the account name.', 'You can change the words.'], act: ['Give service accounts an owner instead of linking them to a person; remove test accounts; keep admin accounts separate and reviewed.'], perms: 'sp:search:read on identities.' },
34
+ exceptions: { title: 'Exceptions', what: 'Findings someone accepted, with a reason, who accepted it and an end date.', read: ['In force: left out of the instant check until the end date.', 'Expired: shown again; decide again or fix it.'], act: ['Accept from the details of an instant check tile; end an exception here when the reason no longer holds.', 'Include the register in the evidence pack.'], perms: 'None: kept on this computer.' },
35
+ 'wn-massch': { title: 'Mass changes', what: 'Provisioning per day, with a spike flagged when today or yesterday is far above the usual day.', read: ['Usual = the median day of the period before.', 'A spike lists the sources behind it.'], act: ['Check the last HR file, transform or role change before the next aggregation; pause the source if needed.'], perms: 'sp:search:read on account activities.' },
36
+ 'wn-loops': { title: 'Provisioning loops', what: 'The same change for the same person and source sent many times.', read: ['Often an attribute sync whose value the connector changes back, or a request ISC keeps re-sending.'], act: ['Fix the transform or the connector mapping; remove the stale assignment.'], perms: 'sp:search:read on account activities.' },
37
+ 'wn-outside': { title: 'Changed outside ISC', what: 'Account states that ISC did not cause: disabled without an ISC disable, or enabled again after ISC disabled them.', read: ['Account state is from the last aggregation.', 'By default every disable and enable ISC still has on record is checked, not only recent ones.', 'The last column shows the last disable or enable ISC itself sent to the account.'], act: ['Ask the application team who changed it; turn on native change detection where the source supports it.'], perms: 'Read access to accounts and account activities.' },
38
+ 'wn-syncdrift': { title: 'Attribute sync drift', what: 'Attributes ISC syncs to a source whose value on the account differs from ISC, plus failed syncs.', read: ['Only active people and enabled accounts are compared.', 'Manager is compared by display name.'], act: ['Run an attribute sync for the person, or fix the target attribute mapping.'], perms: 'idn:attr-sync-source-config:read (ORG_ADMIN or HELPDESK) and read access to accounts.' },
39
+ 'wn-groupappr': { title: 'Group approvals', what: 'Pending approvals assigned to a governance group, with how many members are still active.', read: ['"Nobody can approve" means every member has left.'], act: ['Add active members to the group or forward the approval.'], perms: 'An org admin token; idn:workgroup:read.' },
40
+ 'wn-mgrleft': { title: 'Manager left', what: 'Active people whose manager has left or is not in ISC.', read: ['Narrow to contractors with a search query.'], act: ['Fix the manager in the HR or NERM source.'], perms: 'sp:search:read on identities.' },
41
+ leavertimes: { title: 'Leaver removal times', what: 'Per leaver: when leaving started and how long each account took to be disabled.', read: ['Start is the lifecycle state change event when ISC has one, otherwise the first disable ISC sent.', 'Accounts on the authoritative source are left out.'], act: ['Fix slow sources first; give auditors the download.'], perms: 'sp:search:read on identities, events and account activities.' },
42
+ attrhist: { title: 'Attribute changes', what: 'Changes of the attributes you follow, between looks by IdentityScope.', read: ['The first look records values only.', 'Kept on this computer, owner-only.'], act: ['Schedule a look every day for a running history.'], perms: 'sp:search:read on identities.' },
43
+ owners: { title: 'Entitlement owners', what: 'Each entitlement owner with what they own and how many people hold it.', read: ['Owners who left come first.', 'Holders are counted for up to 3,000 entitlements.'], act: ['Give each owner their filtered download; replace owners who left.'], perms: 'Read access to entitlements; sp:search:read on identities.' },
44
+ rules: { title: 'Rule usage', what: 'Every connector and cloud rule and where it is used.', read: ['Cloud rules can only be listed with the opt-in SP-Config export.', 'Rules called from other rules or workflows are not seen.'], act: ['Remove unused rules after a check; deploy missing ones before they are called.'], perms: 'Read access to sources, transforms, identity profiles and connector rules; sp:config:read for the export.' },
45
+ 'nerm-overview': { title: 'End dates and sponsors', what: 'Active non-employees past or near their end date, and sponsor problems.', read: ['The end date comes from a date attribute with end, expiry or termination in its name, unless you name one.', 'Sponsors are owner attributes, matched to ISC by email.'], act: ['Ask sponsors to renew or end the engagement; give profiles without a sponsor a new one.'], perms: 'A NERM scope on the API token (nerm:api:read-only), plus sp:search:read in ISC.' },
46
+ 'nerm-sync': { title: 'NERM vs ISC', what: 'Profiles whose NERM status and ISC identity state differ.', read: ['Matched through the accounts on the NERM source in ISC.', 'Only profile types marked as synced to ISC are compared.'], act: ['Aggregate the NERM source, then check the identity profile and lifecycle states.'], perms: 'nerm:api:read-only, and read access to accounts in ISC.' },
47
+ 'nerm-sessions': { title: 'Waiting workflows', what: 'NERM workflow sessions still waiting on a step.', read: ['Age shows only when NERM returns the start date.'], act: ['Follow up with the approver or reviewer in NERM.'], perms: 'nerm:api:read-only (or workflow-operator).' },
48
+ 'nerm-risk': { title: 'High risk', what: 'Profiles at the highest NERM risk level.', read: ['Risk levels and scores come from NERM.'], act: ['Review these first in certifications and end dates.'], perms: 'nerm:api:read-only.' },
49
+ 'nerm-users': { title: 'Portal users who left', what: 'NERM users who can still sign in although their ISC identity has left.', read: ['Users not linked to an ISC identity are counted in a note.'], act: ['Disable the user in NERM.'], perms: 'nerm:api:read-only, plus sp:search:read in ISC.' },
50
+ outmodel: { title: 'Outside roles', what: 'Entitlements active people hold directly instead of through a role or access profile.', read: ['Directly = by request, by an admin, or found on the source by aggregation.', '"Never given by a role" entitlements are not in any role or access profile that someone has.'], act: ['Put common direct access into a role or access profile; review privileged direct access first.'], perms: 'sp:search:read on identities.' },
51
+ composition: { title: 'What is in every role', what: 'One row per role, access profile and entitlement.', read: ['Entitlements put straight into a role have no access profile.', 'Empty roles grant nothing.'], act: ['Give the download to role owners for review; remove or fill empty roles.'], perms: 'idn:role-unchecked:read and idn:access-profile:read.' },
52
+ reassigned: { title: 'Reassigned reviews', what: 'Certifications passed on to another reviewer.', read: ['Shows who passed it on, the reason given, and whether the new reviewer is still active.'], act: ['Ask for a reason where none was given; reassign reviews that sit with someone who left.'], perms: 'A certification admin token (idn:campaign:read).' },
53
+ 'wn-aggsafe': { title: 'Aggregation safety', what: 'Per source: the delete threshold, how many account aggregations ran and failed, and sources that did not aggregate.', read: ['A high delete threshold lets one broken read remove most accounts.', 'Sources fed by file upload aggregate only when a file is loaded.'], act: ['Lower thresholds of 50% or more; fix sources whose aggregations keep failing.'], perms: 'Read access to sources; sp:search:read on events.' },
54
+ 'wn-svc': { title: 'Service accounts', what: 'Service and machine accounts with no owner, an owner who left, or no recent use.', read: ['Owners and last-used dates come from Machine Identity Security when the tenant has it.'], act: ['Give every enabled account an owner; disable the unused ones after checking.'], perms: 'idn:mis-account:read, or read access to accounts.' },
55
+ 'wn-multi': { title: 'Several accounts', what: 'People with more than one account on the same source.', read: ['On the authoritative source it usually means a duplicate HR record or a rehire.'], act: ['Fix the correlation or merge the HR records.'], perms: 'sp:search:read on identities.' },
56
+ 'wn-pwfail': { title: 'Password failures', what: 'Password changes, resets and syncs that failed.', read: ['From audit events of type password activity.'], act: ['Fix the source connection or password policy mismatch; ask the person to change the password again.'], perms: 'sp:search:read on events.' },
57
+ 'wn-lcset': { title: 'Lifecycle settings', what: 'What each lifecycle state of each identity profile does to accounts and access.', read: ['A leaver state is one where ISC marks people inactive, or whose name says so.', 'Findings: leaver states that turn nothing off, or leave some sources on; states switched off that still hold people.'], act: ['Add the missing sources to the state’s account settings in the identity profile, or confirm a workflow handles them.'], perms: 'idn:identity-profile:read, idn:identity-profile-lifecycle-state:read and idn:sources:read.' },
58
+ 'wn-govgroups': { title: 'Governance groups', what: 'Every governance group with its owner, members and where it is used.', read: ['A group with no active member cannot approve or review anything sent to it.'], act: ['Add active members, replace owners who left, delete groups that are not used.'], perms: 'idn:workgroup:read; sp:search:read on identities.' },
59
+ 'logs-ccg': { title: 'Connector log (ccg.log)', what: 'Reads the connector log of a Virtual Appliance from a copy on this computer and shows the errors and warnings grouped and counted, per source, with the full error detail.', read: ['ISC has no API for this file: copy it from the appliance (/home/sailpoint/log/ccg.log) or point to a folder where it is dropped.', 'Repeats are one row with a count; IDs, numbers and names are ignored when grouping.', 'Times are as written in the log (UTC).', 'Values that look like passwords, tokens or keys are hidden.'], act: ['Open the detail of the most frequent error for the source that fails; the first line of the error detail usually names the cause (timeout, permission, certificate, bad attribute).', 'Compare the time with “What ISC recorded”.'], perms: 'None in ISC. The file must be readable on this computer.' },
60
+ 'logs-isc': { title: 'What ISC recorded', what: 'One timeline of aggregations, source changes and provisioning errors per source, and the state of the Virtual Appliances now.', read: ['This is ISC’s summary of each error, not the full connector log.', 'Event names and statuses are shown as ISC wrote them.'], act: ['A source failing while its cluster is not NORMAL: fix the appliance first.', 'For the detail behind an error of a Virtual Appliance source, read its ccg.log in the other tab.'], perms: 'sp:search:read on events and account activities; idn:sources:read; idn:remote-client:read for the appliances.' },
61
+ 'wn-privgain': { title: 'Privileged access gained', what: 'Privileged entitlements a person holds now and did not hold at the previous look, each checked against what ISC itself provisioned in between.', read: ['The first run only remembers who holds what; findings appear from the second run.', '“No ISC record” means the access appeared at aggregation without ISC provisioning it: granted on the application, or arrived with a new account.', 'Kept on this computer: identity and entitlement IDs, and the findings of the last 90 days.'], act: ['Ask the application owner who granted it; remove it or put it through a request so it is approved and reviewed.'], perms: 'sp:search:read on identities and account activities.' },
62
+ 'wn-outacct': { title: 'Accounts created outside ISC', what: 'Accounts that appeared in the period and that ISC marks as aggregated, not provisioned, on sources that are not authoritative.', read: ['A source where most accounts are new was probably just connected; its accounts are listed last.', 'Accounts without an origin in ISC are left out and counted in a note.'], act: ['An account nobody owns that already has access: find who created it on the application, then correlate or remove it.'], perms: 'idn:accounts:read, idn:sources:read; sp:search:read for the owners.' },
63
+ 'wn-sensitive': { title: 'Sensitive changes', what: 'What changed in the configuration that touches a control, compared with an earlier snapshot on this computer, plus API clients and tokens created since.', read: ['Needs two snapshots: the first run takes one; schedule a daily snapshot for a steady record.', '“Who” is the last person ISC’s audit log names for an object of the same name; it can be empty.', 'High: rules, lifecycle states, password and SOD policies, event subscriptions, anything removed, and source safety settings.'], act: ['Confirm each change was planned and approved; revert what was not.'], perms: 'The reads of Change history; sp:search:read for who; an org admin token for API credentials.' },
64
+ 'wn-risk': { title: 'Risk by person', what: 'The signals of the threat screens added up per person.', read: ['People on more than one screen come first.', 'The score only orders the list.', 'Matched by display name: two people with the same name count as one.'], act: ['Start with the people on several screens; open the screen named in each signal for the detail.'], perms: 'Those of the threat screens; a screen this sign-in cannot read is left out and named.' },
65
+ 'wn-upcoming': { title: 'Coming up', what: 'People whose start or end date falls in the next days, the lifecycle state they are in now, and what the states of their identity profile do.', read: ['ISC decides the state from the profile’s mapping; this page does not predict it.', '“To check” lists what could go wrong on the day: no manager, no leaver state, a leaver state that leaves accounts on.'], act: ['Fix the lifecycle state or the manager before the date; for starters, check the birthright accounts exist.'], perms: 'sp:search:read on identities; idn:identity-profile:read, idn:identity-profile-lifecycle-state:read and idn:sources:read for the states.' },
66
+ 'wn-stuckreq': { title: 'Stuck requests', what: 'Access requests still running after the limit, the phase each is in and on whom it waits, with the sources ISC keeps re-sending the same change to.', read: ['ISC shows a request as pending until its last phase ends, even after it was approved.', 'A churning source fills the queue that requests wait in.'], act: ['Waiting for an approver: remind or reassign in ISC. Waiting in provisioning: check the source, its Virtual Appliance and Warnings > Provisioning loops.'], perms: 'An org admin token for all requests; sp:search:read on account activities.' },
67
+ 'wn-signins': { title: 'Sign-in signals', what: 'Sign-ins to ISC that deserve a look: many failures for one person, a success right after a run of failures, sign-ins by people who have left, and one network address trying many people.', read: ['From ISC audit events of type AUTH. Sign-ins handled by a separate identity provider are recorded there, not here.', 'The address table appears only if the events carry a network address.'], act: ['Check with the person; reset the password and sign-in method if they did not do it; disable identities that left.'], perms: 'sp:search:read on events and identities.' },
68
+ 'wn-selfappr': { title: 'Self-approvals', what: 'Access requests approved by the person who gets the access, or by whoever requested it for someone else.', read: ['Approvals by a governance group are not attributed to a member.'], act: ['Change the approval settings so the owner or manager step cannot be the requester; review what was granted.'], perms: 'An org admin token (idn:access-request-status:read).' },
69
+ 'wn-adminact': { title: 'Admin activity', what: 'Changes to tenant settings, sources, users and access items, by who made them.', read: ['Changes ISC made itself are left out.', '"Not a person in ISC" is an API client, a token or a deleted identity.', 'Event names are shown as ISC wrote them.'], act: ['Confirm each change was planned; remove admin rights and tokens of people who left.'], perms: 'sp:search:read on events and identities.' },
70
+ 'wn-spikes': { title: 'Access spikes', what: 'People who were given many access items in one day.', read: ['New joiners and role changes do this legitimately.'], act: ['Check who requested it and whether the person changed job; review what was added.'], perms: 'sp:search:read on account activities and identities.' },
71
+ trail: { title: 'Request trail', what: 'Every access request in the period with each approval step: who decided, approved or rejected, their comment and when, and how the request ended.', read: ['"Was" shows the original approver when a step was forwarded or reassigned.', 'A request with no approval step was auto-approved or needed no approval.', '“How fast approvers decide” times each step from the step before it (or from submission) to the decision.', 'The download has one row per approval step.'], act: ['Give the download to auditors as approval evidence.', 'Requests that failed after approval: check the error on the request and the source.'], perms: 'An org admin token (idn:access-request-status:read); other users only see their own requests.' },
72
+ chain: { title: 'Approver chain', what: 'For every access profile, role and requestable entitlement: who approves a request, in what order, and who approves a revoke.', read: ['Steps are in approval order; "Manager of the person" is the manager of whoever the access is for.', 'Problems: no approval at all, an owner step with no owner, a governance group that is empty or deleted.', 'At most 300 requestable entitlements are read (one call each).'], act: ['Add an owner, fix the governance group, or add an approval step in the access item settings in ISC.'], perms: 'Read access to access profiles, roles, entitlements, sources and governance groups.' },
73
+ 'wn-expiry': { title: 'Accounts expiring', what: 'Accounts whose expiry attribute is within the period, and accounts that expired but ISC still shows as enabled.', read: ['Read: never (in words, 0, -1, the AD maximum), FILETIME, Unix seconds or milliseconds, LDAP time, ISO dates, MM/dd/yyyy and dd/MM/yyyy with or without a time, and month names.', 'Day-first dates are detected per source (a value like 31/12/2026 anywhere).', 'The attribute must be in the source account schema and aggregated.'], act: ['Ask the manager whether the account should be extended; for expired but enabled accounts, check the leaver process.'], perms: 'Read access to accounts on the chosen sources.' },
74
+ 'wn-revokes': { title: 'Revokes not done', what: 'Items a reviewer revoked in a certification that the person still holds.', read: ['ISC removes revoked access only after sign-off, so unsigned certifications show "waiting for sign-off".', '"Still held" after sign-off: the removal failed, is still running, or the item also comes from a role, access profile or another assignment.'], act: ['Look at the account activity for the person (Person lookup), fix the source or connector, and remove the item again.'], perms: 'A certification admin token sees every campaign; others only see their own reviews.' },
75
+ 'wn-ending': { title: 'Access ending', what: 'Access granted through a request with an end date. ISC removes it on that date without asking anyone.', read: ['Grouped by manager so you can tell each manager what their people will lose.', 'Comes from completed access requests that had an end date.'], act: ['If the access is still needed, the person requests it again with a later end date before it ends.'], perms: 'idn:access-request-status:read (an admin sees everyone’s requests); search on identities for managers.' },
76
+ 'wn-stuck': { title: 'Waiting on leavers', what: 'Open certification reviews and pending access approvals assigned to someone who left or is no longer in ISC.', read: ['"Has left" means inactive or in a leaver lifecycle state.', 'Approvals assigned to a governance group are not listed; a group has other members.'], act: ['Reassign the reviews in the campaign and forward the approvals in ISC.', 'Hand over objects owned by people who left on Lookup > Ownership.'], perms: 'idn:campaign:read, idn:access-request-status:read, search on identities.' },
77
+ 'wn-reminders': { title: 'Review deadlines', what: 'Open certifications due within the period you choose, grouped by reviewer.', read: ['Decisions left is decisions total minus decisions made.', 'Reviewers who left are not in the copied emails.'], act: ['Copy the emails or open an email draft with the reviewers in BCC.', 'Reassign reviews of reviewers who are away.'], perms: 'idn:campaign:read; search on identities.' },
78
+ 'wn-people': { title: 'End dates', what: 'Active people whose end date is coming up, and people still active after their end date.', read: ['Uses the identity attribute you set as the end date; contractors often have one.', 'Saving the attribute turns on the "Active after end date" tile in the instant check.'], act: ['Check with HR whether the person really left, then fix the HR record or the lifecycle state.'], perms: 'sp:search:read on identities.' },
79
+ 'wn-admins': { title: 'ISC admins', what: 'Everyone with a user level in ISC itself (Org admin, Source admin, Help desk and others), found as "IdentityNow" source entitlements.', read: ['"New" means not there at the previous look on this computer.', 'Last sign-in is not shown.'], act: ['Remove user levels of people who left first, then review whether each Org admin still needs it.', 'Download the list as evidence for your yearly admin review.'], perms: 'sp:search:read on identities.' },
80
+ 'wn-catalog': { title: 'Access catalog', what: 'Requestable entitlements, access profiles and roles without a description or owner, or whose owner left.', read: ['The score is the share of requestable items with a description and an active owner.', 'Sources with the lowest score come first.'], act: ['Ask application owners to write one plain sentence per item, starting with the lowest-scoring sources.', 'Give every requestable item an owner so approvals have someone to go to.'], perms: 'sp:search:read on entitlements, access profiles and roles.' },
81
+ 'wn-growth': { title: 'Identity count', what: 'How many identities you have, how many are new each month, and when you reach your licensed number.', read: ['Until four weeks of counts are kept on this computer, the pace counts new identities only, so it is an upper estimate.', 'Scheduled instant checks keep one count per day.'], act: ['Enter your licensed number and check which identities your contract counts.', 'Plan the renewal before you reach it.'], perms: 'sp:search:read on identities.' },
82
+ monthly: { title: 'Monthly report', what: 'How every daily check moved during a month, with highlights and the tenant’s size, for management.', read: ['Each day counts once: the last check of that day.', 'Lower is better for every check; green change is an improvement.'], act: ['Download it and open it in a browser, then print to PDF to send.', 'Schedule the instant check daily so every month has data.'], perms: 'None beyond the checks themselves; built from this computer’s history.' },
83
+ schedules: { title: 'Schedules', what: 'Send reports or the instant check by email or Teams/Slack automatically, using Windows Task Scheduler.', read: ['Email goes only to addresses of active identities in ISC (shared mailboxes can be allowed one by one).', 'Chat messages carry counts and check results only, never names.'], act: ['"Only when something is new or got worse" keeps alerts quiet on good days.', 'Automatic runs need "Remember my tenant" with a token of a read-only reporting identity, because sign-ins expire.'], perms: 'The saved token needs read access to what the scheduled reports read.' }
84
+ };
85
+ var FIX = {
86
+ 'provisioning-errors': ['Fix the top cause first: the tile and the "grouped by cause" report collapse hundreds of errors into a few problems.', 'Duplicate or invalid usernames: check the naming attribute in the source’s create account profile.', 'Timeouts or connection errors: check the source and its Virtual Appliance (Tenant > Virtual Appliances).', 'Missing required attribute: check the create account profile and the identity attribute it reads.'],
87
+ 'aggregation-failures': ['Open the source (Lookup > Source) to see the error ISC recorded.', 'Common causes: an expired service account password, a changed firewall rule, or the Virtual Appliance being down.', 'After fixing, run the aggregation again from the source in ISC (Admin > Connections > Sources).'],
88
+ 'stale-sources': ['Check the source’s aggregation schedule in ISC: it may be off or failing.', 'Sources loaded by file upload are not counted here.'],
89
+ 'va-clusters': ['Check that the Virtual Appliance machine is running and can reach SailPoint over the network.', 'The appliance status and its logs are in the ISC admin console under Virtual Appliances; contact SailPoint support if it stays in error.'],
90
+ 'workflow-failures': ['Open the workflow’s execution history in ISC to see the step that failed.', 'Common causes: expired credentials in an HTTP step, renamed attributes, or rate limits.'],
91
+ 'sources-in-error': ['Connection problems: see failed aggregations above and use Test connection on the source page.', 'No owner: assign one in ISC; owners approve access and review the source.'],
92
+ 'identity-errors': ['Read the error message in the detail table: often a transform that fails or a manager that cannot be found.', 'The "Identity attribute mappings" report shows where each attribute comes from; fix the mapping, then refresh the identity in ISC.'],
93
+ 'stuck-requests': ['Open the request in ISC: usually waiting for an approver who left (see Lookup > Ownership) or a provisioning error.'],
94
+ 'leavers-with-access': ['Check the leaver lifecycle state in the identity profile: its "disable accounts" list must include these sources.', 'Disable the remaining accounts, and check why the lifecycle state change did not reach them.'],
95
+ 'campaigns-at-risk': ['Send reminders to the reviewers who are behind (Certifications page), reassign reviews of absent reviewers, or extend the deadline.'],
96
+ 'lifecycle-gaps': ['Open Warnings > Missed joiners and Missed leavers for details; a missed joiner usually means a failed or missing provisioning policy, "HR says gone" usually means the lifecycle state is not driven by the HR status.'],
97
+ 'slow-removals': ['Open Audit > Provisioning speed to see which source is slow; removals "not done" usually wait on a ticket, a queue or a failed connector.'],
98
+ 'access-ending': ['Tell the managers on Warnings > Access ending; if the access is still needed, it must be requested again with a later end date.'],
99
+ 'stuck-on-leavers': ['Reassign the certification reviews in the campaign and forward the approvals in ISC (list on Warnings > Waiting on leavers).'],
100
+ 'admins-left': ['Remove the user level in ISC under Admin > Identities > the person > User level, then check why the leaver process did not.'],
101
+ 'past-end-date': ['Check with HR whether these people left; then fix the HR record or the lifecycle state rules (list on Warnings > End dates).'],
102
+ 'uncorrelated-growth': ['A sudden jump usually means a correlation rule stopped matching after an attribute changed, or new service accounts arrived.', 'Check the source’s correlation settings and the "Accounts not linked to any person" report for that source.']
103
+ };
104
+ function currentHelpKey() {
105
+ var p = state.page || 'reports';
106
+ if (p === 'partner') return 'partner';
107
+ if (p === 'certs') return state.au.tab === 'certs' ? 'certs' : state.au.tab;
108
+ if (p === 'monthly') return state.inz.tab;
109
+ if (p === 'warnings') return state.wn && state.wn.tab === 'movers' ? 'movers' : 'wn-' + (state.wn ? state.wn.tab : 'ending');
110
+ if (p === 'tenant' && state.tn) {
111
+ var moved = { workflows: 'build-health', transforms: 'build-impact', cmap: 'build-cmap' }[state.tn.tab];
112
+ if (moved) return moved;
113
+ }
114
+ if (p === 'roles' && state.roleTab === 'mining') return 'mining';
115
+ if (p === 'build') return 'build-' + state.bt.tab;
116
+ if (p === 'nerm') return 'nerm-' + nmState().tab;
117
+ if (p === 'logs') return 'logs-' + lgState().tab;
118
+ if (p === 'tenant' && state.tn && state.tn.tab === 'rules') return 'rules';
119
+ if (p === 'roles' && state.roleTab === 'impact') return 'build-roles';
120
+ if (p === 'lookup') return state.lk.tab === 'ownership' ? 'ownership' : state.lk.tab === 'source' ? 'lookup-source' : 'lookup-person';
121
+ return p;
122
+ }
123
+ function openHelp() {
124
+ var h = HELP[currentHelpKey()] || HELP.reports;
125
+ var drawer = el('aside', { className: 'drawer', 'aria-label': 'Help' });
126
+ drawer.appendChild(el('button', { className: 'btn sm', style: 'margin-bottom:12px', onclick: function () { close(); openFinder(); } }, icon('search'), 'Find any page, tab or report (Ctrl+K)'));
127
+ var onKey = function (e) { if (e.key === 'Escape') close(); };
128
+ var close = function () { back.remove(); document.removeEventListener('keydown', onKey); if (!$('btn-help').classList.contains('hidden')) $('btn-help').focus(); };
129
+ document.addEventListener('keydown', onKey);
130
+ var back = el('div', { className: 'drawer-back', onclick: function (e) { if (e.target === back) close(); } }, drawer);
131
+ var list = function (title, items) { return items && items.length ? el('div', {}, el('h4', { text: title }), el('ul', {}, items.map(function (x) { return el('li', { text: x }); }))) : null; };
132
+ drawer.appendChild(el('div', { className: 'bar', style: 'margin-bottom:6px' }, el('h3', { style: 'margin:0;flex:1', text: h.title }), el('button', { className: 'btn icon ghost', title: 'Close', onclick: close }, icon('x'))));
133
+ drawer.appendChild(el('p', { text: h.what }));
134
+ drawer.appendChild(list('How to read it', h.read));
135
+ drawer.appendChild(list('What you can do', h.act));
136
+ drawer.appendChild(el('div', {}, el('h4', { text: 'Permissions' }), el('p', { className: 'muted', text: h.perms })));
137
+ var checklist = el('div');
138
+ drawer.appendChild(el('div', {}, el('h4', { text: 'Getting started' }), checklist));
139
+ renderChecklist(checklist);
140
+ drawer.appendChild(el('div', {}, el('h4', { text: 'Getting help' }),
141
+ el('p', { className: 'small', text: 'A support file lists versions, settings, schedules, recent errors and log lines, with secrets, names, email addresses, tenant addresses and IDs removed. Read it before you send it to whoever helps you.' }),
142
+ el('a', { className: 'btn sm', href: '/api/support/download?k=' + encodeURIComponent(KEY), download: '' }, icon('download'), 'Download a support file')));
143
+ var upd = el('div');
144
+ drawer.appendChild(upd);
145
+ renderUpdates(upd);
146
+ drawer.appendChild(el('p', { className: 'muted small', style: 'margin-top:18px', text: 'IdentityScope only reads from ISC. Nothing on these pages changes your tenant (connector diagnostics excepted, which are off unless you turn them on).' }));
147
+ document.body.appendChild(back);
148
+ var first = drawer.querySelector('button');
149
+ if (first) first.focus();
150
+ }
151
+ function renderUpdates(box, now) {
152
+ api('/api/updates' + (now ? '?now=1' : '')).then(function (u) {
153
+ box.textContent = '';
154
+ if (!u.available) return;
155
+ var on = el('input', { type: 'checkbox', checked: u.enabled });
156
+ on.addEventListener('change', function () { api('/api/updates', 'PUT', { enabled: on.checked }).then(function () { renderUpdates(box); }); });
157
+ var line = u.error ? el('p', { className: 'small error', text: u.error })
158
+ : u.latest ? el('p', { className: 'small', text: u.newer ? 'Version ' + u.latest + ' is available (you have ' + u.current + ').' : 'You have the latest version (' + u.current + ').' }, u.newer && u.page ? el('a', { href: u.page, target: '_blank', rel: 'noopener', text: ' Open the release page' }) : null)
159
+ : el('p', { className: 'small muted', text: 'You have version ' + u.current + '.' });
160
+ box.appendChild(el('div', {}, el('h4', { text: 'New versions' }), line,
161
+ el('div', { className: 'bar' }, el('button', { className: 'btn sm', onclick: function () { renderUpdates(box, true); } }, 'Check now'),
162
+ el('label', { className: 'inline small' }, on, 'Check when the screen opens')),
163
+ el('p', { className: 'muted small', text: 'Checking asks the release page for the latest version number. Nothing about you or your tenant is sent.' })));
164
+ }).catch(function () { box.textContent = ''; });
165
+ }
166
+ function noticeNewVersion() {
167
+ api('/api/updates').then(function (u) { if (u.enabled && u.newer) toast('IdentityScope ' + u.latest + ' is available. See Help for the release page.'); }).catch(function () {});
168
+ }
169
+ function renderChecklist(box) {
170
+ box.textContent = '';
171
+ box.appendChild(el('div', { className: 'muted small', text: 'Checking...' }));
172
+ Promise.all([api('/api/checks').catch(function () { return null; }), api('/api/schedules').catch(function () { return null; })]).then(function (r) {
173
+ var checks = r[0], sched = r[1];
174
+ var ran = checks && Object.keys(checks.trends || {}).some(function (k) { return (checks.trends[k].points || []).length; });
175
+ var limits = checks && checks.checks.some(function (c) { return c.settings && Object.keys(c.settings).length; });
176
+ var daily = sched && sched.jobs.some(function (j) { return j.report === '@instant-check'; });
177
+ var delivery = sched && (sched.email || sched.jobs.some(function (j) { return j.webhookKind; }));
178
+ var items = [
179
+ [true, 'Connected to your tenant', null],
180
+ [null, 'Run the Health check (top right) once to see what your sign-in can read', function () { $('btn-doctor').click(); }],
181
+ [ran, 'Run the instant check', function () { showPage('checks'); }],
182
+ [limits, 'Adjust the limits to your tenant (optional)', function () { state.chk.showLimits = true; showPage('checks'); }],
183
+ [delivery, 'Set up email or a Teams/Slack webhook', function () { showPage('schedules'); }],
184
+ [daily, 'Schedule the instant check daily (builds trends and the monthly report)', function () { state.editing = { isNew: true, report: '@instant-check', params: {} }; showPage('schedules'); }]
185
+ ];
186
+ box.textContent = '';
187
+ box.appendChild(el('div', { className: 'checklist' }, items.map(function (it) {
188
+ return el('button', { className: 'cl-item' + (it[0] ? ' done' : ''), onclick: function () { if (it[2]) { document.querySelectorAll('.drawer-back').forEach(function (d) { d.remove(); }); it[2](); } } },
189
+ el('span', { className: 'cl-box', text: it[0] ? '✓' : it[0] === null ? '•' : '' }), el('span', { text: it[1] }));
190
+ })));
191
+ });
192
+ }
193
+ function fixCard(id) {
194
+ var steps = FIX[id];
195
+ if (!steps) return null;
196
+ return el('div', { className: 'fix' }, el('b', { text: 'How to fix' }), el('ol', {}, steps.map(function (s) { return el('li', { text: s }); })));
197
+ }
198
+ /** "Today at a glance" for the home page, from the last instant check on this computer. */
199
+ function glance(box) {
200
+ api('/api/checks').then(function (m) {
201
+ var last = null, worst = { bad: 0, warn: 0 };
202
+ Object.keys(m.trends || {}).forEach(function (k) {
203
+ var tr = m.trends[k], p = tr.points && tr.points[tr.points.length - 1];
204
+ if (!p) return;
205
+ if (!last || p.at > last) last = p.at;
206
+ if (tr.status === 'bad') worst.bad++; else if (tr.status === 'warn') worst.warn++;
207
+ });
208
+ box.textContent = '';
209
+ var level = !last ? 'idle' : worst.bad ? 'bad' : worst.warn ? 'warn' : 'ok';
210
+ box.appendChild(el('div', { className: 'banner ' + level, style: 'margin-bottom:18px' },
211
+ el('b', { text: !last ? 'Start your day with the instant check' : worst.bad + worst.warn ? (worst.bad ? worst.bad + ' problem' + (worst.bad > 1 ? 's' : '') : '') + (worst.bad && worst.warn ? ', ' : '') + (worst.warn ? worst.warn + ' to look at' : '') : 'All checks OK' }),
212
+ el('span', { text: last ? 'Last instant check ' + ago(last) : 'Provisioning, aggregations, VAs, workflows, leavers and more in one click.' }),
213
+ el('span', { style: 'flex:1' }),
214
+ el('button', { className: 'btn sm', onclick: function () { showPage('checks'); } }, icon('pulse'), last ? 'Open instant check' : 'Run it now')));
215
+ }).catch(function () { box.textContent = ''; });
216
+ }
217
+