Privilege Cloud License Capacity User Report
Introduction: The Privilege Cloud License Capacity User Report script is a PowerShell tool designed to generate comprehensive reports of users consuming resources in the Privilege Cloud for a specific tenant URL.
Prerequisites:
-
Must execute from a machine that can reach the tenant via CyberArk Port 1858
-
Must execute from a machine that can reach the tenant via HTTPs
-
Privilege Cloud Tenant URL, Example
https://<subdomain>.cyberark.cloud
. -
Local CyberArk Account (for STD we recommend admin_. for ISPSS installeruser@
Flag Options:
-
-PortalURL
(Mandatory):- Specifies the URL of the Privilege Cloud tenant. Example:
-PortalURL "https://<subdomain>.cyberark.cloud"
- Specifies the URL of the Privilege Cloud tenant. Example:
-
-AuthType
(Optional):- Specifies the authentication type for accessing Privilege Cloud. Default value:
cyberark
- Valid values:
cyberark
- Specifies the authentication type for accessing Privilege Cloud. Default value:
-
-InactiveDays
(Optional):- Specifies the number of days to consider users as inactive. Default value:
60
- Example:
-InactiveDays 90
- Specifies the number of days to consider users as inactive. Default value:
-
-ExportToCSV
(Switch):- If this switch is specified, the results will be exported to a CSV file. If not specified, results will be printed in the PowerShell console.
-
-GetSpecificUserTypes
(Optional):- Specifies the user types to generate a report on. Default values:
EPVUser, EPVUserLite, BasicUser, ExtUser, CPM, PSM, AppProvider
- Example:
-GetSpecificUserTypes "EPVUser", "BasicUser"
- Specifies the user types to generate a report on. Default values:
-
-ReportType
(Optional):- Specifies the type of report to generate. Default value:
CapacityReport
- Valid values:
CapacityReport
,DetailedReport
- Example:
-ReportType DetailedReport
- Specifies the type of report to generate. Default value:
Examples:
-
License Capacity Report:
.\PrivilegeCloudConsumedUserReport.ps1 -PortalURL "https://<subdomain>.cyberark.cloud" -AuthType "cyberark" -InactiveDays 60 -ReportType CapacityReport
-
Detailed Report for Specific User Types:
.\PrivilegeCloudConsumedUserReport.ps1 -PortalURL "https://<subdomain>.cyberark.cloud" -AuthType "cyberark" -InactiveDays 90 -ExportToCSV -ReportType DetailedReport
- The script may take some time to execute, depending on the number of users and the response time from the Privilege Cloud API.