sfdx-hardis 6.7.1 → 6.7.2-beta202510122255.0

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.
@@ -5538,15 +5538,12 @@
5538
5538
  "import:data:org:hardis"
5539
5539
  ]
5540
5540
  },
5541
- "hardis:org:diagnose:audittrail": {
5541
+ "hardis:org:files:export": {
5542
5542
  "aliases": [],
5543
5543
  "args": {},
5544
- "description": "Export Audit trail into a CSV file with selected criteria, and highlight suspect actions\n\nAlso detects updates of Custom Settings values (disable by defining `SKIP_AUDIT_TRAIL_CUSTOM_SETTINGS=true`)\n\nRegular setup actions performed in major orgs are filtered.\n\n- \"\"\n - createScratchOrg\n - changedsenderemail\n - deleteScratchOrg\n - loginasgrantedtopartnerbt\n- Certificate and Key Management\n - insertCertificate\n- Custom App Licenses\n - addeduserpackagelicense\n - granteduserpackagelicense\n - revokeduserpackagelicense\n- Customer Portal\n - createdcustomersuccessuser\n - CSPUserDisabled\n- Currency\n - updateddatedexchrate\n- Data Management\n - queueMembership\n- Email Administration\n - dkimRotationPreparationSuccessful\n - dkimRotationSuccessful\n- External Objects\n - xdsEncryptedFieldChange\n- Groups\n - groupMembership\n- Holidays\n - holiday_insert\n- Inbox mobile and legacy desktop apps\n - enableSIQUserNonEAC\n - siqUserAcceptedTOS\n- Manage Users\n - activateduser\n - createduser\n - changedcommunitynickname\n - changedemail\n - changedfederationid\n - changedpassword\n - changedinteractionuseroffon\n - changedinteractionuseronoff\n - changedmarketinguseroffon\n - changedmarketinguseronoff\n - changedofflineuseroffon\n - changedprofileforuserstdtostd\n - changedprofileforuser\n - changedprofileforusercusttostd\n - changedprofileforuserstdtocust\n - changedroleforusertonone\n - changedroleforuser\n - changedroleforuserfromnone\n - changedUserAdminVerifiedStatusVerified\n - changedUserEmailVerifiedStatusUnverified\n - changedUserEmailVerifiedStatusVerified\n - changedknowledgeuseroffon\n - changedsfcontentuseroffon\n - changedsupportuseroffon\n - changedusername\n - changedUserPhoneNumber\n - changedUserPhoneVerifiedStatusUnverified\n - changedUserPhoneVerifiedStatusVerified\n - deactivateduser\n - deleteAuthenticatorPairing\n - deleteTwoFactorInfo2\n - deleteTwoFactorTempCode\n - frozeuser\n - insertAuthenticatorPairing\n - insertTwoFactorInfo2\n - insertTwoFactorTempCode\n - lightningloginenroll\n - PermSetAssign\n - PermSetGroupAssign\n - PermSetGroupUnassign\n - PermSetLicenseAssign\n - PermSetUnassign\n - PermSetLicenseUnassign\n - registeredUserPhoneNumber\n - resetpassword\n - suNetworkAdminLogin\n - suNetworkAdminLogout\n - suOrgAdminLogin\n - suOrgAdminLogout\n - unfrozeuser\n - useremailchangesent\n- Mobile Administration\n - assigneduserstomobileconfig\n- Reporting Snapshots\n - createdReportJob\n - deletedReportJob\n- Sandboxes\n - DeleteSandbox\n\nBy default, deployment user defined in .sfdx-hardis.yml targetUsername property will be excluded.\n\nYou can define additional users to exclude in .sfdx-hardis.yml **monitoringExcludeUsernames** property.\n\nYou can also add more sections / actions considered as not suspect using property **monitoringAllowedSectionsActions**\n\nExample:\n\n```yaml\nmonitoringExcludeUsernames:\n - deploymentuser@cloudity.com\n - marketingcloud@cloudity.com\n - integration-user@cloudity.com\n\nmonitoringAllowedSectionsActions:\n \"Some section\": [] // Will ignore all actions from such section\n \"Some other section\": [\"actionType1\",\"actionType2\",\"actionType3\"] // Will ignore only those 3 actions from section \"Some other section\". Other actions in the same section will be considered as suspect.\n```\n\n## Excel output example\n\n![](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-monitoring-audittrail-excel.jpg)\n\n## Local output example\n\n![](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-monitoring-audittrail-local.jpg)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-suspect-audit-trail/) and can output Grafana, Slack and MsTeams Notifications.\n",
5544
+ "description": "\n## Command Behavior\n\n**Exports file attachments (ContentVersion, Attachment) from a Salesforce org based on a predefined configuration.**\n\nThis command enables the mass download of files associated with Salesforce records, providing a robust solution for backing up files, migrating them to other systems, or integrating them with external document management solutions.\n\nKey functionalities:\n\n- **Configuration-Driven Export:** Relies on an `export.json` file within a designated file export project to define the export criteria, including the SOQL query for parent records, file types to export, output naming conventions, and file size filtering.\n- **File Size Filtering:** Supports minimum file size filtering via the `fileSizeMin` configuration parameter (in KB). Files smaller than the specified size will be skipped during export.\n- **File Validation:** After downloading each file, validates the integrity by:\n - **Checksum Validation:** For ContentVersion files, compares MD5 checksum with Salesforce's stored checksum\n - **Size Validation:** For both ContentVersion and Attachment files, verifies actual file size matches expected size\n - **Status Tracking:** Files are categorized with specific statuses: `success` (valid files), `failed` (download errors), `skipped` (filtered files), `invalid` (downloaded but failed validation)\n - All validation results are logged in the CSV export log for audit purposes\n- **Resume/Restart Capability:** \n - **Resume Mode:** When `--resume` flag is used (default in CI environments), checks existing downloaded files for validity. Valid files are skipped, invalid files are re-downloaded.\n - **Restart Mode:** When resume is disabled, clears the output folder and starts a fresh export.\n - **Interactive Mode:** When existing files are found and `--resume` is not explicitly specified (non-CI environments), prompts the user to choose between resume or restart.\n- **Interactive Project Selection:** If the file export project path is not provided via the `--path` flag, it interactively prompts the user to select one.\n- **Configurable Export Options:** Allows overriding default export settings such as `chunksize` (number of records processed in a batch), `polltimeout` (timeout for Bulk API calls), and `startchunknumber` (to resume a failed export).\n- **Support for ContentVersion and Attachment:** Handles both modern Salesforce Files (ContentVersion) and older Attachments.\n\nSee this article for a practical example:\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **FilesExporter Class:** The core logic is encapsulated within the `FilesExporter` class, which orchestrates the entire export process.\n- **SOQL Queries (Bulk API):** It uses Salesforce Bulk API queries to efficiently retrieve large volumes of parent record IDs and file metadata, including checksums and file sizes.\n- **File Download:** Downloads the actual file content from Salesforce.\n- **File Validation:** After each successful download, validates file integrity by comparing checksums (ContentVersion) and file sizes (both ContentVersion and Attachment) against Salesforce metadata.\n- **Resume Logic:** In resume mode, checks for existing files before downloading, validates their integrity, and only re-downloads invalid or missing files. This enables efficient recovery from interrupted exports.\n- **File System Operations:** Writes the downloaded files to the local file system, organizing them into folders based on the configured naming conventions.\n- **Configuration Loading:** Reads the `export.json` file to get the export configuration. It also allows for interactive overriding of these settings.\n- **Interactive Prompts:** Uses `selectFilesWorkspace` to allow the user to choose a file export project, `promptFilesExportConfiguration` for customizing export options, and prompts for resume/restart choice when existing files are found.\n- **Error Handling:** Includes mechanisms to handle potential errors during the export process, such as network issues, API limits, and file validation failures. Each file is assigned a specific status (`success`, `failed`, `skipped`, `invalid`) for comprehensive tracking and troubleshooting.\n</details>\n",
5545
5545
  "examples": [
5546
- "$ sf hardis:org:diagnose:audittrail",
5547
- "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
5548
- "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
5549
- "$ sf hardis:org:diagnose:audittrail --lastndays 5"
5546
+ "$ sf hardis:org:files:export"
5550
5547
  ],
5551
5548
  "flags": {
5552
5549
  "json": {
@@ -5564,30 +5561,48 @@
5564
5561
  "multiple": false,
5565
5562
  "type": "option"
5566
5563
  },
5567
- "excludeusers": {
5568
- "char": "e",
5569
- "description": "Comma-separated list of usernames to exclude",
5570
- "name": "excludeusers",
5564
+ "path": {
5565
+ "char": "p",
5566
+ "description": "Path to the file export project",
5567
+ "name": "path",
5571
5568
  "hasDynamicHelp": false,
5572
5569
  "multiple": false,
5573
5570
  "type": "option"
5574
5571
  },
5575
- "lastndays": {
5572
+ "chunksize": {
5573
+ "char": "c",
5574
+ "description": "Number of records to add in a chunk before it is processed",
5575
+ "name": "chunksize",
5576
+ "default": 1000,
5577
+ "hasDynamicHelp": false,
5578
+ "multiple": false,
5579
+ "type": "option"
5580
+ },
5581
+ "polltimeout": {
5576
5582
  "char": "t",
5577
- "description": "Number of days to extract from today (included)",
5578
- "name": "lastndays",
5583
+ "description": "Timeout in MS for Bulk API calls",
5584
+ "name": "polltimeout",
5585
+ "default": 300000,
5579
5586
  "hasDynamicHelp": false,
5580
5587
  "multiple": false,
5581
5588
  "type": "option"
5582
5589
  },
5583
- "outputfile": {
5584
- "char": "f",
5585
- "description": "Force the path and name of output report file. Must end with .csv",
5586
- "name": "outputfile",
5590
+ "startchunknumber": {
5591
+ "char": "s",
5592
+ "description": "Chunk number to start from",
5593
+ "name": "startchunknumber",
5594
+ "default": 0,
5587
5595
  "hasDynamicHelp": false,
5588
5596
  "multiple": false,
5589
5597
  "type": "option"
5590
5598
  },
5599
+ "resume": {
5600
+ "char": "r",
5601
+ "description": "Resume previous export by checking existing files (default in CI)",
5602
+ "name": "resume",
5603
+ "allowNo": false,
5604
+ "type": "boolean"
5605
+ },
5591
5606
  "debug": {
5592
5607
  "char": "d",
5593
5608
  "description": "Activate debug mode (more logs)",
@@ -5626,13 +5641,13 @@
5626
5641
  },
5627
5642
  "hasDynamicHelp": true,
5628
5643
  "hiddenAliases": [],
5629
- "id": "hardis:org:diagnose:audittrail",
5644
+ "id": "hardis:org:files:export",
5630
5645
  "pluginAlias": "sfdx-hardis",
5631
5646
  "pluginName": "sfdx-hardis",
5632
5647
  "pluginType": "core",
5633
5648
  "strict": true,
5634
5649
  "enableJsonFlag": true,
5635
- "title": "Diagnose content of Setup Audit Trail",
5650
+ "title": "Export files",
5636
5651
  "requiresProject": false,
5637
5652
  "isESM": true,
5638
5653
  "relativePath": [
@@ -5640,43 +5655,43 @@
5640
5655
  "commands",
5641
5656
  "hardis",
5642
5657
  "org",
5643
- "diagnose",
5644
- "audittrail.js"
5658
+ "files",
5659
+ "export.js"
5645
5660
  ],
5646
5661
  "aliasPermutations": [],
5647
5662
  "permutations": [
5648
- "hardis:org:diagnose:audittrail",
5649
- "org:hardis:diagnose:audittrail",
5650
- "org:diagnose:hardis:audittrail",
5651
- "org:diagnose:audittrail:hardis",
5652
- "hardis:diagnose:org:audittrail",
5653
- "diagnose:hardis:org:audittrail",
5654
- "diagnose:org:hardis:audittrail",
5655
- "diagnose:org:audittrail:hardis",
5656
- "hardis:diagnose:audittrail:org",
5657
- "diagnose:hardis:audittrail:org",
5658
- "diagnose:audittrail:hardis:org",
5659
- "diagnose:audittrail:org:hardis",
5660
- "hardis:org:audittrail:diagnose",
5661
- "org:hardis:audittrail:diagnose",
5662
- "org:audittrail:hardis:diagnose",
5663
- "org:audittrail:diagnose:hardis",
5664
- "hardis:audittrail:org:diagnose",
5665
- "audittrail:hardis:org:diagnose",
5666
- "audittrail:org:hardis:diagnose",
5667
- "audittrail:org:diagnose:hardis",
5668
- "hardis:audittrail:diagnose:org",
5669
- "audittrail:hardis:diagnose:org",
5670
- "audittrail:diagnose:hardis:org",
5671
- "audittrail:diagnose:org:hardis"
5663
+ "hardis:org:files:export",
5664
+ "org:hardis:files:export",
5665
+ "org:files:hardis:export",
5666
+ "org:files:export:hardis",
5667
+ "hardis:files:org:export",
5668
+ "files:hardis:org:export",
5669
+ "files:org:hardis:export",
5670
+ "files:org:export:hardis",
5671
+ "hardis:files:export:org",
5672
+ "files:hardis:export:org",
5673
+ "files:export:hardis:org",
5674
+ "files:export:org:hardis",
5675
+ "hardis:org:export:files",
5676
+ "org:hardis:export:files",
5677
+ "org:export:hardis:files",
5678
+ "org:export:files:hardis",
5679
+ "hardis:export:org:files",
5680
+ "export:hardis:org:files",
5681
+ "export:org:hardis:files",
5682
+ "export:org:files:hardis",
5683
+ "hardis:export:files:org",
5684
+ "export:hardis:files:org",
5685
+ "export:files:hardis:org",
5686
+ "export:files:org:hardis"
5672
5687
  ]
5673
5688
  },
5674
- "hardis:org:diagnose:instanceupgrade": {
5689
+ "hardis:org:files:import": {
5675
5690
  "aliases": [],
5676
5691
  "args": {},
5677
- "description": "\n## Command Behavior\n\n**Retrieves and displays the scheduled upgrade date for a Salesforce org's instance.**\n\nThis command provides crucial information about when your Salesforce instance will be upgraded to the next major release (Spring, Summer, or Winter). This is vital for release planning, testing, and ensuring compatibility with upcoming Salesforce features.\n\nKey functionalities:\n\n- **Instance Identification:** Determines the Salesforce instance name of your target org.\n- **Upgrade Date Retrieval:** Fetches the planned start time of the next major core service upgrade for that instance from the Salesforce Status API.\n- **Days Until Upgrade:** Calculates and displays the number of days remaining until the next major upgrade.\n- **Severity-Based Logging:** Adjusts the log severity (info, warning) based on the proximity of the upgrade date, providing a visual cue for urgency.\n- **Notifications:** Sends notifications to configured channels (e.g., Slack, MS Teams, Grafana) with the upgrade information, making it suitable for automated monitoring.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Query:** It first queries the `Organization` object in Salesforce to get the `InstanceName` of the target org.\n- **Salesforce Status API Integration:** It makes an HTTP GET request to the Salesforce Status API (`https://api.status.salesforce.com/v1/instances/{instanceName}/status`) to retrieve detailed information about the instance, including scheduled maintenances.\n- **Data Parsing:** It parses the JSON response from the Status API to extract the relevant major release upgrade information.\n- **Date Calculation:** Uses the `moment` library to calculate the difference in days between the current date and the planned upgrade date.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including the instance name, upgrade date, and days remaining, along with relevant metrics for monitoring dashboards.\n- **User Feedback:** Provides clear messages to the user about the upgrade status and proximity.\n</details>\n",
5692
+ "description": "\nThis command facilitates the mass upload of files into Salesforce, allowing you to populate records with associated documents, images, or other file types. It's a crucial tool for data migration, content seeding, or synchronizing external file repositories with Salesforce.\n\nKey functionalities:\n\n- **Configuration-Driven Import:** Relies on an `export.json` file within a designated file export project (created using `sf hardis:org:configure:files`) to determine which files to import and how they should be associated with Salesforce records.\n- **Interactive Project Selection:** If the file import project path is not provided via the `--path` flag, it interactively prompts the user to select one.\n- **Overwrite Option:** The `--overwrite` flag allows you to replace existing files in Salesforce with local versions that have the same name. Be aware that this option doubles the number of API calls used.\n- **Support for ContentVersion and Attachment:** Handles both modern Salesforce Files (ContentVersion) and older Attachments.\n\nSee this article for how to export files, which is often a prerequisite for importing:\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **FilesImporter Class:** The core logic is encapsulated within the `FilesImporter` class, which orchestrates the entire import process.\n- **File System Scan:** Scans the local file system within the configured project directory to identify files for import.\n- **Salesforce API Interaction:** Uses Salesforce APIs (e.g., ContentVersion, Attachment) to upload files and associate them with records.\n- **Configuration Loading:** Reads the `export.json` file to get the import configuration, including SOQL queries to identify parent records for file association.\n- **Interactive Prompts:** Uses `selectFilesWorkspace` to allow the user to choose a file import project and `prompts` for confirming the overwrite behavior.\n- **Error Handling:** Includes mechanisms to handle potential errors during the import process, such as API limits or file upload failures.\n</details>\n",
5678
5693
  "examples": [
5679
- "$ sf hardis:org:diagnose:instanceupgrade"
5694
+ "$ sf hardis:org:files:import"
5680
5695
  ],
5681
5696
  "flags": {
5682
5697
  "json": {
@@ -5694,6 +5709,21 @@
5694
5709
  "multiple": false,
5695
5710
  "type": "option"
5696
5711
  },
5712
+ "path": {
5713
+ "char": "p",
5714
+ "description": "Path to the file export project",
5715
+ "name": "path",
5716
+ "hasDynamicHelp": false,
5717
+ "multiple": false,
5718
+ "type": "option"
5719
+ },
5720
+ "overwrite": {
5721
+ "char": "f",
5722
+ "description": "Override existing files (doubles the number of API calls)",
5723
+ "name": "overwrite",
5724
+ "allowNo": false,
5725
+ "type": "boolean"
5726
+ },
5697
5727
  "debug": {
5698
5728
  "char": "d",
5699
5729
  "description": "Activate debug mode (more logs)",
@@ -5732,13 +5762,13 @@
5732
5762
  },
5733
5763
  "hasDynamicHelp": true,
5734
5764
  "hiddenAliases": [],
5735
- "id": "hardis:org:diagnose:instanceupgrade",
5765
+ "id": "hardis:org:files:import",
5736
5766
  "pluginAlias": "sfdx-hardis",
5737
5767
  "pluginName": "sfdx-hardis",
5738
5768
  "pluginType": "core",
5739
5769
  "strict": true,
5740
5770
  "enableJsonFlag": true,
5741
- "title": "Get Instance Upgrade date",
5771
+ "title": "Import files",
5742
5772
  "requiresProject": false,
5743
5773
  "isESM": true,
5744
5774
  "relativePath": [
@@ -5746,46 +5776,45 @@
5746
5776
  "commands",
5747
5777
  "hardis",
5748
5778
  "org",
5749
- "diagnose",
5750
- "instanceupgrade.js"
5779
+ "files",
5780
+ "import.js"
5751
5781
  ],
5752
5782
  "aliasPermutations": [],
5753
5783
  "permutations": [
5754
- "hardis:org:diagnose:instanceupgrade",
5755
- "org:hardis:diagnose:instanceupgrade",
5756
- "org:diagnose:hardis:instanceupgrade",
5757
- "org:diagnose:instanceupgrade:hardis",
5758
- "hardis:diagnose:org:instanceupgrade",
5759
- "diagnose:hardis:org:instanceupgrade",
5760
- "diagnose:org:hardis:instanceupgrade",
5761
- "diagnose:org:instanceupgrade:hardis",
5762
- "hardis:diagnose:instanceupgrade:org",
5763
- "diagnose:hardis:instanceupgrade:org",
5764
- "diagnose:instanceupgrade:hardis:org",
5765
- "diagnose:instanceupgrade:org:hardis",
5766
- "hardis:org:instanceupgrade:diagnose",
5767
- "org:hardis:instanceupgrade:diagnose",
5768
- "org:instanceupgrade:hardis:diagnose",
5769
- "org:instanceupgrade:diagnose:hardis",
5770
- "hardis:instanceupgrade:org:diagnose",
5771
- "instanceupgrade:hardis:org:diagnose",
5772
- "instanceupgrade:org:hardis:diagnose",
5773
- "instanceupgrade:org:diagnose:hardis",
5774
- "hardis:instanceupgrade:diagnose:org",
5775
- "instanceupgrade:hardis:diagnose:org",
5776
- "instanceupgrade:diagnose:hardis:org",
5777
- "instanceupgrade:diagnose:org:hardis"
5784
+ "hardis:org:files:import",
5785
+ "org:hardis:files:import",
5786
+ "org:files:hardis:import",
5787
+ "org:files:import:hardis",
5788
+ "hardis:files:org:import",
5789
+ "files:hardis:org:import",
5790
+ "files:org:hardis:import",
5791
+ "files:org:import:hardis",
5792
+ "hardis:files:import:org",
5793
+ "files:hardis:import:org",
5794
+ "files:import:hardis:org",
5795
+ "files:import:org:hardis",
5796
+ "hardis:org:import:files",
5797
+ "org:hardis:import:files",
5798
+ "org:import:hardis:files",
5799
+ "org:import:files:hardis",
5800
+ "hardis:import:org:files",
5801
+ "import:hardis:org:files",
5802
+ "import:org:hardis:files",
5803
+ "import:org:files:hardis",
5804
+ "hardis:import:files:org",
5805
+ "import:hardis:files:org",
5806
+ "import:files:hardis:org",
5807
+ "import:files:org:hardis"
5778
5808
  ]
5779
5809
  },
5780
- "hardis:org:diagnose:legacyapi": {
5810
+ "hardis:org:generate:packagexmlfull": {
5781
5811
  "aliases": [],
5782
5812
  "args": {},
5783
- "description": "Checks if an org uses retired or someday retired API version\n\n\nSee article below\n\n[![Handle Salesforce API versions Deprecation like a pro](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-deprecated-api.jpg)](https://nicolas.vuillamy.fr/handle-salesforce-api-versions-deprecation-like-a-pro-335065f52238)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-deprecated-api-calls/) and can output Grafana, Slack and MsTeams Notifications.\n",
5813
+ "description": "\n## Command Behavior\n\n**Generates a comprehensive `package.xml` file for a Salesforce org, including all metadata components, even managed ones.**\n\nThis command is essential for various Salesforce development and administration tasks, especially when you need a complete snapshot of an org's metadata. It goes beyond typical source tracking by including managed package components, which is crucial for understanding the full metadata footprint of an org.\n\nKey functionalities:\n\n- **Full Org Metadata Retrieval:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a complete list of all metadata types and their members.\n- **Managed Package Inclusion:** Unlike standard source retrieval, this command explicitly includes metadata from managed packages, providing a truly comprehensive `package.xml`.\n- **Customizable Output:** Allows you to specify the output file path for the generated `package.xml`.\n- **Interactive Org Selection:** If no target org is specified, it interactively prompts the user to choose an org. (or use --no-prompt to skip this step)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce Metadata API Interaction:** It leverages the Salesforce Metadata API to list all available metadata types and then retrieve all components for each type.\n- **`buildOrgManifest` Utility:** The core logic for querying the org's metadata and constructing the `package.xml` is encapsulated within the `buildOrgManifest` utility function.\n- **XML Generation:** It dynamically builds the XML structure of the `package.xml` file, including the `types` and `members` elements for all retrieved metadata.\n- **File System Operations:** It writes the generated `package.xml` file to the specified output path.\n- **Interactive Prompts:** Uses `promptOrgUsernameDefault` to guide the user in selecting the target Salesforce org.\n</details>\n",
5784
5814
  "examples": [
5785
- "$ sf hardis:org:diagnose:legacyapi",
5786
- "$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com",
5787
- "$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'",
5788
- "$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv"
5815
+ "$ sf hardis:org:generate:packagexmlfull",
5816
+ "$ sf hardis:org:generate:packagexmlfull --outputfile /tmp/packagexmlfull.xml",
5817
+ "$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
5789
5818
  ],
5790
5819
  "flags": {
5791
5820
  "json": {
@@ -5803,27 +5832,8 @@
5803
5832
  "multiple": false,
5804
5833
  "type": "option"
5805
5834
  },
5806
- "eventtype": {
5807
- "char": "e",
5808
- "description": "Type of EventLogFile event to analyze",
5809
- "name": "eventtype",
5810
- "default": "ApiTotalUsage",
5811
- "hasDynamicHelp": false,
5812
- "multiple": false,
5813
- "type": "option"
5814
- },
5815
- "limit": {
5816
- "char": "l",
5817
- "description": "Number of latest EventLogFile events to analyze",
5818
- "name": "limit",
5819
- "default": 999,
5820
- "hasDynamicHelp": false,
5821
- "multiple": false,
5822
- "type": "option"
5823
- },
5824
5835
  "outputfile": {
5825
- "char": "f",
5826
- "description": "Force the path and name of output report file. Must end with .csv",
5836
+ "description": "Output package.xml file",
5827
5837
  "name": "outputfile",
5828
5838
  "hasDynamicHelp": false,
5829
5839
  "multiple": false,
@@ -5836,6 +5846,13 @@
5836
5846
  "allowNo": false,
5837
5847
  "type": "boolean"
5838
5848
  },
5849
+ "no-prompt": {
5850
+ "char": "n",
5851
+ "description": "Do not prompt for org username, use the default one",
5852
+ "name": "no-prompt",
5853
+ "allowNo": false,
5854
+ "type": "boolean"
5855
+ },
5839
5856
  "websocket": {
5840
5857
  "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
5841
5858
  "name": "websocket",
@@ -5867,13 +5884,13 @@
5867
5884
  },
5868
5885
  "hasDynamicHelp": true,
5869
5886
  "hiddenAliases": [],
5870
- "id": "hardis:org:diagnose:legacyapi",
5887
+ "id": "hardis:org:generate:packagexmlfull",
5871
5888
  "pluginAlias": "sfdx-hardis",
5872
5889
  "pluginName": "sfdx-hardis",
5873
5890
  "pluginType": "core",
5874
5891
  "strict": true,
5875
5892
  "enableJsonFlag": true,
5876
- "title": "Check for legacy API use",
5893
+ "title": "Generate Full Org package.xml",
5877
5894
  "requiresProject": false,
5878
5895
  "isESM": true,
5879
5896
  "relativePath": [
@@ -5881,43 +5898,44 @@
5881
5898
  "commands",
5882
5899
  "hardis",
5883
5900
  "org",
5884
- "diagnose",
5885
- "legacyapi.js"
5901
+ "generate",
5902
+ "packagexmlfull.js"
5886
5903
  ],
5887
5904
  "aliasPermutations": [],
5888
5905
  "permutations": [
5889
- "hardis:org:diagnose:legacyapi",
5890
- "org:hardis:diagnose:legacyapi",
5891
- "org:diagnose:hardis:legacyapi",
5892
- "org:diagnose:legacyapi:hardis",
5893
- "hardis:diagnose:org:legacyapi",
5894
- "diagnose:hardis:org:legacyapi",
5895
- "diagnose:org:hardis:legacyapi",
5896
- "diagnose:org:legacyapi:hardis",
5897
- "hardis:diagnose:legacyapi:org",
5898
- "diagnose:hardis:legacyapi:org",
5899
- "diagnose:legacyapi:hardis:org",
5900
- "diagnose:legacyapi:org:hardis",
5901
- "hardis:org:legacyapi:diagnose",
5902
- "org:hardis:legacyapi:diagnose",
5903
- "org:legacyapi:hardis:diagnose",
5904
- "org:legacyapi:diagnose:hardis",
5905
- "hardis:legacyapi:org:diagnose",
5906
- "legacyapi:hardis:org:diagnose",
5907
- "legacyapi:org:hardis:diagnose",
5908
- "legacyapi:org:diagnose:hardis",
5909
- "hardis:legacyapi:diagnose:org",
5910
- "legacyapi:hardis:diagnose:org",
5911
- "legacyapi:diagnose:hardis:org",
5912
- "legacyapi:diagnose:org:hardis"
5913
- ]
5914
- },
5915
- "hardis:org:diagnose:licenses": {
5906
+ "hardis:org:generate:packagexmlfull",
5907
+ "org:hardis:generate:packagexmlfull",
5908
+ "org:generate:hardis:packagexmlfull",
5909
+ "org:generate:packagexmlfull:hardis",
5910
+ "hardis:generate:org:packagexmlfull",
5911
+ "generate:hardis:org:packagexmlfull",
5912
+ "generate:org:hardis:packagexmlfull",
5913
+ "generate:org:packagexmlfull:hardis",
5914
+ "hardis:generate:packagexmlfull:org",
5915
+ "generate:hardis:packagexmlfull:org",
5916
+ "generate:packagexmlfull:hardis:org",
5917
+ "generate:packagexmlfull:org:hardis",
5918
+ "hardis:org:packagexmlfull:generate",
5919
+ "org:hardis:packagexmlfull:generate",
5920
+ "org:packagexmlfull:hardis:generate",
5921
+ "org:packagexmlfull:generate:hardis",
5922
+ "hardis:packagexmlfull:org:generate",
5923
+ "packagexmlfull:hardis:org:generate",
5924
+ "packagexmlfull:org:hardis:generate",
5925
+ "packagexmlfull:org:generate:hardis",
5926
+ "hardis:packagexmlfull:generate:org",
5927
+ "packagexmlfull:hardis:generate:org",
5928
+ "packagexmlfull:generate:hardis:org",
5929
+ "packagexmlfull:generate:org:hardis"
5930
+ ]
5931
+ },
5932
+ "hardis:org:fix:listviewmine": {
5916
5933
  "aliases": [],
5917
5934
  "args": {},
5918
- "description": "\n**Lists and analyzes User Licenses and Permission Set Licenses subscribed and used in a Salesforce org.**\n\nThis command provides a comprehensive overview of your Salesforce license consumption. It's particularly useful for:\n\n- **License Management:** Understanding which licenses are active, how many are available, and how many are being used.\n- **Cost Optimization:** Identifying unused or underutilized licenses that could be reallocated or decommissioned.\n- **Compliance:** Ensuring that your organization is compliant with Salesforce licensing agreements.\n- **Monitoring:** Tracking license usage trends over time.\n\nKey functionalities:\n\n- **User License Details:** Retrieves information about standard and custom User Licenses, including `MasterLabel`, `Name`, `TotalLicenses`, and `UsedLicenses`.\n- **Permission Set License Details:** Retrieves information about Permission Set Licenses, including `MasterLabel`, `PermissionSetLicenseKey`, `TotalLicenses`, and `UsedLicenses`.\n- **Used Licenses Filter:** The `--usedonly` flag allows you to filter the report to show only licenses that have at least one `UsedLicenses` count greater than zero.\n- **CSV Report Generation:** Generates a CSV file containing all the retrieved license information, suitable for detailed analysis.\n- **Notifications:** Sends notifications to configured channels (e.g., Grafana, Slack, MS Teams) with a summary of license usage, including lists of active and used licenses.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Queries:** It executes SOQL queries against the `UserLicense` and `PermissionSetLicense` objects in Salesforce to retrieve license data.\n- **Data Transformation:** It processes the query results, reformatting the data to be more readable and consistent for reporting purposes (e.g., removing `Id` and `attributes`, renaming `PermissionSetLicenseKey` to `Name`).\n- **Data Aggregation:** It aggregates license information, creating a `licensesByKey` object for quick lookups and a `usedLicenses` array for a concise list of actively used licenses.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of license data.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **User Feedback:** Provides clear messages to the user about the license extraction process and the used licenses.\n</details>\n",
5935
+ "description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[![Invalid scope:Mine, not allowed ? Deploy your ListViews anyway !](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-invalid-scope-mine.jpg)](https://nicolas.vuillamy.fr/invalid-scope-mine-not-allowed-deploy-your-listviews-anyway-443aceca8ac7)\n\nList of ListViews can be:\n\n- read from .sfdx-hardis.yml file in property **listViewsToSetToMine**\n- sent in argument listviews\n\nNote: property **listViewsToSetToMine** can be auto-generated by command hardis:work:save if .sfdx-hardis.yml contains the following configuration\n\n```yaml\nautoCleanTypes:\n - listViewsMine\n```\n\n- Example of sfdx-hardis.yml property `listViewsToSetToMine`:\n\n```yaml\nlistViewsToSetToMine:\n - \"force-app/main/default/objects/Operation__c/listViews/MyCurrentOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Operation__c/listViews/MyFinalizedOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/Default_Opportunity_Pipeline.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MyCurrentSubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MySubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Account/listViews/MyActivePartners.listView-meta.xml\"\n```\n\n- If manually written, this could also be:\n\n```yaml\nlistViewsToSetToMine:\n - \"Operation__c:MyCurrentOperations\"\n - \"Operation__c:MyFinalizedOperations\"\n - \"Opportunity:Default_Opportunity_Pipeline\"\n - \"Opportunity:MyCurrentSubscriptions\"\n - \"Opportunity:MySubscriptions\"\n - \"Account:MyActivePartners\"\n```\n\nTroubleshooting: if you need to run this command from an alpine-linux based docker image, use this workaround in your dockerfile:\n\n```dockerfile\n# Do not use puppeteer embedded chromium\nRUN apk add --update --no-cache chromium\nENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=\"true\"\nENV CHROMIUM_PATH=\"/usr/bin/chromium-browser\"\nENV PUPPETEER_EXECUTABLE_PATH=\"$\\{CHROMIUM_PATH}\" // remove \\ before {\n```\n",
5919
5936
  "examples": [
5920
- "$ sf hardis:org:diagnose:licenses"
5937
+ "$ sf hardis:org:fix:listviewmine",
5938
+ "$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
5921
5939
  ],
5922
5940
  "flags": {
5923
5941
  "json": {
@@ -5935,21 +5953,14 @@
5935
5953
  "multiple": false,
5936
5954
  "type": "option"
5937
5955
  },
5938
- "outputfile": {
5939
- "char": "f",
5940
- "description": "Force the path and name of output report file. Must end with .csv",
5941
- "name": "outputfile",
5956
+ "listviews": {
5957
+ "char": "l",
5958
+ "description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
5959
+ "name": "listviews",
5942
5960
  "hasDynamicHelp": false,
5943
5961
  "multiple": false,
5944
5962
  "type": "option"
5945
5963
  },
5946
- "usedonly": {
5947
- "char": "u",
5948
- "description": "Filter to have only used licenses",
5949
- "name": "usedonly",
5950
- "allowNo": false,
5951
- "type": "boolean"
5952
- },
5953
5964
  "debug": {
5954
5965
  "char": "d",
5955
5966
  "description": "Activate debug mode (more logs)",
@@ -5988,57 +5999,60 @@
5988
5999
  },
5989
6000
  "hasDynamicHelp": true,
5990
6001
  "hiddenAliases": [],
5991
- "id": "hardis:org:diagnose:licenses",
6002
+ "id": "hardis:org:fix:listviewmine",
5992
6003
  "pluginAlias": "sfdx-hardis",
5993
6004
  "pluginName": "sfdx-hardis",
5994
6005
  "pluginType": "core",
5995
6006
  "strict": true,
5996
6007
  "enableJsonFlag": true,
5997
- "title": "List licenses subscribed and used in a Salesforce org",
5998
- "requiresProject": false,
6008
+ "title": "Fix listviews with ",
6009
+ "requiresProject": true,
5999
6010
  "isESM": true,
6000
6011
  "relativePath": [
6001
6012
  "lib",
6002
6013
  "commands",
6003
6014
  "hardis",
6004
6015
  "org",
6005
- "diagnose",
6006
- "licenses.js"
6016
+ "fix",
6017
+ "listviewmine.js"
6007
6018
  ],
6008
6019
  "aliasPermutations": [],
6009
6020
  "permutations": [
6010
- "hardis:org:diagnose:licenses",
6011
- "org:hardis:diagnose:licenses",
6012
- "org:diagnose:hardis:licenses",
6013
- "org:diagnose:licenses:hardis",
6014
- "hardis:diagnose:org:licenses",
6015
- "diagnose:hardis:org:licenses",
6016
- "diagnose:org:hardis:licenses",
6017
- "diagnose:org:licenses:hardis",
6018
- "hardis:diagnose:licenses:org",
6019
- "diagnose:hardis:licenses:org",
6020
- "diagnose:licenses:hardis:org",
6021
- "diagnose:licenses:org:hardis",
6022
- "hardis:org:licenses:diagnose",
6023
- "org:hardis:licenses:diagnose",
6024
- "org:licenses:hardis:diagnose",
6025
- "org:licenses:diagnose:hardis",
6026
- "hardis:licenses:org:diagnose",
6027
- "licenses:hardis:org:diagnose",
6028
- "licenses:org:hardis:diagnose",
6029
- "licenses:org:diagnose:hardis",
6030
- "hardis:licenses:diagnose:org",
6031
- "licenses:hardis:diagnose:org",
6032
- "licenses:diagnose:hardis:org",
6033
- "licenses:diagnose:org:hardis"
6021
+ "hardis:org:fix:listviewmine",
6022
+ "org:hardis:fix:listviewmine",
6023
+ "org:fix:hardis:listviewmine",
6024
+ "org:fix:listviewmine:hardis",
6025
+ "hardis:fix:org:listviewmine",
6026
+ "fix:hardis:org:listviewmine",
6027
+ "fix:org:hardis:listviewmine",
6028
+ "fix:org:listviewmine:hardis",
6029
+ "hardis:fix:listviewmine:org",
6030
+ "fix:hardis:listviewmine:org",
6031
+ "fix:listviewmine:hardis:org",
6032
+ "fix:listviewmine:org:hardis",
6033
+ "hardis:org:listviewmine:fix",
6034
+ "org:hardis:listviewmine:fix",
6035
+ "org:listviewmine:hardis:fix",
6036
+ "org:listviewmine:fix:hardis",
6037
+ "hardis:listviewmine:org:fix",
6038
+ "listviewmine:hardis:org:fix",
6039
+ "listviewmine:org:hardis:fix",
6040
+ "listviewmine:org:fix:hardis",
6041
+ "hardis:listviewmine:fix:org",
6042
+ "listviewmine:hardis:fix:org",
6043
+ "listviewmine:fix:hardis:org",
6044
+ "listviewmine:fix:org:hardis"
6034
6045
  ]
6035
6046
  },
6036
- "hardis:org:diagnose:releaseupdates": {
6047
+ "hardis:org:diagnose:audittrail": {
6037
6048
  "aliases": [],
6038
6049
  "args": {},
6039
- "description": "Export Release Updates into a CSV file with selected criteria, and highlight Release Updates that should be checked.\n\nBefore publishing **Breaking Changes** ❌, Salesforce announce them in the setup menu [**Release Updates**](https://help.salesforce.com/s/articleView?id=sf.release_updates.htm&type=5)\n\n⚠️ Some of them are very important, because if you don't make the related upgrades in time (ex: before Winter 25) , your production org can crash !\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-release-updates/) and can output Grafana, Slack and MsTeams Notifications.\n",
6050
+ "description": "Export Audit trail into a CSV file with selected criteria, and highlight suspect actions\n\nAlso detects updates of Custom Settings values (disable by defining `SKIP_AUDIT_TRAIL_CUSTOM_SETTINGS=true`)\n\nRegular setup actions performed in major orgs are filtered.\n\n- \"\"\n - createScratchOrg\n - changedsenderemail\n - deleteScratchOrg\n - loginasgrantedtopartnerbt\n- Certificate and Key Management\n - insertCertificate\n- Custom App Licenses\n - addeduserpackagelicense\n - granteduserpackagelicense\n - revokeduserpackagelicense\n- Customer Portal\n - createdcustomersuccessuser\n - CSPUserDisabled\n- Currency\n - updateddatedexchrate\n- Data Management\n - queueMembership\n- Email Administration\n - dkimRotationPreparationSuccessful\n - dkimRotationSuccessful\n- External Objects\n - xdsEncryptedFieldChange\n- Groups\n - groupMembership\n- Holidays\n - holiday_insert\n- Inbox mobile and legacy desktop apps\n - enableSIQUserNonEAC\n - siqUserAcceptedTOS\n- Manage Users\n - activateduser\n - createduser\n - changedcommunitynickname\n - changedemail\n - changedfederationid\n - changedpassword\n - changedinteractionuseroffon\n - changedinteractionuseronoff\n - changedmarketinguseroffon\n - changedmarketinguseronoff\n - changedofflineuseroffon\n - changedprofileforuserstdtostd\n - changedprofileforuser\n - changedprofileforusercusttostd\n - changedprofileforuserstdtocust\n - changedroleforusertonone\n - changedroleforuser\n - changedroleforuserfromnone\n - changedUserAdminVerifiedStatusVerified\n - changedUserEmailVerifiedStatusUnverified\n - changedUserEmailVerifiedStatusVerified\n - changedknowledgeuseroffon\n - changedsfcontentuseroffon\n - changedsupportuseroffon\n - changedusername\n - changedUserPhoneNumber\n - changedUserPhoneVerifiedStatusUnverified\n - changedUserPhoneVerifiedStatusVerified\n - deactivateduser\n - deleteAuthenticatorPairing\n - deleteTwoFactorInfo2\n - deleteTwoFactorTempCode\n - frozeuser\n - insertAuthenticatorPairing\n - insertTwoFactorInfo2\n - insertTwoFactorTempCode\n - lightningloginenroll\n - PermSetAssign\n - PermSetGroupAssign\n - PermSetGroupUnassign\n - PermSetLicenseAssign\n - PermSetUnassign\n - PermSetLicenseUnassign\n - registeredUserPhoneNumber\n - resetpassword\n - suNetworkAdminLogin\n - suNetworkAdminLogout\n - suOrgAdminLogin\n - suOrgAdminLogout\n - unfrozeuser\n - useremailchangesent\n- Mobile Administration\n - assigneduserstomobileconfig\n- Reporting Snapshots\n - createdReportJob\n - deletedReportJob\n- Sandboxes\n - DeleteSandbox\n\nBy default, deployment user defined in .sfdx-hardis.yml targetUsername property will be excluded.\n\nYou can define additional users to exclude in .sfdx-hardis.yml **monitoringExcludeUsernames** property.\n\nYou can also add more sections / actions considered as not suspect using property **monitoringAllowedSectionsActions**\n\nExample:\n\n```yaml\nmonitoringExcludeUsernames:\n - deploymentuser@cloudity.com\n - marketingcloud@cloudity.com\n - integration-user@cloudity.com\n\nmonitoringAllowedSectionsActions:\n \"Some section\": [] // Will ignore all actions from such section\n \"Some other section\": [\"actionType1\",\"actionType2\",\"actionType3\"] // Will ignore only those 3 actions from section \"Some other section\". Other actions in the same section will be considered as suspect.\n```\n\n## Excel output example\n\n![](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-monitoring-audittrail-excel.jpg)\n\n## Local output example\n\n![](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-monitoring-audittrail-local.jpg)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-suspect-audit-trail/) and can output Grafana, Slack and MsTeams Notifications.\n",
6040
6051
  "examples": [
6041
- "$ sf hardis:org:diagnose:releaseupdates"
6052
+ "$ sf hardis:org:diagnose:audittrail",
6053
+ "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com",
6054
+ "$ sf hardis:org:diagnose:audittrail --excludeusers baptiste@titi.com,bertrand@titi.com",
6055
+ "$ sf hardis:org:diagnose:audittrail --lastndays 5"
6042
6056
  ],
6043
6057
  "flags": {
6044
6058
  "json": {
@@ -6056,6 +6070,22 @@
6056
6070
  "multiple": false,
6057
6071
  "type": "option"
6058
6072
  },
6073
+ "excludeusers": {
6074
+ "char": "e",
6075
+ "description": "Comma-separated list of usernames to exclude",
6076
+ "name": "excludeusers",
6077
+ "hasDynamicHelp": false,
6078
+ "multiple": false,
6079
+ "type": "option"
6080
+ },
6081
+ "lastndays": {
6082
+ "char": "t",
6083
+ "description": "Number of days to extract from today (included)",
6084
+ "name": "lastndays",
6085
+ "hasDynamicHelp": false,
6086
+ "multiple": false,
6087
+ "type": "option"
6088
+ },
6059
6089
  "outputfile": {
6060
6090
  "char": "f",
6061
6091
  "description": "Force the path and name of output report file. Must end with .csv",
@@ -6102,13 +6132,13 @@
6102
6132
  },
6103
6133
  "hasDynamicHelp": true,
6104
6134
  "hiddenAliases": [],
6105
- "id": "hardis:org:diagnose:releaseupdates",
6135
+ "id": "hardis:org:diagnose:audittrail",
6106
6136
  "pluginAlias": "sfdx-hardis",
6107
6137
  "pluginName": "sfdx-hardis",
6108
6138
  "pluginType": "core",
6109
6139
  "strict": true,
6110
6140
  "enableJsonFlag": true,
6111
- "title": "Check Release Updates of an org",
6141
+ "title": "Diagnose content of Setup Audit Trail",
6112
6142
  "requiresProject": false,
6113
6143
  "isESM": true,
6114
6144
  "relativePath": [
@@ -6117,42 +6147,42 @@
6117
6147
  "hardis",
6118
6148
  "org",
6119
6149
  "diagnose",
6120
- "releaseupdates.js"
6150
+ "audittrail.js"
6121
6151
  ],
6122
6152
  "aliasPermutations": [],
6123
6153
  "permutations": [
6124
- "hardis:org:diagnose:releaseupdates",
6125
- "org:hardis:diagnose:releaseupdates",
6126
- "org:diagnose:hardis:releaseupdates",
6127
- "org:diagnose:releaseupdates:hardis",
6128
- "hardis:diagnose:org:releaseupdates",
6129
- "diagnose:hardis:org:releaseupdates",
6130
- "diagnose:org:hardis:releaseupdates",
6131
- "diagnose:org:releaseupdates:hardis",
6132
- "hardis:diagnose:releaseupdates:org",
6133
- "diagnose:hardis:releaseupdates:org",
6134
- "diagnose:releaseupdates:hardis:org",
6135
- "diagnose:releaseupdates:org:hardis",
6136
- "hardis:org:releaseupdates:diagnose",
6137
- "org:hardis:releaseupdates:diagnose",
6138
- "org:releaseupdates:hardis:diagnose",
6139
- "org:releaseupdates:diagnose:hardis",
6140
- "hardis:releaseupdates:org:diagnose",
6141
- "releaseupdates:hardis:org:diagnose",
6142
- "releaseupdates:org:hardis:diagnose",
6143
- "releaseupdates:org:diagnose:hardis",
6144
- "hardis:releaseupdates:diagnose:org",
6145
- "releaseupdates:hardis:diagnose:org",
6146
- "releaseupdates:diagnose:hardis:org",
6147
- "releaseupdates:diagnose:org:hardis"
6154
+ "hardis:org:diagnose:audittrail",
6155
+ "org:hardis:diagnose:audittrail",
6156
+ "org:diagnose:hardis:audittrail",
6157
+ "org:diagnose:audittrail:hardis",
6158
+ "hardis:diagnose:org:audittrail",
6159
+ "diagnose:hardis:org:audittrail",
6160
+ "diagnose:org:hardis:audittrail",
6161
+ "diagnose:org:audittrail:hardis",
6162
+ "hardis:diagnose:audittrail:org",
6163
+ "diagnose:hardis:audittrail:org",
6164
+ "diagnose:audittrail:hardis:org",
6165
+ "diagnose:audittrail:org:hardis",
6166
+ "hardis:org:audittrail:diagnose",
6167
+ "org:hardis:audittrail:diagnose",
6168
+ "org:audittrail:hardis:diagnose",
6169
+ "org:audittrail:diagnose:hardis",
6170
+ "hardis:audittrail:org:diagnose",
6171
+ "audittrail:hardis:org:diagnose",
6172
+ "audittrail:org:hardis:diagnose",
6173
+ "audittrail:org:diagnose:hardis",
6174
+ "hardis:audittrail:diagnose:org",
6175
+ "audittrail:hardis:diagnose:org",
6176
+ "audittrail:diagnose:hardis:org",
6177
+ "audittrail:diagnose:org:hardis"
6148
6178
  ]
6149
6179
  },
6150
- "hardis:org:diagnose:unsecure-connected-apps": {
6180
+ "hardis:org:diagnose:instanceupgrade": {
6151
6181
  "aliases": [],
6152
6182
  "args": {},
6153
- "description": "\n## Command Behavior\n\n**Detects unsecured Connected Apps in a Salesforce org and generates detailed reports for security analysis.**\n\nThis command is a critical security diagnostic tool that helps administrators identify Connected Apps that may pose security risks due to improper configuration. It provides comprehensive analysis of OAuth tokens and Connected App security settings to ensure proper access control.\n\nKey functionalities:\n\n- **OAuth Token Analysis:** Queries all OAuth tokens in the org using SOQL to retrieve comprehensive token information including app names, users, authorization status, and usage statistics.\n- **Security Status Assessment:** Evaluates each Connected App's security configuration by checking the `IsUsingAdminAuthorization` flag to determine if admin pre-approval is required.\n- **Unsecured App Detection:** Identifies Connected Apps that allow users to authorize themselves without admin approval, which can pose security risks.\n- **Detailed Reporting:** Generates two comprehensive CSV reports:\n - **OAuth Tokens Report:** Lists all OAuth tokens with security status, user information, and usage data\n - **Connected Apps Summary:** Aggregates unsecured Connected Apps with counts of associated OAuth tokens\n- **Visual Indicators:** Uses status icons (❌ for unsecured, ✅ for secured) to provide immediate visual feedback on security status.\n- **Security Recommendations:** Provides actionable guidance on how to secure Connected Apps through proper configuration.\n- **Notifications:** Sends alerts to configured channels (Grafana, Slack, MS Teams) with security findings and attached reports.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-org-security/) and can output Grafana, Slack and MsTeams Notifications.\n\n<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/jHv8yrSK8Dg\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Query Execution:** Executes a comprehensive SOQL query on the `OauthToken` object, joining with `AppMenuItem` and `User` objects to gather complete security context.\n- **Security Analysis Logic:** Analyzes the `AppMenuItem.IsUsingAdminAuthorization` field to determine if a Connected App requires admin pre-approval for user authorization.\n- **Data Transformation:** Processes raw SOQL results to add security status indicators and reorganize data for optimal reporting and analysis.\n- **Aggregation Processing:** Groups OAuth tokens by Connected App name to provide summary statistics and identify the most problematic applications.\n- **Report Generation:** Uses `generateCsvFile` to create structured CSV reports with proper formatting and metadata for easy analysis and sharing.\n- **Notification Integration:** Integrates with the `NotifProvider` to send security alerts with detailed metrics, including the number of unsecured Connected Apps and associated OAuth tokens.\n- **File Management:** Generates multiple output formats (CSV, XLSX) and manages file paths using `generateReportPath` for consistent report organization.\n- **Connection Management:** Uses `setConnectionVariables` to ensure proper authentication context for notification providers that require org connection details.\n</details>\n",
6183
+ "description": "\n## Command Behavior\n\n**Retrieves and displays the scheduled upgrade date for a Salesforce org's instance.**\n\nThis command provides crucial information about when your Salesforce instance will be upgraded to the next major release (Spring, Summer, or Winter). This is vital for release planning, testing, and ensuring compatibility with upcoming Salesforce features.\n\nKey functionalities:\n\n- **Instance Identification:** Determines the Salesforce instance name of your target org.\n- **Upgrade Date Retrieval:** Fetches the planned start time of the next major core service upgrade for that instance from the Salesforce Status API.\n- **Days Until Upgrade:** Calculates and displays the number of days remaining until the next major upgrade.\n- **Severity-Based Logging:** Adjusts the log severity (info, warning) based on the proximity of the upgrade date, providing a visual cue for urgency.\n- **Notifications:** Sends notifications to configured channels (e.g., Slack, MS Teams, Grafana) with the upgrade information, making it suitable for automated monitoring.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Query:** It first queries the `Organization` object in Salesforce to get the `InstanceName` of the target org.\n- **Salesforce Status API Integration:** It makes an HTTP GET request to the Salesforce Status API (`https://api.status.salesforce.com/v1/instances/{instanceName}/status`) to retrieve detailed information about the instance, including scheduled maintenances.\n- **Data Parsing:** It parses the JSON response from the Status API to extract the relevant major release upgrade information.\n- **Date Calculation:** Uses the `moment` library to calculate the difference in days between the current date and the planned upgrade date.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including the instance name, upgrade date, and days remaining, along with relevant metrics for monitoring dashboards.\n- **User Feedback:** Provides clear messages to the user about the upgrade status and proximity.\n</details>\n",
6154
6184
  "examples": [
6155
- "$ sf hardis:org:diagnose:unsecure-connected-apps"
6185
+ "$ sf hardis:org:diagnose:instanceupgrade"
6156
6186
  ],
6157
6187
  "flags": {
6158
6188
  "json": {
@@ -6170,14 +6200,6 @@
6170
6200
  "multiple": false,
6171
6201
  "type": "option"
6172
6202
  },
6173
- "outputfile": {
6174
- "char": "f",
6175
- "description": "Force the path and name of output report file. Must end with .csv",
6176
- "name": "outputfile",
6177
- "hasDynamicHelp": false,
6178
- "multiple": false,
6179
- "type": "option"
6180
- },
6181
6203
  "debug": {
6182
6204
  "char": "d",
6183
6205
  "description": "Activate debug mode (more logs)",
@@ -6216,13 +6238,13 @@
6216
6238
  },
6217
6239
  "hasDynamicHelp": true,
6218
6240
  "hiddenAliases": [],
6219
- "id": "hardis:org:diagnose:unsecure-connected-apps",
6241
+ "id": "hardis:org:diagnose:instanceupgrade",
6220
6242
  "pluginAlias": "sfdx-hardis",
6221
6243
  "pluginName": "sfdx-hardis",
6222
6244
  "pluginType": "core",
6223
6245
  "strict": true,
6224
6246
  "enableJsonFlag": true,
6225
- "title": "Detect Unsecured Connected Apps",
6247
+ "title": "Get Instance Upgrade date",
6226
6248
  "requiresProject": false,
6227
6249
  "isESM": true,
6228
6250
  "relativePath": [
@@ -6231,43 +6253,45 @@
6231
6253
  "hardis",
6232
6254
  "org",
6233
6255
  "diagnose",
6234
- "unsecure-connected-apps.js"
6256
+ "instanceupgrade.js"
6235
6257
  ],
6236
6258
  "aliasPermutations": [],
6237
6259
  "permutations": [
6238
- "hardis:org:diagnose:unsecure-connected-apps",
6239
- "org:hardis:diagnose:unsecure-connected-apps",
6240
- "org:diagnose:hardis:unsecure-connected-apps",
6241
- "org:diagnose:unsecure-connected-apps:hardis",
6242
- "hardis:diagnose:org:unsecure-connected-apps",
6243
- "diagnose:hardis:org:unsecure-connected-apps",
6244
- "diagnose:org:hardis:unsecure-connected-apps",
6245
- "diagnose:org:unsecure-connected-apps:hardis",
6246
- "hardis:diagnose:unsecure-connected-apps:org",
6247
- "diagnose:hardis:unsecure-connected-apps:org",
6248
- "diagnose:unsecure-connected-apps:hardis:org",
6249
- "diagnose:unsecure-connected-apps:org:hardis",
6250
- "hardis:org:unsecure-connected-apps:diagnose",
6251
- "org:hardis:unsecure-connected-apps:diagnose",
6252
- "org:unsecure-connected-apps:hardis:diagnose",
6253
- "org:unsecure-connected-apps:diagnose:hardis",
6254
- "hardis:unsecure-connected-apps:org:diagnose",
6255
- "unsecure-connected-apps:hardis:org:diagnose",
6256
- "unsecure-connected-apps:org:hardis:diagnose",
6257
- "unsecure-connected-apps:org:diagnose:hardis",
6258
- "hardis:unsecure-connected-apps:diagnose:org",
6259
- "unsecure-connected-apps:hardis:diagnose:org",
6260
- "unsecure-connected-apps:diagnose:hardis:org",
6261
- "unsecure-connected-apps:diagnose:org:hardis"
6260
+ "hardis:org:diagnose:instanceupgrade",
6261
+ "org:hardis:diagnose:instanceupgrade",
6262
+ "org:diagnose:hardis:instanceupgrade",
6263
+ "org:diagnose:instanceupgrade:hardis",
6264
+ "hardis:diagnose:org:instanceupgrade",
6265
+ "diagnose:hardis:org:instanceupgrade",
6266
+ "diagnose:org:hardis:instanceupgrade",
6267
+ "diagnose:org:instanceupgrade:hardis",
6268
+ "hardis:diagnose:instanceupgrade:org",
6269
+ "diagnose:hardis:instanceupgrade:org",
6270
+ "diagnose:instanceupgrade:hardis:org",
6271
+ "diagnose:instanceupgrade:org:hardis",
6272
+ "hardis:org:instanceupgrade:diagnose",
6273
+ "org:hardis:instanceupgrade:diagnose",
6274
+ "org:instanceupgrade:hardis:diagnose",
6275
+ "org:instanceupgrade:diagnose:hardis",
6276
+ "hardis:instanceupgrade:org:diagnose",
6277
+ "instanceupgrade:hardis:org:diagnose",
6278
+ "instanceupgrade:org:hardis:diagnose",
6279
+ "instanceupgrade:org:diagnose:hardis",
6280
+ "hardis:instanceupgrade:diagnose:org",
6281
+ "instanceupgrade:hardis:diagnose:org",
6282
+ "instanceupgrade:diagnose:hardis:org",
6283
+ "instanceupgrade:diagnose:org:hardis"
6262
6284
  ]
6263
6285
  },
6264
- "hardis:org:diagnose:unused-apex-classes": {
6286
+ "hardis:org:diagnose:legacyapi": {
6265
6287
  "aliases": [],
6266
6288
  "args": {},
6267
- "description": "List all async Apex classes (Batch,Queueable,Schedulable) that has not been called for more than 365 days.\n \nThe result class list probably can be removed from the project, and that will improve your test classes performances :)\n\nThe number of unused day is overridable using --days option. \n\nThe command uses queries on AsyncApexJob and CronTrigger technical tables to build the result.\n\nApex Classes CreatedBy and CreatedOn fields are calculated from MIN(date from git, date from org)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-apex-classes/) and can output Grafana, Slack and MsTeams Notifications.\n\n![](https://sfdx-hardis.cloudity.com/assets/images/screenshot-monitoring-unused-apex-grafana.jpg)\n",
6289
+ "description": "Checks if an org uses retired or someday retired API version\n\n\nSee article below\n\n[![Handle Salesforce API versions Deprecation like a pro](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-deprecated-api.jpg)](https://nicolas.vuillamy.fr/handle-salesforce-api-versions-deprecation-like-a-pro-335065f52238)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-deprecated-api-calls/) and can output Grafana, Slack and MsTeams Notifications.\n",
6268
6290
  "examples": [
6269
- "$ sf hardis:org:diagnose:unused-apex-classes",
6270
- "$ sf hardis:org:diagnose:unused-apex-classes --days 700"
6291
+ "$ sf hardis:org:diagnose:legacyapi",
6292
+ "$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com",
6293
+ "$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'",
6294
+ "$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv"
6271
6295
  ],
6272
6296
  "flags": {
6273
6297
  "json": {
@@ -6285,18 +6309,28 @@
6285
6309
  "multiple": false,
6286
6310
  "type": "option"
6287
6311
  },
6288
- "outputfile": {
6289
- "char": "f",
6290
- "description": "Force the path and name of output report file. Must end with .csv",
6291
- "name": "outputfile",
6312
+ "eventtype": {
6313
+ "char": "e",
6314
+ "description": "Type of EventLogFile event to analyze",
6315
+ "name": "eventtype",
6316
+ "default": "ApiTotalUsage",
6292
6317
  "hasDynamicHelp": false,
6293
6318
  "multiple": false,
6294
6319
  "type": "option"
6295
6320
  },
6296
- "days": {
6297
- "char": "t",
6298
- "description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
6299
- "name": "days",
6321
+ "limit": {
6322
+ "char": "l",
6323
+ "description": "Number of latest EventLogFile events to analyze",
6324
+ "name": "limit",
6325
+ "default": 999,
6326
+ "hasDynamicHelp": false,
6327
+ "multiple": false,
6328
+ "type": "option"
6329
+ },
6330
+ "outputfile": {
6331
+ "char": "f",
6332
+ "description": "Force the path and name of output report file. Must end with .csv",
6333
+ "name": "outputfile",
6300
6334
  "hasDynamicHelp": false,
6301
6335
  "multiple": false,
6302
6336
  "type": "option"
@@ -6339,13 +6373,13 @@
6339
6373
  },
6340
6374
  "hasDynamicHelp": true,
6341
6375
  "hiddenAliases": [],
6342
- "id": "hardis:org:diagnose:unused-apex-classes",
6376
+ "id": "hardis:org:diagnose:legacyapi",
6343
6377
  "pluginAlias": "sfdx-hardis",
6344
6378
  "pluginName": "sfdx-hardis",
6345
6379
  "pluginType": "core",
6346
6380
  "strict": true,
6347
6381
  "enableJsonFlag": true,
6348
- "title": "Detect unused Apex classes in an org",
6382
+ "title": "Check for legacy API use",
6349
6383
  "requiresProject": false,
6350
6384
  "isESM": true,
6351
6385
  "relativePath": [
@@ -6354,42 +6388,42 @@
6354
6388
  "hardis",
6355
6389
  "org",
6356
6390
  "diagnose",
6357
- "unused-apex-classes.js"
6391
+ "legacyapi.js"
6358
6392
  ],
6359
6393
  "aliasPermutations": [],
6360
6394
  "permutations": [
6361
- "hardis:org:diagnose:unused-apex-classes",
6362
- "org:hardis:diagnose:unused-apex-classes",
6363
- "org:diagnose:hardis:unused-apex-classes",
6364
- "org:diagnose:unused-apex-classes:hardis",
6365
- "hardis:diagnose:org:unused-apex-classes",
6366
- "diagnose:hardis:org:unused-apex-classes",
6367
- "diagnose:org:hardis:unused-apex-classes",
6368
- "diagnose:org:unused-apex-classes:hardis",
6369
- "hardis:diagnose:unused-apex-classes:org",
6370
- "diagnose:hardis:unused-apex-classes:org",
6371
- "diagnose:unused-apex-classes:hardis:org",
6372
- "diagnose:unused-apex-classes:org:hardis",
6373
- "hardis:org:unused-apex-classes:diagnose",
6374
- "org:hardis:unused-apex-classes:diagnose",
6375
- "org:unused-apex-classes:hardis:diagnose",
6376
- "org:unused-apex-classes:diagnose:hardis",
6377
- "hardis:unused-apex-classes:org:diagnose",
6378
- "unused-apex-classes:hardis:org:diagnose",
6379
- "unused-apex-classes:org:hardis:diagnose",
6380
- "unused-apex-classes:org:diagnose:hardis",
6381
- "hardis:unused-apex-classes:diagnose:org",
6382
- "unused-apex-classes:hardis:diagnose:org",
6383
- "unused-apex-classes:diagnose:hardis:org",
6384
- "unused-apex-classes:diagnose:org:hardis"
6395
+ "hardis:org:diagnose:legacyapi",
6396
+ "org:hardis:diagnose:legacyapi",
6397
+ "org:diagnose:hardis:legacyapi",
6398
+ "org:diagnose:legacyapi:hardis",
6399
+ "hardis:diagnose:org:legacyapi",
6400
+ "diagnose:hardis:org:legacyapi",
6401
+ "diagnose:org:hardis:legacyapi",
6402
+ "diagnose:org:legacyapi:hardis",
6403
+ "hardis:diagnose:legacyapi:org",
6404
+ "diagnose:hardis:legacyapi:org",
6405
+ "diagnose:legacyapi:hardis:org",
6406
+ "diagnose:legacyapi:org:hardis",
6407
+ "hardis:org:legacyapi:diagnose",
6408
+ "org:hardis:legacyapi:diagnose",
6409
+ "org:legacyapi:hardis:diagnose",
6410
+ "org:legacyapi:diagnose:hardis",
6411
+ "hardis:legacyapi:org:diagnose",
6412
+ "legacyapi:hardis:org:diagnose",
6413
+ "legacyapi:org:hardis:diagnose",
6414
+ "legacyapi:org:diagnose:hardis",
6415
+ "hardis:legacyapi:diagnose:org",
6416
+ "legacyapi:hardis:diagnose:org",
6417
+ "legacyapi:diagnose:hardis:org",
6418
+ "legacyapi:diagnose:org:hardis"
6385
6419
  ]
6386
6420
  },
6387
- "hardis:org:diagnose:unused-connected-apps": {
6421
+ "hardis:org:diagnose:licenses": {
6388
6422
  "aliases": [],
6389
6423
  "args": {},
6390
- "description": "\n## Command Behavior\n\n**Identifies and reports on potentially unused Connected Apps in a Salesforce org, suggesting candidates for deletion or deactivation.**\n\nThis command helps improve org security and reduce technical debt by pinpointing Connected Apps that are no longer actively used. Connected Apps can pose security risks if left unmonitored, and cleaning them up contributes to a healthier Salesforce environment.\n\nKey functionalities:\n\n- **Connected App Data Collection:** Gathers information about all Connected Apps in the org, including creation and last modified dates, and associated users.\n- **Usage Analysis:** Analyzes `LoginHistory` and `OAuthToken` records to determine the last usage date of each Connected App.\n- **Inactivity Detection:** Flags Connected Apps as potentially unused if they have no recent login history or OAuth token usage.\n- **Accessibility Check:** Examines Connected App metadata to identify if they are accessible (e.g., if they require admin approval and have no profiles or permission sets assigned).\n- **Ignored Apps:** Automatically ignores a predefined list of common Salesforce Connected Apps (e.g., `Salesforce CLI`, `Salesforce Mobile Dashboards`). You can extend this list by defining the `ALLOWED_INACTIVE_CONNECTED_APPS` environment variable.\n- **CSV Report Generation:** Generates a CSV file containing details of all analyzed Connected Apps, including their usage status, last usage date, and reasons for being flagged as potentially unused.\n- **Notifications:** Sends notifications to configured channels (Grafana, Slack, MS Teams) with a summary of potentially unused Connected Apps.\n\n**Default Ignored Connected Apps:**\n\n- Ant Migration Tool\n- Chatter Desktop\n- Chatter Mobile for BlackBerry\n- Force.com IDE\n- OIQ_Integration\n- Salesforce CLI\n- Salesforce Files\n- Salesforce Mobile Dashboards\n- Salesforce Touch\n- Salesforce for Outlook\n- SalesforceA\n- SalesforceA for Android\n- SalesforceA for iOS\n- SalesforceDX Namespace Registry\n- SalesforceIQ\n\nYou can add more ignored apps by defining a comma-separated list of names in the `ALLOWED_INACTIVE_CONNECTED_APPS` environment variable.\n\n_Example: \nALLOWED_INACTIVE_CONNECTED_APPS=My App 1,My App 2, My App 3_\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-connected-apps/) and can output Grafana, Slack and MsTeams Notifications.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Queries:** It performs SOQL queries against `ConnectedApplication`, `LoginHistory`, and `OAuthToken` objects to gather comprehensive data about Connected Apps and their usage.\n- **Temporary SFDX Project:** It creates a temporary SFDX project to retrieve Connected App metadata, allowing for local parsing and analysis of their XML files.\n- **Metadata Parsing:** It parses the `connectedApp-meta.xml` files to check for `isAdminApproved` and the presence of `profileName` or `permissionsetName` to determine accessibility.\n- **Data Correlation:** It correlates data from various Salesforce objects to build a complete picture of each Connected App's usage and status.\n- **Date Calculation:** Uses `moment` to calculate the time since the last OAuth token usage.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of unused Connected Apps.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **File System Operations:** Uses `fs-extra` for creating and removing temporary directories and files.\n- **Environment Variable Reading:** Reads the `ALLOWED_INACTIVE_CONNECTED_APPS` environment variable to customize the list of ignored Connected Apps.\n</details>\n",
6424
+ "description": "\n**Lists and analyzes User Licenses and Permission Set Licenses subscribed and used in a Salesforce org.**\n\nThis command provides a comprehensive overview of your Salesforce license consumption. It's particularly useful for:\n\n- **License Management:** Understanding which licenses are active, how many are available, and how many are being used.\n- **Cost Optimization:** Identifying unused or underutilized licenses that could be reallocated or decommissioned.\n- **Compliance:** Ensuring that your organization is compliant with Salesforce licensing agreements.\n- **Monitoring:** Tracking license usage trends over time.\n\nKey functionalities:\n\n- **User License Details:** Retrieves information about standard and custom User Licenses, including `MasterLabel`, `Name`, `TotalLicenses`, and `UsedLicenses`.\n- **Permission Set License Details:** Retrieves information about Permission Set Licenses, including `MasterLabel`, `PermissionSetLicenseKey`, `TotalLicenses`, and `UsedLicenses`.\n- **Used Licenses Filter:** The `--usedonly` flag allows you to filter the report to show only licenses that have at least one `UsedLicenses` count greater than zero.\n- **CSV Report Generation:** Generates a CSV file containing all the retrieved license information, suitable for detailed analysis.\n- **Notifications:** Sends notifications to configured channels (e.g., Grafana, Slack, MS Teams) with a summary of license usage, including lists of active and used licenses.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Queries:** It executes SOQL queries against the `UserLicense` and `PermissionSetLicense` objects in Salesforce to retrieve license data.\n- **Data Transformation:** It processes the query results, reformatting the data to be more readable and consistent for reporting purposes (e.g., removing `Id` and `attributes`, renaming `PermissionSetLicenseKey` to `Name`).\n- **Data Aggregation:** It aggregates license information, creating a `licensesByKey` object for quick lookups and a `usedLicenses` array for a concise list of actively used licenses.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of license data.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **User Feedback:** Provides clear messages to the user about the license extraction process and the used licenses.\n</details>\n",
6391
6425
  "examples": [
6392
- "$ sf hardis:org:diagnose:unused-connected-apps"
6426
+ "$ sf hardis:org:diagnose:licenses"
6393
6427
  ],
6394
6428
  "flags": {
6395
6429
  "json": {
@@ -6415,6 +6449,13 @@
6415
6449
  "multiple": false,
6416
6450
  "type": "option"
6417
6451
  },
6452
+ "usedonly": {
6453
+ "char": "u",
6454
+ "description": "Filter to have only used licenses",
6455
+ "name": "usedonly",
6456
+ "allowNo": false,
6457
+ "type": "boolean"
6458
+ },
6418
6459
  "debug": {
6419
6460
  "char": "d",
6420
6461
  "description": "Activate debug mode (more logs)",
@@ -6453,30 +6494,13 @@
6453
6494
  },
6454
6495
  "hasDynamicHelp": true,
6455
6496
  "hiddenAliases": [],
6456
- "id": "hardis:org:diagnose:unused-connected-apps",
6497
+ "id": "hardis:org:diagnose:licenses",
6457
6498
  "pluginAlias": "sfdx-hardis",
6458
6499
  "pluginName": "sfdx-hardis",
6459
6500
  "pluginType": "core",
6460
6501
  "strict": true,
6461
6502
  "enableJsonFlag": true,
6462
- "title": "Unused Connected Apps in an org",
6463
- "allowedInactiveConnectedApps": [
6464
- "Ant Migration Tool",
6465
- "Chatter Desktop",
6466
- "Chatter Mobile for BlackBerry",
6467
- "Force.com IDE",
6468
- "OIQ_Integration",
6469
- "Salesforce CLI",
6470
- "Salesforce Files",
6471
- "Salesforce Mobile Dashboards",
6472
- "Salesforce Touch",
6473
- "Salesforce for Outlook",
6474
- "SalesforceA",
6475
- "SalesforceA for Android",
6476
- "SalesforceA for iOS",
6477
- "SalesforceDX Namespace Registry",
6478
- "SalesforceIQ"
6479
- ],
6503
+ "title": "List licenses subscribed and used in a Salesforce org",
6480
6504
  "requiresProject": false,
6481
6505
  "isESM": true,
6482
6506
  "relativePath": [
@@ -6485,43 +6509,42 @@
6485
6509
  "hardis",
6486
6510
  "org",
6487
6511
  "diagnose",
6488
- "unused-connected-apps.js"
6512
+ "licenses.js"
6489
6513
  ],
6490
6514
  "aliasPermutations": [],
6491
6515
  "permutations": [
6492
- "hardis:org:diagnose:unused-connected-apps",
6493
- "org:hardis:diagnose:unused-connected-apps",
6494
- "org:diagnose:hardis:unused-connected-apps",
6495
- "org:diagnose:unused-connected-apps:hardis",
6496
- "hardis:diagnose:org:unused-connected-apps",
6497
- "diagnose:hardis:org:unused-connected-apps",
6498
- "diagnose:org:hardis:unused-connected-apps",
6499
- "diagnose:org:unused-connected-apps:hardis",
6500
- "hardis:diagnose:unused-connected-apps:org",
6501
- "diagnose:hardis:unused-connected-apps:org",
6502
- "diagnose:unused-connected-apps:hardis:org",
6503
- "diagnose:unused-connected-apps:org:hardis",
6504
- "hardis:org:unused-connected-apps:diagnose",
6505
- "org:hardis:unused-connected-apps:diagnose",
6506
- "org:unused-connected-apps:hardis:diagnose",
6507
- "org:unused-connected-apps:diagnose:hardis",
6508
- "hardis:unused-connected-apps:org:diagnose",
6509
- "unused-connected-apps:hardis:org:diagnose",
6510
- "unused-connected-apps:org:hardis:diagnose",
6511
- "unused-connected-apps:org:diagnose:hardis",
6512
- "hardis:unused-connected-apps:diagnose:org",
6513
- "unused-connected-apps:hardis:diagnose:org",
6514
- "unused-connected-apps:diagnose:hardis:org",
6515
- "unused-connected-apps:diagnose:org:hardis"
6516
+ "hardis:org:diagnose:licenses",
6517
+ "org:hardis:diagnose:licenses",
6518
+ "org:diagnose:hardis:licenses",
6519
+ "org:diagnose:licenses:hardis",
6520
+ "hardis:diagnose:org:licenses",
6521
+ "diagnose:hardis:org:licenses",
6522
+ "diagnose:org:hardis:licenses",
6523
+ "diagnose:org:licenses:hardis",
6524
+ "hardis:diagnose:licenses:org",
6525
+ "diagnose:hardis:licenses:org",
6526
+ "diagnose:licenses:hardis:org",
6527
+ "diagnose:licenses:org:hardis",
6528
+ "hardis:org:licenses:diagnose",
6529
+ "org:hardis:licenses:diagnose",
6530
+ "org:licenses:hardis:diagnose",
6531
+ "org:licenses:diagnose:hardis",
6532
+ "hardis:licenses:org:diagnose",
6533
+ "licenses:hardis:org:diagnose",
6534
+ "licenses:org:hardis:diagnose",
6535
+ "licenses:org:diagnose:hardis",
6536
+ "hardis:licenses:diagnose:org",
6537
+ "licenses:hardis:diagnose:org",
6538
+ "licenses:diagnose:hardis:org",
6539
+ "licenses:diagnose:org:hardis"
6516
6540
  ]
6517
6541
  },
6518
- "hardis:org:diagnose:unusedlicenses": {
6542
+ "hardis:org:diagnose:releaseupdates": {
6519
6543
  "aliases": [],
6520
6544
  "args": {},
6521
- "description": "\n## Command Behavior\n\n**Detects and suggests the deletion of unused Permission Set License Assignments in a Salesforce org.**\n\nWhen a Permission Set (PS) linked to a Permission Set License (PSL) is assigned to a user, a Permission Set License Assignment (PSLA) is automatically created. However, when that PS is unassigned from the user, the PSLA is *not* automatically deleted. This can lead to organizations being charged for unused PSLAs, representing a hidden cost and technical debt.\n\nThis command identifies such useless PSLAs and provides options to delete them, helping to optimize license usage and reduce unnecessary expenses.\n\nKey functionalities:\n\n- **PSLA Detection:** Queries the Salesforce org to find all active PSLAs.\n- **Usage Verification:** Correlates PSLAs with actual Permission Set Assignments and Permission Set Group Assignments to determine if the underlying Permission Sets are still assigned to the user.\n- **Special Case Handling:** Accounts for specific scenarios where profiles might implicitly assign PSLAs (e.g., `Salesforce API Only` profile assigning `SalesforceAPIIntegrationPsl`) and allows for always excluding certain PSLAs from the unused check.\n- **Reporting:** Generates a CSV report of all identified unused PSLAs, including the user and the associated Permission Set License.\n- **Notifications:** Sends notifications to configured channels (Grafana, Slack, MS Teams) with a summary of unused PSLAs.\n- **Interactive Deletion:** In non-CI environments, it offers an interactive prompt to bulk delete the identified unused PSLAs.\n\nMany thanks to [Vincent Finet](https://www.linkedin.com/in/vincentfinet/) for the inspiration during his great speaker session at [French Touch Dreamin '23](https://frenchtouchdreamin.com/), and his kind agreement for reusing such inspiration in this command :)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-licenses/) and can output Grafana, Slack and MsTeams Notifications.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves extensive querying of Salesforce objects and data correlation:\n\n- **SOQL Queries (Bulk API):** It uses `bulkQuery` and `bulkQueryChunksIn` to efficiently retrieve large volumes of data from `PermissionSetLicenseAssign`, `PermissionSetLicense`, `PermissionSet`, `PermissionSetGroupComponent`, and `PermissionSetAssignment` objects.\n- **Data Correlation:** It meticulously correlates data across these objects to determine if a `PermissionSetLicenseAssign` record has a corresponding active assignment to a Permission Set or Permission Set Group for the same user.\n- **Filtering Logic:** It applies complex filtering logic to exclude PSLAs that are genuinely in use or are part of predefined exceptions (e.g., `alwaysExcludeForActiveUsersPermissionSetLicenses`).\n- **Bulk Deletion:** If the user opts to delete unused PSLAs, it uses `bulkUpdate` with the `delete` operation to efficiently remove multiple records.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of unused PSLAs.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **User Interaction:** Uses `prompts` for interactive confirmation before performing deletion operations.\n</details>\n",
6545
+ "description": "Export Release Updates into a CSV file with selected criteria, and highlight Release Updates that should be checked.\n\nBefore publishing **Breaking Changes** ❌, Salesforce announce them in the setup menu [**Release Updates**](https://help.salesforce.com/s/articleView?id=sf.release_updates.htm&type=5)\n\n⚠️ Some of them are very important, because if you don't make the related upgrades in time (ex: before Winter 25) , your production org can crash !\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-release-updates/) and can output Grafana, Slack and MsTeams Notifications.\n",
6522
6546
  "examples": [
6523
- "$ sf hardis:org:diagnose:unusedlicenses",
6524
- "$ sf hardis:org:diagnose:unusedlicenses --fix"
6547
+ "$ sf hardis:org:diagnose:releaseupdates"
6525
6548
  ],
6526
6549
  "flags": {
6527
6550
  "json": {
@@ -6585,32 +6608,14 @@
6585
6608
  },
6586
6609
  "hasDynamicHelp": true,
6587
6610
  "hiddenAliases": [],
6588
- "id": "hardis:org:diagnose:unusedlicenses",
6611
+ "id": "hardis:org:diagnose:releaseupdates",
6589
6612
  "pluginAlias": "sfdx-hardis",
6590
6613
  "pluginName": "sfdx-hardis",
6591
6614
  "pluginType": "core",
6592
6615
  "strict": true,
6593
6616
  "enableJsonFlag": true,
6594
- "title": "Detect unused Permission Set Licenses (beta)",
6617
+ "title": "Check Release Updates of an org",
6595
6618
  "requiresProject": false,
6596
- "additionalPermissionSetsToAlwaysGet": [
6597
- "Sales_User"
6598
- ],
6599
- "permSetsPermSetLicenses": [
6600
- {
6601
- "permSet": "Sales_User",
6602
- "permSetLicense": "SalesUserPsl"
6603
- }
6604
- ],
6605
- "profilesPermissionSetLicenses": [
6606
- {
6607
- "profile": "Salesforce API Only",
6608
- "permSetLicense": "SalesforceAPIIntegrationPsl"
6609
- }
6610
- ],
6611
- "alwaysExcludeForActiveUsersPermissionSetLicenses": [
6612
- "IdentityConnect"
6613
- ],
6614
6619
  "isESM": true,
6615
6620
  "relativePath": [
6616
6621
  "lib",
@@ -6618,46 +6623,42 @@
6618
6623
  "hardis",
6619
6624
  "org",
6620
6625
  "diagnose",
6621
- "unusedlicenses.js"
6626
+ "releaseupdates.js"
6622
6627
  ],
6623
6628
  "aliasPermutations": [],
6624
6629
  "permutations": [
6625
- "hardis:org:diagnose:unusedlicenses",
6626
- "org:hardis:diagnose:unusedlicenses",
6627
- "org:diagnose:hardis:unusedlicenses",
6628
- "org:diagnose:unusedlicenses:hardis",
6629
- "hardis:diagnose:org:unusedlicenses",
6630
- "diagnose:hardis:org:unusedlicenses",
6631
- "diagnose:org:hardis:unusedlicenses",
6632
- "diagnose:org:unusedlicenses:hardis",
6633
- "hardis:diagnose:unusedlicenses:org",
6634
- "diagnose:hardis:unusedlicenses:org",
6635
- "diagnose:unusedlicenses:hardis:org",
6636
- "diagnose:unusedlicenses:org:hardis",
6637
- "hardis:org:unusedlicenses:diagnose",
6638
- "org:hardis:unusedlicenses:diagnose",
6639
- "org:unusedlicenses:hardis:diagnose",
6640
- "org:unusedlicenses:diagnose:hardis",
6641
- "hardis:unusedlicenses:org:diagnose",
6642
- "unusedlicenses:hardis:org:diagnose",
6643
- "unusedlicenses:org:hardis:diagnose",
6644
- "unusedlicenses:org:diagnose:hardis",
6645
- "hardis:unusedlicenses:diagnose:org",
6646
- "unusedlicenses:hardis:diagnose:org",
6647
- "unusedlicenses:diagnose:hardis:org",
6648
- "unusedlicenses:diagnose:org:hardis"
6630
+ "hardis:org:diagnose:releaseupdates",
6631
+ "org:hardis:diagnose:releaseupdates",
6632
+ "org:diagnose:hardis:releaseupdates",
6633
+ "org:diagnose:releaseupdates:hardis",
6634
+ "hardis:diagnose:org:releaseupdates",
6635
+ "diagnose:hardis:org:releaseupdates",
6636
+ "diagnose:org:hardis:releaseupdates",
6637
+ "diagnose:org:releaseupdates:hardis",
6638
+ "hardis:diagnose:releaseupdates:org",
6639
+ "diagnose:hardis:releaseupdates:org",
6640
+ "diagnose:releaseupdates:hardis:org",
6641
+ "diagnose:releaseupdates:org:hardis",
6642
+ "hardis:org:releaseupdates:diagnose",
6643
+ "org:hardis:releaseupdates:diagnose",
6644
+ "org:releaseupdates:hardis:diagnose",
6645
+ "org:releaseupdates:diagnose:hardis",
6646
+ "hardis:releaseupdates:org:diagnose",
6647
+ "releaseupdates:hardis:org:diagnose",
6648
+ "releaseupdates:org:hardis:diagnose",
6649
+ "releaseupdates:org:diagnose:hardis",
6650
+ "hardis:releaseupdates:diagnose:org",
6651
+ "releaseupdates:hardis:diagnose:org",
6652
+ "releaseupdates:diagnose:hardis:org",
6653
+ "releaseupdates:diagnose:org:hardis"
6649
6654
  ]
6650
6655
  },
6651
- "hardis:org:diagnose:unusedusers": {
6656
+ "hardis:org:diagnose:unsecure-connected-apps": {
6652
6657
  "aliases": [],
6653
6658
  "args": {},
6654
- "description": "\n## Command Behavior\n\n**Detects and reports on inactive or unused Salesforce user accounts, helping to optimize license usage and enhance security.**\n\nEfficient user management is vital in Salesforce to ensure resources are optimized and costs are controlled. However, inactive or unused user accounts can often go unnoticed, leading to wasted licenses and potential security risks. This tool addresses this challenge by enabling administrators to identify users who haven't logged in within a specified period.\n\nBy analyzing user login activity and last login timestamps, this feature highlights inactive user accounts, allowing administrators to take appropriate action. Whether it's deactivating dormant accounts, freeing up licenses, or ensuring compliance with security policies, this functionality empowers administrators to maintain a lean and secure Salesforce environment.\n\nKey functionalities:\n\n- **Inactivity Detection:** Identifies users who have not logged in for a specified number of days (`--days` flag, default 180 days in CI, 365 days otherwise).\n- **License Type Filtering:** Allows filtering users by license type using `--licensetypes` (e.g., `all-crm`, `all-paying`) or specific license identifiers using `--licenseidentifiers`.\n - `all-crm`: Includes `SFDC`, `AUL`, `AUL1`, `AULL_IGHT` licenses.\n - `all-paying`: Includes `SFDC`, `AUL`, `AUL1`, `AULL_IGHT`, `PID_Customer_Community`, `PID_Customer_Community_Login`, `PID_Partner_Community`, `PID_Partner_Community_Login` licenses.\n - Note: You can see the full list of available license identifiers in [Salesforce Documentation](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/sfdx_cli_reference/sforce_api_objects_userlicense.htm).\n- **Active User Retrieval:** The `--returnactiveusers` flag inverts the command, allowing you to retrieve active users who *have* logged in during the specified period.\n- **CSV Report Generation:** Generates a CSV file containing details of all identified users (inactive or active), including their last login date, profile, and license information.\n- **Notifications:** Sends notifications to configured channels (Grafana, Slack, MS Teams) with a summary of inactive or active users.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-inactive-users/) and can output Grafana, Slack and MsTeams Notifications.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Query (Bulk API):** It uses `bulkQuery` to efficiently retrieve user records from the Salesforce `User` object. The SOQL query dynamically constructs its WHERE clause based on the `--days`, `--licensetypes`, `--licenseidentifiers`, and `--returnactiveusers` flags.\n- **Interactive Prompts:** Uses `prompts` to interactively ask the user for the number of inactive days and license types if not provided via flags.\n- **License Mapping:** Internally maps common license type aliases (e.g., `all-crm`) to their corresponding Salesforce `LicenseDefinitionKey` values.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of users.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **User Feedback:** Provides a summary of the findings in the console, indicating the number of inactive or active users found.\n</details>",
6659
+ "description": "\n## Command Behavior\n\n**Detects unsecured Connected Apps in a Salesforce org and generates detailed reports for security analysis.**\n\nThis command is a critical security diagnostic tool that helps administrators identify Connected Apps that may pose security risks due to improper configuration. It provides comprehensive analysis of OAuth tokens and Connected App security settings to ensure proper access control.\n\nKey functionalities:\n\n- **OAuth Token Analysis:** Queries all OAuth tokens in the org using SOQL to retrieve comprehensive token information including app names, users, authorization status, and usage statistics.\n- **Security Status Assessment:** Evaluates each Connected App's security configuration by checking the `IsUsingAdminAuthorization` flag to determine if admin pre-approval is required.\n- **Unsecured App Detection:** Identifies Connected Apps that allow users to authorize themselves without admin approval, which can pose security risks.\n- **Detailed Reporting:** Generates two comprehensive CSV reports:\n - **OAuth Tokens Report:** Lists all OAuth tokens with security status, user information, and usage data\n - **Connected Apps Summary:** Aggregates unsecured Connected Apps with counts of associated OAuth tokens\n- **Visual Indicators:** Uses status icons (❌ for unsecured, for secured) to provide immediate visual feedback on security status.\n- **Security Recommendations:** Provides actionable guidance on how to secure Connected Apps through proper configuration.\n- **Notifications:** Sends alerts to configured channels (Grafana, Slack, MS Teams) with security findings and attached reports.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-org-security/) and can output Grafana, Slack and MsTeams Notifications.\n\n<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/jHv8yrSK8Dg\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Query Execution:** Executes a comprehensive SOQL query on the `OauthToken` object, joining with `AppMenuItem` and `User` objects to gather complete security context.\n- **Security Analysis Logic:** Analyzes the `AppMenuItem.IsUsingAdminAuthorization` field to determine if a Connected App requires admin pre-approval for user authorization.\n- **Data Transformation:** Processes raw SOQL results to add security status indicators and reorganize data for optimal reporting and analysis.\n- **Aggregation Processing:** Groups OAuth tokens by Connected App name to provide summary statistics and identify the most problematic applications.\n- **Report Generation:** Uses `generateCsvFile` to create structured CSV reports with proper formatting and metadata for easy analysis and sharing.\n- **Notification Integration:** Integrates with the `NotifProvider` to send security alerts with detailed metrics, including the number of unsecured Connected Apps and associated OAuth tokens.\n- **File Management:** Generates multiple output formats (CSV, XLSX) and manages file paths using `generateReportPath` for consistent report organization.\n- **Connection Management:** Uses `setConnectionVariables` to ensure proper authentication context for notification providers that require org connection details.\n</details>\n",
6655
6660
  "examples": [
6656
- "$ sf hardis:org:diagnose:unusedusers",
6657
- "$ sf hardis:org:diagnose:unusedusers --days 365",
6658
- "$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
6659
- "$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
6660
- "$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
6661
+ "$ sf hardis:org:diagnose:unsecure-connected-apps"
6661
6662
  ],
6662
6663
  "flags": {
6663
6664
  "json": {
@@ -6683,41 +6684,6 @@
6683
6684
  "multiple": false,
6684
6685
  "type": "option"
6685
6686
  },
6686
- "days": {
6687
- "char": "t",
6688
- "description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
6689
- "name": "days",
6690
- "hasDynamicHelp": false,
6691
- "multiple": false,
6692
- "type": "option"
6693
- },
6694
- "licensetypes": {
6695
- "char": "l",
6696
- "description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
6697
- "name": "licensetypes",
6698
- "hasDynamicHelp": false,
6699
- "multiple": false,
6700
- "options": [
6701
- "all",
6702
- "all-crm",
6703
- "all-paying"
6704
- ],
6705
- "type": "option"
6706
- },
6707
- "licenseidentifiers": {
6708
- "char": "i",
6709
- "description": "Comma-separated list of license identifiers, in case licensetypes is not used.. Identifiers available at https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userlicense.htm",
6710
- "name": "licenseidentifiers",
6711
- "hasDynamicHelp": false,
6712
- "multiple": false,
6713
- "type": "option"
6714
- },
6715
- "returnactiveusers": {
6716
- "description": "Inverts the command by returning the active users",
6717
- "name": "returnactiveusers",
6718
- "allowNo": false,
6719
- "type": "boolean"
6720
- },
6721
6687
  "debug": {
6722
6688
  "char": "d",
6723
6689
  "description": "Activate debug mode (more logs)",
@@ -6756,13 +6722,13 @@
6756
6722
  },
6757
6723
  "hasDynamicHelp": true,
6758
6724
  "hiddenAliases": [],
6759
- "id": "hardis:org:diagnose:unusedusers",
6725
+ "id": "hardis:org:diagnose:unsecure-connected-apps",
6760
6726
  "pluginAlias": "sfdx-hardis",
6761
6727
  "pluginName": "sfdx-hardis",
6762
6728
  "pluginType": "core",
6763
6729
  "strict": true,
6764
6730
  "enableJsonFlag": true,
6765
- "title": "Detect unused Users in Salesforce",
6731
+ "title": "Detect Unsecured Connected Apps",
6766
6732
  "requiresProject": false,
6767
6733
  "isESM": true,
6768
6734
  "relativePath": [
@@ -6771,42 +6737,43 @@
6771
6737
  "hardis",
6772
6738
  "org",
6773
6739
  "diagnose",
6774
- "unusedusers.js"
6740
+ "unsecure-connected-apps.js"
6775
6741
  ],
6776
6742
  "aliasPermutations": [],
6777
6743
  "permutations": [
6778
- "hardis:org:diagnose:unusedusers",
6779
- "org:hardis:diagnose:unusedusers",
6780
- "org:diagnose:hardis:unusedusers",
6781
- "org:diagnose:unusedusers:hardis",
6782
- "hardis:diagnose:org:unusedusers",
6783
- "diagnose:hardis:org:unusedusers",
6784
- "diagnose:org:hardis:unusedusers",
6785
- "diagnose:org:unusedusers:hardis",
6786
- "hardis:diagnose:unusedusers:org",
6787
- "diagnose:hardis:unusedusers:org",
6788
- "diagnose:unusedusers:hardis:org",
6789
- "diagnose:unusedusers:org:hardis",
6790
- "hardis:org:unusedusers:diagnose",
6791
- "org:hardis:unusedusers:diagnose",
6792
- "org:unusedusers:hardis:diagnose",
6793
- "org:unusedusers:diagnose:hardis",
6794
- "hardis:unusedusers:org:diagnose",
6795
- "unusedusers:hardis:org:diagnose",
6796
- "unusedusers:org:hardis:diagnose",
6797
- "unusedusers:org:diagnose:hardis",
6798
- "hardis:unusedusers:diagnose:org",
6799
- "unusedusers:hardis:diagnose:org",
6800
- "unusedusers:diagnose:hardis:org",
6801
- "unusedusers:diagnose:org:hardis"
6744
+ "hardis:org:diagnose:unsecure-connected-apps",
6745
+ "org:hardis:diagnose:unsecure-connected-apps",
6746
+ "org:diagnose:hardis:unsecure-connected-apps",
6747
+ "org:diagnose:unsecure-connected-apps:hardis",
6748
+ "hardis:diagnose:org:unsecure-connected-apps",
6749
+ "diagnose:hardis:org:unsecure-connected-apps",
6750
+ "diagnose:org:hardis:unsecure-connected-apps",
6751
+ "diagnose:org:unsecure-connected-apps:hardis",
6752
+ "hardis:diagnose:unsecure-connected-apps:org",
6753
+ "diagnose:hardis:unsecure-connected-apps:org",
6754
+ "diagnose:unsecure-connected-apps:hardis:org",
6755
+ "diagnose:unsecure-connected-apps:org:hardis",
6756
+ "hardis:org:unsecure-connected-apps:diagnose",
6757
+ "org:hardis:unsecure-connected-apps:diagnose",
6758
+ "org:unsecure-connected-apps:hardis:diagnose",
6759
+ "org:unsecure-connected-apps:diagnose:hardis",
6760
+ "hardis:unsecure-connected-apps:org:diagnose",
6761
+ "unsecure-connected-apps:hardis:org:diagnose",
6762
+ "unsecure-connected-apps:org:hardis:diagnose",
6763
+ "unsecure-connected-apps:org:diagnose:hardis",
6764
+ "hardis:unsecure-connected-apps:diagnose:org",
6765
+ "unsecure-connected-apps:hardis:diagnose:org",
6766
+ "unsecure-connected-apps:diagnose:hardis:org",
6767
+ "unsecure-connected-apps:diagnose:org:hardis"
6802
6768
  ]
6803
6769
  },
6804
- "hardis:org:files:export": {
6770
+ "hardis:org:diagnose:unused-apex-classes": {
6805
6771
  "aliases": [],
6806
6772
  "args": {},
6807
- "description": "\n## Command Behavior\n\n**Exports file attachments (ContentVersion, Attachment) from a Salesforce org based on a predefined configuration.**\n\nThis command enables the mass download of files associated with Salesforce records, providing a robust solution for backing up files, migrating them to other systems, or integrating them with external document management solutions.\n\nKey functionalities:\n\n- **Configuration-Driven Export:** Relies on an `export.json` file within a designated file export project to define the export criteria, including the SOQL query for parent records, file types to export, output naming conventions, and file size filtering.\n- **File Size Filtering:** Supports minimum file size filtering via the `fileSizeMin` configuration parameter (in KB). Files smaller than the specified size will be skipped during export.\n- **File Validation:** After downloading each file, validates the integrity by:\n - **Checksum Validation:** For ContentVersion files, compares MD5 checksum with Salesforce's stored checksum\n - **Size Validation:** For both ContentVersion and Attachment files, verifies actual file size matches expected size\n - **Status Tracking:** Files are categorized with specific statuses: `success` (valid files), `failed` (download errors), `skipped` (filtered files), `invalid` (downloaded but failed validation)\n - All validation results are logged in the CSV export log for audit purposes\n- **Resume/Restart Capability:** \n - **Resume Mode:** When `--resume` flag is used (default in CI environments), checks existing downloaded files for validity. Valid files are skipped, invalid files are re-downloaded.\n - **Restart Mode:** When resume is disabled, clears the output folder and starts a fresh export.\n - **Interactive Mode:** When existing files are found and `--resume` is not explicitly specified (non-CI environments), prompts the user to choose between resume or restart.\n- **Interactive Project Selection:** If the file export project path is not provided via the `--path` flag, it interactively prompts the user to select one.\n- **Configurable Export Options:** Allows overriding default export settings such as `chunksize` (number of records processed in a batch), `polltimeout` (timeout for Bulk API calls), and `startchunknumber` (to resume a failed export).\n- **Support for ContentVersion and Attachment:** Handles both modern Salesforce Files (ContentVersion) and older Attachments.\n\nSee this article for a practical example:\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **FilesExporter Class:** The core logic is encapsulated within the `FilesExporter` class, which orchestrates the entire export process.\n- **SOQL Queries (Bulk API):** It uses Salesforce Bulk API queries to efficiently retrieve large volumes of parent record IDs and file metadata, including checksums and file sizes.\n- **File Download:** Downloads the actual file content from Salesforce.\n- **File Validation:** After each successful download, validates file integrity by comparing checksums (ContentVersion) and file sizes (both ContentVersion and Attachment) against Salesforce metadata.\n- **Resume Logic:** In resume mode, checks for existing files before downloading, validates their integrity, and only re-downloads invalid or missing files. This enables efficient recovery from interrupted exports.\n- **File System Operations:** Writes the downloaded files to the local file system, organizing them into folders based on the configured naming conventions.\n- **Configuration Loading:** Reads the `export.json` file to get the export configuration. It also allows for interactive overriding of these settings.\n- **Interactive Prompts:** Uses `selectFilesWorkspace` to allow the user to choose a file export project, `promptFilesExportConfiguration` for customizing export options, and prompts for resume/restart choice when existing files are found.\n- **Error Handling:** Includes mechanisms to handle potential errors during the export process, such as network issues, API limits, and file validation failures. Each file is assigned a specific status (`success`, `failed`, `skipped`, `invalid`) for comprehensive tracking and troubleshooting.\n</details>\n",
6773
+ "description": "List all async Apex classes (Batch,Queueable,Schedulable) that has not been called for more than 365 days.\n \nThe result class list probably can be removed from the project, and that will improve your test classes performances :)\n\nThe number of unused day is overridable using --days option. \n\nThe command uses queries on AsyncApexJob and CronTrigger technical tables to build the result.\n\nApex Classes CreatedBy and CreatedOn fields are calculated from MIN(date from git, date from org)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-apex-classes/) and can output Grafana, Slack and MsTeams Notifications.\n\n![](https://sfdx-hardis.cloudity.com/assets/images/screenshot-monitoring-unused-apex-grafana.jpg)\n",
6808
6774
  "examples": [
6809
- "$ sf hardis:org:files:export"
6775
+ "$ sf hardis:org:diagnose:unused-apex-classes",
6776
+ "$ sf hardis:org:diagnose:unused-apex-classes --days 700"
6810
6777
  ],
6811
6778
  "flags": {
6812
6779
  "json": {
@@ -6824,48 +6791,22 @@
6824
6791
  "multiple": false,
6825
6792
  "type": "option"
6826
6793
  },
6827
- "path": {
6828
- "char": "p",
6829
- "description": "Path to the file export project",
6830
- "name": "path",
6831
- "hasDynamicHelp": false,
6832
- "multiple": false,
6833
- "type": "option"
6834
- },
6835
- "chunksize": {
6836
- "char": "c",
6837
- "description": "Number of records to add in a chunk before it is processed",
6838
- "name": "chunksize",
6839
- "default": 1000,
6794
+ "outputfile": {
6795
+ "char": "f",
6796
+ "description": "Force the path and name of output report file. Must end with .csv",
6797
+ "name": "outputfile",
6840
6798
  "hasDynamicHelp": false,
6841
6799
  "multiple": false,
6842
6800
  "type": "option"
6843
6801
  },
6844
- "polltimeout": {
6802
+ "days": {
6845
6803
  "char": "t",
6846
- "description": "Timeout in MS for Bulk API calls",
6847
- "name": "polltimeout",
6848
- "default": 300000,
6849
- "hasDynamicHelp": false,
6850
- "multiple": false,
6851
- "type": "option"
6852
- },
6853
- "startchunknumber": {
6854
- "char": "s",
6855
- "description": "Chunk number to start from",
6856
- "name": "startchunknumber",
6857
- "default": 0,
6804
+ "description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
6805
+ "name": "days",
6858
6806
  "hasDynamicHelp": false,
6859
6807
  "multiple": false,
6860
6808
  "type": "option"
6861
6809
  },
6862
- "resume": {
6863
- "char": "r",
6864
- "description": "Resume previous export by checking existing files (default in CI)",
6865
- "name": "resume",
6866
- "allowNo": false,
6867
- "type": "boolean"
6868
- },
6869
6810
  "debug": {
6870
6811
  "char": "d",
6871
6812
  "description": "Activate debug mode (more logs)",
@@ -6904,13 +6845,13 @@
6904
6845
  },
6905
6846
  "hasDynamicHelp": true,
6906
6847
  "hiddenAliases": [],
6907
- "id": "hardis:org:files:export",
6848
+ "id": "hardis:org:diagnose:unused-apex-classes",
6908
6849
  "pluginAlias": "sfdx-hardis",
6909
6850
  "pluginName": "sfdx-hardis",
6910
6851
  "pluginType": "core",
6911
6852
  "strict": true,
6912
6853
  "enableJsonFlag": true,
6913
- "title": "Export files",
6854
+ "title": "Detect unused Apex classes in an org",
6914
6855
  "requiresProject": false,
6915
6856
  "isESM": true,
6916
6857
  "relativePath": [
@@ -6918,43 +6859,43 @@
6918
6859
  "commands",
6919
6860
  "hardis",
6920
6861
  "org",
6921
- "files",
6922
- "export.js"
6862
+ "diagnose",
6863
+ "unused-apex-classes.js"
6923
6864
  ],
6924
6865
  "aliasPermutations": [],
6925
6866
  "permutations": [
6926
- "hardis:org:files:export",
6927
- "org:hardis:files:export",
6928
- "org:files:hardis:export",
6929
- "org:files:export:hardis",
6930
- "hardis:files:org:export",
6931
- "files:hardis:org:export",
6932
- "files:org:hardis:export",
6933
- "files:org:export:hardis",
6934
- "hardis:files:export:org",
6935
- "files:hardis:export:org",
6936
- "files:export:hardis:org",
6937
- "files:export:org:hardis",
6938
- "hardis:org:export:files",
6939
- "org:hardis:export:files",
6940
- "org:export:hardis:files",
6941
- "org:export:files:hardis",
6942
- "hardis:export:org:files",
6943
- "export:hardis:org:files",
6944
- "export:org:hardis:files",
6945
- "export:org:files:hardis",
6946
- "hardis:export:files:org",
6947
- "export:hardis:files:org",
6948
- "export:files:hardis:org",
6949
- "export:files:org:hardis"
6867
+ "hardis:org:diagnose:unused-apex-classes",
6868
+ "org:hardis:diagnose:unused-apex-classes",
6869
+ "org:diagnose:hardis:unused-apex-classes",
6870
+ "org:diagnose:unused-apex-classes:hardis",
6871
+ "hardis:diagnose:org:unused-apex-classes",
6872
+ "diagnose:hardis:org:unused-apex-classes",
6873
+ "diagnose:org:hardis:unused-apex-classes",
6874
+ "diagnose:org:unused-apex-classes:hardis",
6875
+ "hardis:diagnose:unused-apex-classes:org",
6876
+ "diagnose:hardis:unused-apex-classes:org",
6877
+ "diagnose:unused-apex-classes:hardis:org",
6878
+ "diagnose:unused-apex-classes:org:hardis",
6879
+ "hardis:org:unused-apex-classes:diagnose",
6880
+ "org:hardis:unused-apex-classes:diagnose",
6881
+ "org:unused-apex-classes:hardis:diagnose",
6882
+ "org:unused-apex-classes:diagnose:hardis",
6883
+ "hardis:unused-apex-classes:org:diagnose",
6884
+ "unused-apex-classes:hardis:org:diagnose",
6885
+ "unused-apex-classes:org:hardis:diagnose",
6886
+ "unused-apex-classes:org:diagnose:hardis",
6887
+ "hardis:unused-apex-classes:diagnose:org",
6888
+ "unused-apex-classes:hardis:diagnose:org",
6889
+ "unused-apex-classes:diagnose:hardis:org",
6890
+ "unused-apex-classes:diagnose:org:hardis"
6950
6891
  ]
6951
6892
  },
6952
- "hardis:org:files:import": {
6893
+ "hardis:org:diagnose:unused-connected-apps": {
6953
6894
  "aliases": [],
6954
6895
  "args": {},
6955
- "description": "\nThis command facilitates the mass upload of files into Salesforce, allowing you to populate records with associated documents, images, or other file types. It's a crucial tool for data migration, content seeding, or synchronizing external file repositories with Salesforce.\n\nKey functionalities:\n\n- **Configuration-Driven Import:** Relies on an `export.json` file within a designated file export project (created using `sf hardis:org:configure:files`) to determine which files to import and how they should be associated with Salesforce records.\n- **Interactive Project Selection:** If the file import project path is not provided via the `--path` flag, it interactively prompts the user to select one.\n- **Overwrite Option:** The `--overwrite` flag allows you to replace existing files in Salesforce with local versions that have the same name. Be aware that this option doubles the number of API calls used.\n- **Support for ContentVersion and Attachment:** Handles both modern Salesforce Files (ContentVersion) and older Attachments.\n\nSee this article for how to export files, which is often a prerequisite for importing:\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **FilesImporter Class:** The core logic is encapsulated within the `FilesImporter` class, which orchestrates the entire import process.\n- **File System Scan:** Scans the local file system within the configured project directory to identify files for import.\n- **Salesforce API Interaction:** Uses Salesforce APIs (e.g., ContentVersion, Attachment) to upload files and associate them with records.\n- **Configuration Loading:** Reads the `export.json` file to get the import configuration, including SOQL queries to identify parent records for file association.\n- **Interactive Prompts:** Uses `selectFilesWorkspace` to allow the user to choose a file import project and `prompts` for confirming the overwrite behavior.\n- **Error Handling:** Includes mechanisms to handle potential errors during the import process, such as API limits or file upload failures.\n</details>\n",
6896
+ "description": "\n## Command Behavior\n\n**Identifies and reports on potentially unused Connected Apps in a Salesforce org, suggesting candidates for deletion or deactivation.**\n\nThis command helps improve org security and reduce technical debt by pinpointing Connected Apps that are no longer actively used. Connected Apps can pose security risks if left unmonitored, and cleaning them up contributes to a healthier Salesforce environment.\n\nKey functionalities:\n\n- **Connected App Data Collection:** Gathers information about all Connected Apps in the org, including creation and last modified dates, and associated users.\n- **Usage Analysis:** Analyzes `LoginHistory` and `OAuthToken` records to determine the last usage date of each Connected App.\n- **Inactivity Detection:** Flags Connected Apps as potentially unused if they have no recent login history or OAuth token usage.\n- **Accessibility Check:** Examines Connected App metadata to identify if they are accessible (e.g., if they require admin approval and have no profiles or permission sets assigned).\n- **Ignored Apps:** Automatically ignores a predefined list of common Salesforce Connected Apps (e.g., `Salesforce CLI`, `Salesforce Mobile Dashboards`). You can extend this list by defining the `ALLOWED_INACTIVE_CONNECTED_APPS` environment variable.\n- **CSV Report Generation:** Generates a CSV file containing details of all analyzed Connected Apps, including their usage status, last usage date, and reasons for being flagged as potentially unused.\n- **Notifications:** Sends notifications to configured channels (Grafana, Slack, MS Teams) with a summary of potentially unused Connected Apps.\n\n**Default Ignored Connected Apps:**\n\n- Ant Migration Tool\n- Chatter Desktop\n- Chatter Mobile for BlackBerry\n- Force.com IDE\n- OIQ_Integration\n- Salesforce CLI\n- Salesforce Files\n- Salesforce Mobile Dashboards\n- Salesforce Touch\n- Salesforce for Outlook\n- SalesforceA\n- SalesforceA for Android\n- SalesforceA for iOS\n- SalesforceDX Namespace Registry\n- SalesforceIQ\n\nYou can add more ignored apps by defining a comma-separated list of names in the `ALLOWED_INACTIVE_CONNECTED_APPS` environment variable.\n\n_Example: \nALLOWED_INACTIVE_CONNECTED_APPS=My App 1,My App 2, My App 3_\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-connected-apps/) and can output Grafana, Slack and MsTeams Notifications.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce SOQL Queries:** It performs SOQL queries against `ConnectedApplication`, `LoginHistory`, and `OAuthToken` objects to gather comprehensive data about Connected Apps and their usage.\n- **Temporary SFDX Project:** It creates a temporary SFDX project to retrieve Connected App metadata, allowing for local parsing and analysis of their XML files.\n- **Metadata Parsing:** It parses the `connectedApp-meta.xml` files to check for `isAdminApproved` and the presence of `profileName` or `permissionsetName` to determine accessibility.\n- **Data Correlation:** It correlates data from various Salesforce objects to build a complete picture of each Connected App's usage and status.\n- **Date Calculation:** Uses `moment` to calculate the time since the last OAuth token usage.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of unused Connected Apps.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **File System Operations:** Uses `fs-extra` for creating and removing temporary directories and files.\n- **Environment Variable Reading:** Reads the `ALLOWED_INACTIVE_CONNECTED_APPS` environment variable to customize the list of ignored Connected Apps.\n</details>\n",
6956
6897
  "examples": [
6957
- "$ sf hardis:org:files:import"
6898
+ "$ sf hardis:org:diagnose:unused-connected-apps"
6958
6899
  ],
6959
6900
  "flags": {
6960
6901
  "json": {
@@ -6972,21 +6913,14 @@
6972
6913
  "multiple": false,
6973
6914
  "type": "option"
6974
6915
  },
6975
- "path": {
6976
- "char": "p",
6977
- "description": "Path to the file export project",
6978
- "name": "path",
6916
+ "outputfile": {
6917
+ "char": "f",
6918
+ "description": "Force the path and name of output report file. Must end with .csv",
6919
+ "name": "outputfile",
6979
6920
  "hasDynamicHelp": false,
6980
6921
  "multiple": false,
6981
6922
  "type": "option"
6982
6923
  },
6983
- "overwrite": {
6984
- "char": "f",
6985
- "description": "Override existing files (doubles the number of API calls)",
6986
- "name": "overwrite",
6987
- "allowNo": false,
6988
- "type": "boolean"
6989
- },
6990
6924
  "debug": {
6991
6925
  "char": "d",
6992
6926
  "description": "Activate debug mode (more logs)",
@@ -7025,13 +6959,30 @@
7025
6959
  },
7026
6960
  "hasDynamicHelp": true,
7027
6961
  "hiddenAliases": [],
7028
- "id": "hardis:org:files:import",
6962
+ "id": "hardis:org:diagnose:unused-connected-apps",
7029
6963
  "pluginAlias": "sfdx-hardis",
7030
6964
  "pluginName": "sfdx-hardis",
7031
6965
  "pluginType": "core",
7032
6966
  "strict": true,
7033
6967
  "enableJsonFlag": true,
7034
- "title": "Import files",
6968
+ "title": "Unused Connected Apps in an org",
6969
+ "allowedInactiveConnectedApps": [
6970
+ "Ant Migration Tool",
6971
+ "Chatter Desktop",
6972
+ "Chatter Mobile for BlackBerry",
6973
+ "Force.com IDE",
6974
+ "OIQ_Integration",
6975
+ "Salesforce CLI",
6976
+ "Salesforce Files",
6977
+ "Salesforce Mobile Dashboards",
6978
+ "Salesforce Touch",
6979
+ "Salesforce for Outlook",
6980
+ "SalesforceA",
6981
+ "SalesforceA for Android",
6982
+ "SalesforceA for iOS",
6983
+ "SalesforceDX Namespace Registry",
6984
+ "SalesforceIQ"
6985
+ ],
7035
6986
  "requiresProject": false,
7036
6987
  "isESM": true,
7037
6988
  "relativePath": [
@@ -7039,44 +6990,44 @@
7039
6990
  "commands",
7040
6991
  "hardis",
7041
6992
  "org",
7042
- "files",
7043
- "import.js"
6993
+ "diagnose",
6994
+ "unused-connected-apps.js"
7044
6995
  ],
7045
6996
  "aliasPermutations": [],
7046
6997
  "permutations": [
7047
- "hardis:org:files:import",
7048
- "org:hardis:files:import",
7049
- "org:files:hardis:import",
7050
- "org:files:import:hardis",
7051
- "hardis:files:org:import",
7052
- "files:hardis:org:import",
7053
- "files:org:hardis:import",
7054
- "files:org:import:hardis",
7055
- "hardis:files:import:org",
7056
- "files:hardis:import:org",
7057
- "files:import:hardis:org",
7058
- "files:import:org:hardis",
7059
- "hardis:org:import:files",
7060
- "org:hardis:import:files",
7061
- "org:import:hardis:files",
7062
- "org:import:files:hardis",
7063
- "hardis:import:org:files",
7064
- "import:hardis:org:files",
7065
- "import:org:hardis:files",
7066
- "import:org:files:hardis",
7067
- "hardis:import:files:org",
7068
- "import:hardis:files:org",
7069
- "import:files:hardis:org",
7070
- "import:files:org:hardis"
6998
+ "hardis:org:diagnose:unused-connected-apps",
6999
+ "org:hardis:diagnose:unused-connected-apps",
7000
+ "org:diagnose:hardis:unused-connected-apps",
7001
+ "org:diagnose:unused-connected-apps:hardis",
7002
+ "hardis:diagnose:org:unused-connected-apps",
7003
+ "diagnose:hardis:org:unused-connected-apps",
7004
+ "diagnose:org:hardis:unused-connected-apps",
7005
+ "diagnose:org:unused-connected-apps:hardis",
7006
+ "hardis:diagnose:unused-connected-apps:org",
7007
+ "diagnose:hardis:unused-connected-apps:org",
7008
+ "diagnose:unused-connected-apps:hardis:org",
7009
+ "diagnose:unused-connected-apps:org:hardis",
7010
+ "hardis:org:unused-connected-apps:diagnose",
7011
+ "org:hardis:unused-connected-apps:diagnose",
7012
+ "org:unused-connected-apps:hardis:diagnose",
7013
+ "org:unused-connected-apps:diagnose:hardis",
7014
+ "hardis:unused-connected-apps:org:diagnose",
7015
+ "unused-connected-apps:hardis:org:diagnose",
7016
+ "unused-connected-apps:org:hardis:diagnose",
7017
+ "unused-connected-apps:org:diagnose:hardis",
7018
+ "hardis:unused-connected-apps:diagnose:org",
7019
+ "unused-connected-apps:hardis:diagnose:org",
7020
+ "unused-connected-apps:diagnose:hardis:org",
7021
+ "unused-connected-apps:diagnose:org:hardis"
7071
7022
  ]
7072
7023
  },
7073
- "hardis:org:fix:listviewmine": {
7024
+ "hardis:org:diagnose:unusedlicenses": {
7074
7025
  "aliases": [],
7075
7026
  "args": {},
7076
- "description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[![Invalid scope:Mine, not allowed ? Deploy your ListViews anyway !](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-invalid-scope-mine.jpg)](https://nicolas.vuillamy.fr/invalid-scope-mine-not-allowed-deploy-your-listviews-anyway-443aceca8ac7)\n\nList of ListViews can be:\n\n- read from .sfdx-hardis.yml file in property **listViewsToSetToMine**\n- sent in argument listviews\n\nNote: property **listViewsToSetToMine** can be auto-generated by command hardis:work:save if .sfdx-hardis.yml contains the following configuration\n\n```yaml\nautoCleanTypes:\n - listViewsMine\n```\n\n- Example of sfdx-hardis.yml property `listViewsToSetToMine`:\n\n```yaml\nlistViewsToSetToMine:\n - \"force-app/main/default/objects/Operation__c/listViews/MyCurrentOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Operation__c/listViews/MyFinalizedOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/Default_Opportunity_Pipeline.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MyCurrentSubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MySubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Account/listViews/MyActivePartners.listView-meta.xml\"\n```\n\n- If manually written, this could also be:\n\n```yaml\nlistViewsToSetToMine:\n - \"Operation__c:MyCurrentOperations\"\n - \"Operation__c:MyFinalizedOperations\"\n - \"Opportunity:Default_Opportunity_Pipeline\"\n - \"Opportunity:MyCurrentSubscriptions\"\n - \"Opportunity:MySubscriptions\"\n - \"Account:MyActivePartners\"\n```\n\nTroubleshooting: if you need to run this command from an alpine-linux based docker image, use this workaround in your dockerfile:\n\n```dockerfile\n# Do not use puppeteer embedded chromium\nRUN apk add --update --no-cache chromium\nENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=\"true\"\nENV CHROMIUM_PATH=\"/usr/bin/chromium-browser\"\nENV PUPPETEER_EXECUTABLE_PATH=\"$\\{CHROMIUM_PATH}\" // remove \\ before {\n```\n",
7027
+ "description": "\n## Command Behavior\n\n**Detects and suggests the deletion of unused Permission Set License Assignments in a Salesforce org.**\n\nWhen a Permission Set (PS) linked to a Permission Set License (PSL) is assigned to a user, a Permission Set License Assignment (PSLA) is automatically created. However, when that PS is unassigned from the user, the PSLA is *not* automatically deleted. This can lead to organizations being charged for unused PSLAs, representing a hidden cost and technical debt.\n\nThis command identifies such useless PSLAs and provides options to delete them, helping to optimize license usage and reduce unnecessary expenses.\n\nKey functionalities:\n\n- **PSLA Detection:** Queries the Salesforce org to find all active PSLAs.\n- **Usage Verification:** Correlates PSLAs with actual Permission Set Assignments and Permission Set Group Assignments to determine if the underlying Permission Sets are still assigned to the user.\n- **Special Case Handling:** Accounts for specific scenarios where profiles might implicitly assign PSLAs (e.g., `Salesforce API Only` profile assigning `SalesforceAPIIntegrationPsl`) and allows for always excluding certain PSLAs from the unused check.\n- **Reporting:** Generates a CSV report of all identified unused PSLAs, including the user and the associated Permission Set License.\n- **Notifications:** Sends notifications to configured channels (Grafana, Slack, MS Teams) with a summary of unused PSLAs.\n- **Interactive Deletion:** In non-CI environments, it offers an interactive prompt to bulk delete the identified unused PSLAs.\n\nMany thanks to [Vincent Finet](https://www.linkedin.com/in/vincentfinet/) for the inspiration during his great speaker session at [French Touch Dreamin '23](https://frenchtouchdreamin.com/), and his kind agreement for reusing such inspiration in this command :)\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-unused-licenses/) and can output Grafana, Slack and MsTeams Notifications.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves extensive querying of Salesforce objects and data correlation:\n\n- **SOQL Queries (Bulk API):** It uses `bulkQuery` and `bulkQueryChunksIn` to efficiently retrieve large volumes of data from `PermissionSetLicenseAssign`, `PermissionSetLicense`, `PermissionSet`, `PermissionSetGroupComponent`, and `PermissionSetAssignment` objects.\n- **Data Correlation:** It meticulously correlates data across these objects to determine if a `PermissionSetLicenseAssign` record has a corresponding active assignment to a Permission Set or Permission Set Group for the same user.\n- **Filtering Logic:** It applies complex filtering logic to exclude PSLAs that are genuinely in use or are part of predefined exceptions (e.g., `alwaysExcludeForActiveUsersPermissionSetLicenses`).\n- **Bulk Deletion:** If the user opts to delete unused PSLAs, it uses `bulkUpdate` with the `delete` operation to efficiently remove multiple records.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of unused PSLAs.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **User Interaction:** Uses `prompts` for interactive confirmation before performing deletion operations.\n</details>\n",
7077
7028
  "examples": [
7078
- "$ sf hardis:org:fix:listviewmine",
7079
- "$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
7029
+ "$ sf hardis:org:diagnose:unusedlicenses",
7030
+ "$ sf hardis:org:diagnose:unusedlicenses --fix"
7080
7031
  ],
7081
7032
  "flags": {
7082
7033
  "json": {
@@ -7094,10 +7045,10 @@
7094
7045
  "multiple": false,
7095
7046
  "type": "option"
7096
7047
  },
7097
- "listviews": {
7098
- "char": "l",
7099
- "description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
7100
- "name": "listviews",
7048
+ "outputfile": {
7049
+ "char": "f",
7050
+ "description": "Force the path and name of output report file. Must end with .csv",
7051
+ "name": "outputfile",
7101
7052
  "hasDynamicHelp": false,
7102
7053
  "multiple": false,
7103
7054
  "type": "option"
@@ -7140,59 +7091,79 @@
7140
7091
  },
7141
7092
  "hasDynamicHelp": true,
7142
7093
  "hiddenAliases": [],
7143
- "id": "hardis:org:fix:listviewmine",
7094
+ "id": "hardis:org:diagnose:unusedlicenses",
7144
7095
  "pluginAlias": "sfdx-hardis",
7145
7096
  "pluginName": "sfdx-hardis",
7146
7097
  "pluginType": "core",
7147
7098
  "strict": true,
7148
7099
  "enableJsonFlag": true,
7149
- "title": "Fix listviews with ",
7150
- "requiresProject": true,
7100
+ "title": "Detect unused Permission Set Licenses (beta)",
7101
+ "requiresProject": false,
7102
+ "additionalPermissionSetsToAlwaysGet": [
7103
+ "Sales_User"
7104
+ ],
7105
+ "permSetsPermSetLicenses": [
7106
+ {
7107
+ "permSet": "Sales_User",
7108
+ "permSetLicense": "SalesUserPsl"
7109
+ }
7110
+ ],
7111
+ "profilesPermissionSetLicenses": [
7112
+ {
7113
+ "profile": "Salesforce API Only",
7114
+ "permSetLicense": "SalesforceAPIIntegrationPsl"
7115
+ }
7116
+ ],
7117
+ "alwaysExcludeForActiveUsersPermissionSetLicenses": [
7118
+ "IdentityConnect"
7119
+ ],
7151
7120
  "isESM": true,
7152
7121
  "relativePath": [
7153
7122
  "lib",
7154
7123
  "commands",
7155
7124
  "hardis",
7156
7125
  "org",
7157
- "fix",
7158
- "listviewmine.js"
7126
+ "diagnose",
7127
+ "unusedlicenses.js"
7159
7128
  ],
7160
7129
  "aliasPermutations": [],
7161
7130
  "permutations": [
7162
- "hardis:org:fix:listviewmine",
7163
- "org:hardis:fix:listviewmine",
7164
- "org:fix:hardis:listviewmine",
7165
- "org:fix:listviewmine:hardis",
7166
- "hardis:fix:org:listviewmine",
7167
- "fix:hardis:org:listviewmine",
7168
- "fix:org:hardis:listviewmine",
7169
- "fix:org:listviewmine:hardis",
7170
- "hardis:fix:listviewmine:org",
7171
- "fix:hardis:listviewmine:org",
7172
- "fix:listviewmine:hardis:org",
7173
- "fix:listviewmine:org:hardis",
7174
- "hardis:org:listviewmine:fix",
7175
- "org:hardis:listviewmine:fix",
7176
- "org:listviewmine:hardis:fix",
7177
- "org:listviewmine:fix:hardis",
7178
- "hardis:listviewmine:org:fix",
7179
- "listviewmine:hardis:org:fix",
7180
- "listviewmine:org:hardis:fix",
7181
- "listviewmine:org:fix:hardis",
7182
- "hardis:listviewmine:fix:org",
7183
- "listviewmine:hardis:fix:org",
7184
- "listviewmine:fix:hardis:org",
7185
- "listviewmine:fix:org:hardis"
7131
+ "hardis:org:diagnose:unusedlicenses",
7132
+ "org:hardis:diagnose:unusedlicenses",
7133
+ "org:diagnose:hardis:unusedlicenses",
7134
+ "org:diagnose:unusedlicenses:hardis",
7135
+ "hardis:diagnose:org:unusedlicenses",
7136
+ "diagnose:hardis:org:unusedlicenses",
7137
+ "diagnose:org:hardis:unusedlicenses",
7138
+ "diagnose:org:unusedlicenses:hardis",
7139
+ "hardis:diagnose:unusedlicenses:org",
7140
+ "diagnose:hardis:unusedlicenses:org",
7141
+ "diagnose:unusedlicenses:hardis:org",
7142
+ "diagnose:unusedlicenses:org:hardis",
7143
+ "hardis:org:unusedlicenses:diagnose",
7144
+ "org:hardis:unusedlicenses:diagnose",
7145
+ "org:unusedlicenses:hardis:diagnose",
7146
+ "org:unusedlicenses:diagnose:hardis",
7147
+ "hardis:unusedlicenses:org:diagnose",
7148
+ "unusedlicenses:hardis:org:diagnose",
7149
+ "unusedlicenses:org:hardis:diagnose",
7150
+ "unusedlicenses:org:diagnose:hardis",
7151
+ "hardis:unusedlicenses:diagnose:org",
7152
+ "unusedlicenses:hardis:diagnose:org",
7153
+ "unusedlicenses:diagnose:hardis:org",
7154
+ "unusedlicenses:diagnose:org:hardis"
7186
7155
  ]
7187
7156
  },
7188
- "hardis:org:generate:packagexmlfull": {
7157
+ "hardis:org:diagnose:unusedusers": {
7189
7158
  "aliases": [],
7190
7159
  "args": {},
7191
- "description": "\n## Command Behavior\n\n**Generates a comprehensive `package.xml` file for a Salesforce org, including all metadata components, even managed ones.**\n\nThis command is essential for various Salesforce development and administration tasks, especially when you need a complete snapshot of an org's metadata. It goes beyond typical source tracking by including managed package components, which is crucial for understanding the full metadata footprint of an org.\n\nKey functionalities:\n\n- **Full Org Metadata Retrieval:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a complete list of all metadata types and their members.\n- **Managed Package Inclusion:** Unlike standard source retrieval, this command explicitly includes metadata from managed packages, providing a truly comprehensive `package.xml`.\n- **Customizable Output:** Allows you to specify the output file path for the generated `package.xml`.\n- **Interactive Org Selection:** If no target org is specified, it interactively prompts the user to choose an org. (or use --no-prompt to skip this step)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce Metadata API Interaction:** It leverages the Salesforce Metadata API to list all available metadata types and then retrieve all components for each type.\n- **`buildOrgManifest` Utility:** The core logic for querying the org's metadata and constructing the `package.xml` is encapsulated within the `buildOrgManifest` utility function.\n- **XML Generation:** It dynamically builds the XML structure of the `package.xml` file, including the `types` and `members` elements for all retrieved metadata.\n- **File System Operations:** It writes the generated `package.xml` file to the specified output path.\n- **Interactive Prompts:** Uses `promptOrgUsernameDefault` to guide the user in selecting the target Salesforce org.\n</details>\n",
7160
+ "description": "\n## Command Behavior\n\n**Detects and reports on inactive or unused Salesforce user accounts, helping to optimize license usage and enhance security.**\n\nEfficient user management is vital in Salesforce to ensure resources are optimized and costs are controlled. However, inactive or unused user accounts can often go unnoticed, leading to wasted licenses and potential security risks. This tool addresses this challenge by enabling administrators to identify users who haven't logged in within a specified period.\n\nBy analyzing user login activity and last login timestamps, this feature highlights inactive user accounts, allowing administrators to take appropriate action. Whether it's deactivating dormant accounts, freeing up licenses, or ensuring compliance with security policies, this functionality empowers administrators to maintain a lean and secure Salesforce environment.\n\nKey functionalities:\n\n- **Inactivity Detection:** Identifies users who have not logged in for a specified number of days (`--days` flag, default 180 days in CI, 365 days otherwise).\n- **License Type Filtering:** Allows filtering users by license type using `--licensetypes` (e.g., `all-crm`, `all-paying`) or specific license identifiers using `--licenseidentifiers`.\n - `all-crm`: Includes `SFDC`, `AUL`, `AUL1`, `AULL_IGHT` licenses.\n - `all-paying`: Includes `SFDC`, `AUL`, `AUL1`, `AULL_IGHT`, `PID_Customer_Community`, `PID_Customer_Community_Login`, `PID_Partner_Community`, `PID_Partner_Community_Login` licenses.\n - Note: You can see the full list of available license identifiers in [Salesforce Documentation](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/sfdx_cli_reference/sforce_api_objects_userlicense.htm).\n- **Active User Retrieval:** The `--returnactiveusers` flag inverts the command, allowing you to retrieve active users who *have* logged in during the specified period.\n- **CSV Report Generation:** Generates a CSV file containing details of all identified users (inactive or active), including their last login date, profile, and license information.\n- **Notifications:** Sends notifications to configured channels (Grafana, Slack, MS Teams) with a summary of inactive or active users.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-inactive-users/) and can output Grafana, Slack and MsTeams Notifications.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **SOQL Query (Bulk API):** It uses `bulkQuery` to efficiently retrieve user records from the Salesforce `User` object. The SOQL query dynamically constructs its WHERE clause based on the `--days`, `--licensetypes`, `--licenseidentifiers`, and `--returnactiveusers` flags.\n- **Interactive Prompts:** Uses `prompts` to interactively ask the user for the number of inactive days and license types if not provided via flags.\n- **License Mapping:** Internally maps common license type aliases (e.g., `all-crm`) to their corresponding Salesforce `LicenseDefinitionKey` values.\n- **Report Generation:** It uses `generateCsvFile` to create the CSV report of users.\n- **Notification Integration:** It integrates with the `NotifProvider` to send notifications, including attachments of the generated CSV report and metrics for monitoring dashboards.\n- **User Feedback:** Provides a summary of the findings in the console, indicating the number of inactive or active users found.\n</details>",
7192
7161
  "examples": [
7193
- "$ sf hardis:org:generate:packagexmlfull",
7194
- "$ sf hardis:org:generate:packagexmlfull --outputfile /tmp/packagexmlfull.xml",
7195
- "$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
7162
+ "$ sf hardis:org:diagnose:unusedusers",
7163
+ "$ sf hardis:org:diagnose:unusedusers --days 365",
7164
+ "$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm",
7165
+ "$ sf hardis:org:diagnose:unusedusers --days 60 --licenseidentifiers SFDC,AUL,AUL1",
7166
+ "$ sf hardis:org:diagnose:unusedusers --days 60 --licensetypes all-crm --returnactiveusers"
7196
7167
  ],
7197
7168
  "flags": {
7198
7169
  "json": {
@@ -7211,12 +7182,48 @@
7211
7182
  "type": "option"
7212
7183
  },
7213
7184
  "outputfile": {
7214
- "description": "Output package.xml file",
7185
+ "char": "f",
7186
+ "description": "Force the path and name of output report file. Must end with .csv",
7215
7187
  "name": "outputfile",
7216
7188
  "hasDynamicHelp": false,
7217
7189
  "multiple": false,
7218
7190
  "type": "option"
7219
7191
  },
7192
+ "days": {
7193
+ "char": "t",
7194
+ "description": "Extracts the users that have been inactive for the amount of days specified. In CI, default is 180 days",
7195
+ "name": "days",
7196
+ "hasDynamicHelp": false,
7197
+ "multiple": false,
7198
+ "type": "option"
7199
+ },
7200
+ "licensetypes": {
7201
+ "char": "l",
7202
+ "description": "Type of licenses to check. If set, do not use licenseidentifiers option. In CI, default is all-crm",
7203
+ "name": "licensetypes",
7204
+ "hasDynamicHelp": false,
7205
+ "multiple": false,
7206
+ "options": [
7207
+ "all",
7208
+ "all-crm",
7209
+ "all-paying"
7210
+ ],
7211
+ "type": "option"
7212
+ },
7213
+ "licenseidentifiers": {
7214
+ "char": "i",
7215
+ "description": "Comma-separated list of license identifiers, in case licensetypes is not used.. Identifiers available at https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userlicense.htm",
7216
+ "name": "licenseidentifiers",
7217
+ "hasDynamicHelp": false,
7218
+ "multiple": false,
7219
+ "type": "option"
7220
+ },
7221
+ "returnactiveusers": {
7222
+ "description": "Inverts the command by returning the active users",
7223
+ "name": "returnactiveusers",
7224
+ "allowNo": false,
7225
+ "type": "boolean"
7226
+ },
7220
7227
  "debug": {
7221
7228
  "char": "d",
7222
7229
  "description": "Activate debug mode (more logs)",
@@ -7224,13 +7231,6 @@
7224
7231
  "allowNo": false,
7225
7232
  "type": "boolean"
7226
7233
  },
7227
- "no-prompt": {
7228
- "char": "n",
7229
- "description": "Do not prompt for org username, use the default one",
7230
- "name": "no-prompt",
7231
- "allowNo": false,
7232
- "type": "boolean"
7233
- },
7234
7234
  "websocket": {
7235
7235
  "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
7236
7236
  "name": "websocket",
@@ -7262,13 +7262,13 @@
7262
7262
  },
7263
7263
  "hasDynamicHelp": true,
7264
7264
  "hiddenAliases": [],
7265
- "id": "hardis:org:generate:packagexmlfull",
7265
+ "id": "hardis:org:diagnose:unusedusers",
7266
7266
  "pluginAlias": "sfdx-hardis",
7267
7267
  "pluginName": "sfdx-hardis",
7268
7268
  "pluginType": "core",
7269
7269
  "strict": true,
7270
7270
  "enableJsonFlag": true,
7271
- "title": "Generate Full Org package.xml",
7271
+ "title": "Detect unused Users in Salesforce",
7272
7272
  "requiresProject": false,
7273
7273
  "isESM": true,
7274
7274
  "relativePath": [
@@ -7276,35 +7276,35 @@
7276
7276
  "commands",
7277
7277
  "hardis",
7278
7278
  "org",
7279
- "generate",
7280
- "packagexmlfull.js"
7279
+ "diagnose",
7280
+ "unusedusers.js"
7281
7281
  ],
7282
7282
  "aliasPermutations": [],
7283
7283
  "permutations": [
7284
- "hardis:org:generate:packagexmlfull",
7285
- "org:hardis:generate:packagexmlfull",
7286
- "org:generate:hardis:packagexmlfull",
7287
- "org:generate:packagexmlfull:hardis",
7288
- "hardis:generate:org:packagexmlfull",
7289
- "generate:hardis:org:packagexmlfull",
7290
- "generate:org:hardis:packagexmlfull",
7291
- "generate:org:packagexmlfull:hardis",
7292
- "hardis:generate:packagexmlfull:org",
7293
- "generate:hardis:packagexmlfull:org",
7294
- "generate:packagexmlfull:hardis:org",
7295
- "generate:packagexmlfull:org:hardis",
7296
- "hardis:org:packagexmlfull:generate",
7297
- "org:hardis:packagexmlfull:generate",
7298
- "org:packagexmlfull:hardis:generate",
7299
- "org:packagexmlfull:generate:hardis",
7300
- "hardis:packagexmlfull:org:generate",
7301
- "packagexmlfull:hardis:org:generate",
7302
- "packagexmlfull:org:hardis:generate",
7303
- "packagexmlfull:org:generate:hardis",
7304
- "hardis:packagexmlfull:generate:org",
7305
- "packagexmlfull:hardis:generate:org",
7306
- "packagexmlfull:generate:hardis:org",
7307
- "packagexmlfull:generate:org:hardis"
7284
+ "hardis:org:diagnose:unusedusers",
7285
+ "org:hardis:diagnose:unusedusers",
7286
+ "org:diagnose:hardis:unusedusers",
7287
+ "org:diagnose:unusedusers:hardis",
7288
+ "hardis:diagnose:org:unusedusers",
7289
+ "diagnose:hardis:org:unusedusers",
7290
+ "diagnose:org:hardis:unusedusers",
7291
+ "diagnose:org:unusedusers:hardis",
7292
+ "hardis:diagnose:unusedusers:org",
7293
+ "diagnose:hardis:unusedusers:org",
7294
+ "diagnose:unusedusers:hardis:org",
7295
+ "diagnose:unusedusers:org:hardis",
7296
+ "hardis:org:unusedusers:diagnose",
7297
+ "org:hardis:unusedusers:diagnose",
7298
+ "org:unusedusers:hardis:diagnose",
7299
+ "org:unusedusers:diagnose:hardis",
7300
+ "hardis:unusedusers:org:diagnose",
7301
+ "unusedusers:hardis:org:diagnose",
7302
+ "unusedusers:org:hardis:diagnose",
7303
+ "unusedusers:org:diagnose:hardis",
7304
+ "hardis:unusedusers:diagnose:org",
7305
+ "unusedusers:hardis:diagnose:org",
7306
+ "unusedusers:diagnose:hardis:org",
7307
+ "unusedusers:diagnose:org:hardis"
7308
7308
  ]
7309
7309
  },
7310
7310
  "hardis:org:monitor:all": {
@@ -9689,6 +9689,238 @@
9689
9689
  "remotesites:audit:project:hardis"
9690
9690
  ]
9691
9691
  },
9692
+ "hardis:project:configure:auth": {
9693
+ "aliases": [],
9694
+ "args": {},
9695
+ "description": "\n## Command Behavior\n\n**Configures authentication between a Git branch and a target Salesforce org for CI/CD deployments.**\n\nThis command facilitates the setup of automated CI/CD pipelines, enabling seamless deployments from specific Git branches to designated Salesforce orgs. It supports both standard Salesforce orgs and Dev Hub configurations, catering to various enterprise deployment workflows.\n\nKey functionalities include:\n\n- **Org Selection/Login:** Guides the user to select an existing Salesforce org or log in to a new one.\n- **Git Branch Association:** Allows associating a specific Git branch with the chosen Salesforce org.\n- **Merge Target Definition:** Enables defining target Git branches into which the configured branch can merge, ensuring controlled deployment flows.\n- **Salesforce Username Configuration:** Prompts for the Salesforce username to be used by the CI server for deployments.\n- **SSL Certificate Generation:** Automatically generates an SSL certificate for secure authentication.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's implementation involves several key technical aspects:\n\n- **SF CLI Integration:** Utilizes \n@salesforce/sf-plugins-core\n for command structure and flag parsing.\n- **Interactive Prompts:** Employs the \nprompts\n library for interactive user input, guiding the configuration process.\n- **Git Integration:** Interacts with Git to retrieve branch information using \n`git().branch([\"--list\", \"-r\"])`\n.\n- **Configuration Management:** Leverages internal utilities (`checkConfig`, `getConfig`, `setConfig`, `setInConfigFile`) to read from and write to project-specific configuration files (e.g., `.sfdx-hardis.<branchName>.yml`).\n- **Salesforce CLI Execution:** Executes Salesforce CLI commands programmatically via `execSfdxJson` for org interactions.\n- **SSL Certificate Generation:** Calls `generateSSLCertificate` to create necessary SSL certificates for JWT-based authentication.\n- **WebSocket Communication:** Uses `WebSocketClient` for potential communication with external tools or processes, such as restarting the command in VS Code.\n- **Dependency Check:** Ensures the presence of `openssl` on the system, which is required for SSL certificate generation.\n",
9696
+ "examples": [
9697
+ "$ sf hardis:project:configure:auth"
9698
+ ],
9699
+ "flags": {
9700
+ "json": {
9701
+ "description": "Format output as json.",
9702
+ "helpGroup": "GLOBAL",
9703
+ "name": "json",
9704
+ "allowNo": false,
9705
+ "type": "boolean"
9706
+ },
9707
+ "flags-dir": {
9708
+ "helpGroup": "GLOBAL",
9709
+ "name": "flags-dir",
9710
+ "summary": "Import flag values from a directory.",
9711
+ "hasDynamicHelp": false,
9712
+ "multiple": false,
9713
+ "type": "option"
9714
+ },
9715
+ "devhub": {
9716
+ "char": "b",
9717
+ "description": "Configure project DevHub",
9718
+ "name": "devhub",
9719
+ "allowNo": false,
9720
+ "type": "boolean"
9721
+ },
9722
+ "debug": {
9723
+ "char": "d",
9724
+ "description": "Activate debug mode (more logs)",
9725
+ "name": "debug",
9726
+ "allowNo": false,
9727
+ "type": "boolean"
9728
+ },
9729
+ "websocket": {
9730
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
9731
+ "name": "websocket",
9732
+ "hasDynamicHelp": false,
9733
+ "multiple": false,
9734
+ "type": "option"
9735
+ },
9736
+ "skipauth": {
9737
+ "description": "Skip authentication check when a default username is required",
9738
+ "name": "skipauth",
9739
+ "allowNo": false,
9740
+ "type": "boolean"
9741
+ },
9742
+ "target-org": {
9743
+ "aliases": [
9744
+ "targetusername",
9745
+ "u"
9746
+ ],
9747
+ "char": "o",
9748
+ "deprecateAliases": true,
9749
+ "name": "target-org",
9750
+ "noCacheDefault": true,
9751
+ "summary": "Username or alias of the target org.",
9752
+ "hasDynamicHelp": true,
9753
+ "multiple": false,
9754
+ "type": "option"
9755
+ },
9756
+ "target-dev-hub": {
9757
+ "aliases": [
9758
+ "targetdevhubusername"
9759
+ ],
9760
+ "char": "v",
9761
+ "deprecateAliases": true,
9762
+ "name": "target-dev-hub",
9763
+ "noCacheDefault": true,
9764
+ "required": false,
9765
+ "summary": "Username or alias of the Dev Hub org.",
9766
+ "hasDynamicHelp": true,
9767
+ "multiple": false,
9768
+ "type": "option"
9769
+ }
9770
+ },
9771
+ "hasDynamicHelp": true,
9772
+ "hiddenAliases": [],
9773
+ "id": "hardis:project:configure:auth",
9774
+ "pluginAlias": "sfdx-hardis",
9775
+ "pluginName": "sfdx-hardis",
9776
+ "pluginType": "core",
9777
+ "strict": true,
9778
+ "enableJsonFlag": true,
9779
+ "title": "Configure authentication",
9780
+ "requiresProject": false,
9781
+ "requiresDependencies": [
9782
+ "openssl"
9783
+ ],
9784
+ "isESM": true,
9785
+ "relativePath": [
9786
+ "lib",
9787
+ "commands",
9788
+ "hardis",
9789
+ "project",
9790
+ "configure",
9791
+ "auth.js"
9792
+ ],
9793
+ "aliasPermutations": [],
9794
+ "permutations": [
9795
+ "hardis:project:configure:auth",
9796
+ "project:hardis:configure:auth",
9797
+ "project:configure:hardis:auth",
9798
+ "project:configure:auth:hardis",
9799
+ "hardis:configure:project:auth",
9800
+ "configure:hardis:project:auth",
9801
+ "configure:project:hardis:auth",
9802
+ "configure:project:auth:hardis",
9803
+ "hardis:configure:auth:project",
9804
+ "configure:hardis:auth:project",
9805
+ "configure:auth:hardis:project",
9806
+ "configure:auth:project:hardis",
9807
+ "hardis:project:auth:configure",
9808
+ "project:hardis:auth:configure",
9809
+ "project:auth:hardis:configure",
9810
+ "project:auth:configure:hardis",
9811
+ "hardis:auth:project:configure",
9812
+ "auth:hardis:project:configure",
9813
+ "auth:project:hardis:configure",
9814
+ "auth:project:configure:hardis",
9815
+ "hardis:auth:configure:project",
9816
+ "auth:hardis:configure:project",
9817
+ "auth:configure:hardis:project",
9818
+ "auth:configure:project:hardis"
9819
+ ]
9820
+ },
9821
+ "hardis:project:convert:profilestopermsets": {
9822
+ "aliases": [],
9823
+ "args": {},
9824
+ "description": "\n## Command Behavior\n\n**Converts existing Salesforce Profiles into Permission Sets, facilitating a more granular and recommended security model.**\n\nThis command helps in migrating permissions from Profiles to Permission Sets, which is a best practice for managing user access in Salesforce. It creates a new Permission Set for each specified Profile, adopting a naming convention of `PS_PROFILENAME`.\n\nKey functionalities:\n\n- **Profile to Permission Set Conversion:** Automatically extracts permissions from a Profile and creates a corresponding Permission Set.\n- **Naming Convention:** New Permission Sets are named with a `PS_` prefix followed by the Profile name (e.g., `PS_Standard_User`).\n- **Exclusion Filter:** Allows you to exclude specific Profiles from the conversion process using the `--except` flag.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **External Plugin Integration:** It relies on the `shane-sfdx-plugins` (specifically the `sf shane:profile:convert` command) to perform the actual conversion.\n- **File System Scan:** It reads the contents of the `force-app/main/default/profiles` directory to identify all available Profile metadata files.\n- **Command Execution:** For each identified Profile (that is not excluded), it constructs and executes the `sf shane:profile:convert` command with the appropriate Profile name and desired Permission Set name.\n- **Error Handling:** Includes basic error handling for the external command execution.\n</details>\n",
9825
+ "examples": [
9826
+ "$ sf hardis:project:convert:profilestopermsets"
9827
+ ],
9828
+ "flags": {
9829
+ "json": {
9830
+ "description": "Format output as json.",
9831
+ "helpGroup": "GLOBAL",
9832
+ "name": "json",
9833
+ "allowNo": false,
9834
+ "type": "boolean"
9835
+ },
9836
+ "flags-dir": {
9837
+ "helpGroup": "GLOBAL",
9838
+ "name": "flags-dir",
9839
+ "summary": "Import flag values from a directory.",
9840
+ "hasDynamicHelp": false,
9841
+ "multiple": false,
9842
+ "type": "option"
9843
+ },
9844
+ "except": {
9845
+ "char": "e",
9846
+ "description": "List of filters",
9847
+ "name": "except",
9848
+ "default": [],
9849
+ "hasDynamicHelp": false,
9850
+ "multiple": true,
9851
+ "type": "option"
9852
+ },
9853
+ "debug": {
9854
+ "char": "d",
9855
+ "description": "Activate debug mode (more logs)",
9856
+ "name": "debug",
9857
+ "allowNo": false,
9858
+ "type": "boolean"
9859
+ },
9860
+ "websocket": {
9861
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
9862
+ "name": "websocket",
9863
+ "hasDynamicHelp": false,
9864
+ "multiple": false,
9865
+ "type": "option"
9866
+ },
9867
+ "skipauth": {
9868
+ "description": "Skip authentication check when a default username is required",
9869
+ "name": "skipauth",
9870
+ "allowNo": false,
9871
+ "type": "boolean"
9872
+ }
9873
+ },
9874
+ "hasDynamicHelp": false,
9875
+ "hiddenAliases": [],
9876
+ "id": "hardis:project:convert:profilestopermsets",
9877
+ "pluginAlias": "sfdx-hardis",
9878
+ "pluginName": "sfdx-hardis",
9879
+ "pluginType": "core",
9880
+ "strict": true,
9881
+ "enableJsonFlag": true,
9882
+ "title": "Convert Profiles into Permission Sets",
9883
+ "requiresProject": true,
9884
+ "requiresSfdxPlugins": [
9885
+ "shane-sfdx-plugins"
9886
+ ],
9887
+ "isESM": true,
9888
+ "relativePath": [
9889
+ "lib",
9890
+ "commands",
9891
+ "hardis",
9892
+ "project",
9893
+ "convert",
9894
+ "profilestopermsets.js"
9895
+ ],
9896
+ "aliasPermutations": [],
9897
+ "permutations": [
9898
+ "hardis:project:convert:profilestopermsets",
9899
+ "project:hardis:convert:profilestopermsets",
9900
+ "project:convert:hardis:profilestopermsets",
9901
+ "project:convert:profilestopermsets:hardis",
9902
+ "hardis:convert:project:profilestopermsets",
9903
+ "convert:hardis:project:profilestopermsets",
9904
+ "convert:project:hardis:profilestopermsets",
9905
+ "convert:project:profilestopermsets:hardis",
9906
+ "hardis:convert:profilestopermsets:project",
9907
+ "convert:hardis:profilestopermsets:project",
9908
+ "convert:profilestopermsets:hardis:project",
9909
+ "convert:profilestopermsets:project:hardis",
9910
+ "hardis:project:profilestopermsets:convert",
9911
+ "project:hardis:profilestopermsets:convert",
9912
+ "project:profilestopermsets:hardis:convert",
9913
+ "project:profilestopermsets:convert:hardis",
9914
+ "hardis:profilestopermsets:project:convert",
9915
+ "profilestopermsets:hardis:project:convert",
9916
+ "profilestopermsets:project:hardis:convert",
9917
+ "profilestopermsets:project:convert:hardis",
9918
+ "hardis:profilestopermsets:convert:project",
9919
+ "profilestopermsets:hardis:convert:project",
9920
+ "profilestopermsets:convert:hardis:project",
9921
+ "profilestopermsets:convert:project:hardis"
9922
+ ]
9923
+ },
9692
9924
  "hardis:project:clean:emptyitems": {
9693
9925
  "aliases": [],
9694
9926
  "args": {},
@@ -11174,238 +11406,6 @@
11174
11406
  "xml:clean:project:hardis"
11175
11407
  ]
11176
11408
  },
11177
- "hardis:project:configure:auth": {
11178
- "aliases": [],
11179
- "args": {},
11180
- "description": "\n## Command Behavior\n\n**Configures authentication between a Git branch and a target Salesforce org for CI/CD deployments.**\n\nThis command facilitates the setup of automated CI/CD pipelines, enabling seamless deployments from specific Git branches to designated Salesforce orgs. It supports both standard Salesforce orgs and Dev Hub configurations, catering to various enterprise deployment workflows.\n\nKey functionalities include:\n\n- **Org Selection/Login:** Guides the user to select an existing Salesforce org or log in to a new one.\n- **Git Branch Association:** Allows associating a specific Git branch with the chosen Salesforce org.\n- **Merge Target Definition:** Enables defining target Git branches into which the configured branch can merge, ensuring controlled deployment flows.\n- **Salesforce Username Configuration:** Prompts for the Salesforce username to be used by the CI server for deployments.\n- **SSL Certificate Generation:** Automatically generates an SSL certificate for secure authentication.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's implementation involves several key technical aspects:\n\n- **SF CLI Integration:** Utilizes \n@salesforce/sf-plugins-core\n for command structure and flag parsing.\n- **Interactive Prompts:** Employs the \nprompts\n library for interactive user input, guiding the configuration process.\n- **Git Integration:** Interacts with Git to retrieve branch information using \n`git().branch([\"--list\", \"-r\"])`\n.\n- **Configuration Management:** Leverages internal utilities (`checkConfig`, `getConfig`, `setConfig`, `setInConfigFile`) to read from and write to project-specific configuration files (e.g., `.sfdx-hardis.<branchName>.yml`).\n- **Salesforce CLI Execution:** Executes Salesforce CLI commands programmatically via `execSfdxJson` for org interactions.\n- **SSL Certificate Generation:** Calls `generateSSLCertificate` to create necessary SSL certificates for JWT-based authentication.\n- **WebSocket Communication:** Uses `WebSocketClient` for potential communication with external tools or processes, such as restarting the command in VS Code.\n- **Dependency Check:** Ensures the presence of `openssl` on the system, which is required for SSL certificate generation.\n",
11181
- "examples": [
11182
- "$ sf hardis:project:configure:auth"
11183
- ],
11184
- "flags": {
11185
- "json": {
11186
- "description": "Format output as json.",
11187
- "helpGroup": "GLOBAL",
11188
- "name": "json",
11189
- "allowNo": false,
11190
- "type": "boolean"
11191
- },
11192
- "flags-dir": {
11193
- "helpGroup": "GLOBAL",
11194
- "name": "flags-dir",
11195
- "summary": "Import flag values from a directory.",
11196
- "hasDynamicHelp": false,
11197
- "multiple": false,
11198
- "type": "option"
11199
- },
11200
- "devhub": {
11201
- "char": "b",
11202
- "description": "Configure project DevHub",
11203
- "name": "devhub",
11204
- "allowNo": false,
11205
- "type": "boolean"
11206
- },
11207
- "debug": {
11208
- "char": "d",
11209
- "description": "Activate debug mode (more logs)",
11210
- "name": "debug",
11211
- "allowNo": false,
11212
- "type": "boolean"
11213
- },
11214
- "websocket": {
11215
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
11216
- "name": "websocket",
11217
- "hasDynamicHelp": false,
11218
- "multiple": false,
11219
- "type": "option"
11220
- },
11221
- "skipauth": {
11222
- "description": "Skip authentication check when a default username is required",
11223
- "name": "skipauth",
11224
- "allowNo": false,
11225
- "type": "boolean"
11226
- },
11227
- "target-org": {
11228
- "aliases": [
11229
- "targetusername",
11230
- "u"
11231
- ],
11232
- "char": "o",
11233
- "deprecateAliases": true,
11234
- "name": "target-org",
11235
- "noCacheDefault": true,
11236
- "summary": "Username or alias of the target org.",
11237
- "hasDynamicHelp": true,
11238
- "multiple": false,
11239
- "type": "option"
11240
- },
11241
- "target-dev-hub": {
11242
- "aliases": [
11243
- "targetdevhubusername"
11244
- ],
11245
- "char": "v",
11246
- "deprecateAliases": true,
11247
- "name": "target-dev-hub",
11248
- "noCacheDefault": true,
11249
- "required": false,
11250
- "summary": "Username or alias of the Dev Hub org.",
11251
- "hasDynamicHelp": true,
11252
- "multiple": false,
11253
- "type": "option"
11254
- }
11255
- },
11256
- "hasDynamicHelp": true,
11257
- "hiddenAliases": [],
11258
- "id": "hardis:project:configure:auth",
11259
- "pluginAlias": "sfdx-hardis",
11260
- "pluginName": "sfdx-hardis",
11261
- "pluginType": "core",
11262
- "strict": true,
11263
- "enableJsonFlag": true,
11264
- "title": "Configure authentication",
11265
- "requiresProject": false,
11266
- "requiresDependencies": [
11267
- "openssl"
11268
- ],
11269
- "isESM": true,
11270
- "relativePath": [
11271
- "lib",
11272
- "commands",
11273
- "hardis",
11274
- "project",
11275
- "configure",
11276
- "auth.js"
11277
- ],
11278
- "aliasPermutations": [],
11279
- "permutations": [
11280
- "hardis:project:configure:auth",
11281
- "project:hardis:configure:auth",
11282
- "project:configure:hardis:auth",
11283
- "project:configure:auth:hardis",
11284
- "hardis:configure:project:auth",
11285
- "configure:hardis:project:auth",
11286
- "configure:project:hardis:auth",
11287
- "configure:project:auth:hardis",
11288
- "hardis:configure:auth:project",
11289
- "configure:hardis:auth:project",
11290
- "configure:auth:hardis:project",
11291
- "configure:auth:project:hardis",
11292
- "hardis:project:auth:configure",
11293
- "project:hardis:auth:configure",
11294
- "project:auth:hardis:configure",
11295
- "project:auth:configure:hardis",
11296
- "hardis:auth:project:configure",
11297
- "auth:hardis:project:configure",
11298
- "auth:project:hardis:configure",
11299
- "auth:project:configure:hardis",
11300
- "hardis:auth:configure:project",
11301
- "auth:hardis:configure:project",
11302
- "auth:configure:hardis:project",
11303
- "auth:configure:project:hardis"
11304
- ]
11305
- },
11306
- "hardis:project:convert:profilestopermsets": {
11307
- "aliases": [],
11308
- "args": {},
11309
- "description": "\n## Command Behavior\n\n**Converts existing Salesforce Profiles into Permission Sets, facilitating a more granular and recommended security model.**\n\nThis command helps in migrating permissions from Profiles to Permission Sets, which is a best practice for managing user access in Salesforce. It creates a new Permission Set for each specified Profile, adopting a naming convention of `PS_PROFILENAME`.\n\nKey functionalities:\n\n- **Profile to Permission Set Conversion:** Automatically extracts permissions from a Profile and creates a corresponding Permission Set.\n- **Naming Convention:** New Permission Sets are named with a `PS_` prefix followed by the Profile name (e.g., `PS_Standard_User`).\n- **Exclusion Filter:** Allows you to exclude specific Profiles from the conversion process using the `--except` flag.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **External Plugin Integration:** It relies on the `shane-sfdx-plugins` (specifically the `sf shane:profile:convert` command) to perform the actual conversion.\n- **File System Scan:** It reads the contents of the `force-app/main/default/profiles` directory to identify all available Profile metadata files.\n- **Command Execution:** For each identified Profile (that is not excluded), it constructs and executes the `sf shane:profile:convert` command with the appropriate Profile name and desired Permission Set name.\n- **Error Handling:** Includes basic error handling for the external command execution.\n</details>\n",
11310
- "examples": [
11311
- "$ sf hardis:project:convert:profilestopermsets"
11312
- ],
11313
- "flags": {
11314
- "json": {
11315
- "description": "Format output as json.",
11316
- "helpGroup": "GLOBAL",
11317
- "name": "json",
11318
- "allowNo": false,
11319
- "type": "boolean"
11320
- },
11321
- "flags-dir": {
11322
- "helpGroup": "GLOBAL",
11323
- "name": "flags-dir",
11324
- "summary": "Import flag values from a directory.",
11325
- "hasDynamicHelp": false,
11326
- "multiple": false,
11327
- "type": "option"
11328
- },
11329
- "except": {
11330
- "char": "e",
11331
- "description": "List of filters",
11332
- "name": "except",
11333
- "default": [],
11334
- "hasDynamicHelp": false,
11335
- "multiple": true,
11336
- "type": "option"
11337
- },
11338
- "debug": {
11339
- "char": "d",
11340
- "description": "Activate debug mode (more logs)",
11341
- "name": "debug",
11342
- "allowNo": false,
11343
- "type": "boolean"
11344
- },
11345
- "websocket": {
11346
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
11347
- "name": "websocket",
11348
- "hasDynamicHelp": false,
11349
- "multiple": false,
11350
- "type": "option"
11351
- },
11352
- "skipauth": {
11353
- "description": "Skip authentication check when a default username is required",
11354
- "name": "skipauth",
11355
- "allowNo": false,
11356
- "type": "boolean"
11357
- }
11358
- },
11359
- "hasDynamicHelp": false,
11360
- "hiddenAliases": [],
11361
- "id": "hardis:project:convert:profilestopermsets",
11362
- "pluginAlias": "sfdx-hardis",
11363
- "pluginName": "sfdx-hardis",
11364
- "pluginType": "core",
11365
- "strict": true,
11366
- "enableJsonFlag": true,
11367
- "title": "Convert Profiles into Permission Sets",
11368
- "requiresProject": true,
11369
- "requiresSfdxPlugins": [
11370
- "shane-sfdx-plugins"
11371
- ],
11372
- "isESM": true,
11373
- "relativePath": [
11374
- "lib",
11375
- "commands",
11376
- "hardis",
11377
- "project",
11378
- "convert",
11379
- "profilestopermsets.js"
11380
- ],
11381
- "aliasPermutations": [],
11382
- "permutations": [
11383
- "hardis:project:convert:profilestopermsets",
11384
- "project:hardis:convert:profilestopermsets",
11385
- "project:convert:hardis:profilestopermsets",
11386
- "project:convert:profilestopermsets:hardis",
11387
- "hardis:convert:project:profilestopermsets",
11388
- "convert:hardis:project:profilestopermsets",
11389
- "convert:project:hardis:profilestopermsets",
11390
- "convert:project:profilestopermsets:hardis",
11391
- "hardis:convert:profilestopermsets:project",
11392
- "convert:hardis:profilestopermsets:project",
11393
- "convert:profilestopermsets:hardis:project",
11394
- "convert:profilestopermsets:project:hardis",
11395
- "hardis:project:profilestopermsets:convert",
11396
- "project:hardis:profilestopermsets:convert",
11397
- "project:profilestopermsets:hardis:convert",
11398
- "project:profilestopermsets:convert:hardis",
11399
- "hardis:profilestopermsets:project:convert",
11400
- "profilestopermsets:hardis:project:convert",
11401
- "profilestopermsets:project:hardis:convert",
11402
- "profilestopermsets:project:convert:hardis",
11403
- "hardis:profilestopermsets:convert:project",
11404
- "profilestopermsets:hardis:convert:project",
11405
- "profilestopermsets:convert:hardis:project",
11406
- "profilestopermsets:convert:project:hardis"
11407
- ]
11408
- },
11409
11409
  "hardis:project:deploy:notify": {
11410
11410
  "aliases": [],
11411
11411
  "args": {},
@@ -15369,5 +15369,5 @@
15369
15369
  ]
15370
15370
  }
15371
15371
  },
15372
- "version": "6.7.1"
15372
+ "version": "6.7.2-beta202510122255.0"
15373
15373
  }