How to use Idira Privilege Cloud Tools for License Capacity and User Reporting
252
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 15:58 PM
Objective
This guide is aimed at privilege cloud customers who wish to understand more about their license and gain more insight into their user reporting.
The tool is found here in the marketplace: https://community.cyberark.com/marketplace/s/#a352J000000GWAZQA4-a392J000002tNgLQAU
Key Features:
Comprehensive Reporting: The script generates two report types:- A detailed report of User types & Vault users consuming the license in Privilege Cloud.
- License Capacity Report (Total Users, How many consumed, how many currently logged on).
Export Options: The report can be exported to a CSV file for further analysis.
Customizable Reporting: You can specify the user types you want to report on (For example only CPM,PSM)
[default are EPVUser, EPVUserLite, BasicUser, ExtUser, AIMAccounts, AppProvider, CPM, PSM]
Ease of Use: The script is user-friendly and easy to run, requiring only minimal input parameters:
Privilege Cloud Portal URL + local CyberArk user/pass
(Must be executed from a CyberArk machine that can reach the Vault via port 1858 and 443).
Environment
13.0;13.2;13.1;14.6 Privilege Cloud;Identity Privilege Cloud Tenant / Backend
Procedure
Description and Steps
The script will enable you to understand more about your privileged cloud license, including expiration and overall capacity. The user reporting section will allow you to understand the last login dates of your licensed users to gain more insight to how your clients are utilizing the product.In order to use this script the following must be true:
- Must execute from a machine that can reach the tenant backend via CyberArk Port 1858
- Dynamic option here: https://docs.cyberark.com/PrivCloud-SS/Latest/en/Content/Privilege%20Cloud/PrivCloud-sys-req-networks.htm#Dynamicconfigurationrecommended
- If dynamic addresses aren't whitelisted use "Privilege Cloud Vault service backend": https://docs.cyberark.com/PrivCloud-SS/Latest/en/Content/Privilege%20Cloud/PrivCloud-sys-req-networks.htm#Staticconfigurationifdynamicconfigurationdoesnotapply
- Must execute from a machine that can reach the tenant via HTTPs
- Privilege Cloud Tenant URL, Example https://<subdomain>.cyberark.cloud
- Dynamic option here: https://docs.cyberark.com/PrivCloud-SS/Latest/en/Content/Privilege%20Cloud/PrivCloud-sys-req-networks.htm#Dynamicconfigurationrecommended
- If dynamic addresses aren't whitelisted use "Privilege Cloud portal": https://docs.cyberark.com/PrivCloud-SS/Latest/en/Content/Privilege%20Cloud/PrivCloud-sys-req-networks.htm#Staticconfigurationifdynamicconfigurationdoesnotapply
- Local CyberArk Account
- For Standard Environments we recommend admin_<subdomain>
- For Shared Services we recommend installeruser@<suffix> (Most tenants are Shared Services)
- You can also check this guide to find this user: https://community.cyberark.com/s/article/Privilege-Cloud-How-to-locate-and-update-the-InstallerUser-credential
- Both Users are provided as part of CyberArk platform out of the box and can run this tool with sufficient permissions
(Optional) Automating this task - Explanation on Authentication:
Since this tool is utilizing CASOS protocol to provide the license report, the authenticating user must have "cyberark" authentication profile.
- In Standard tenant, it's easy to achieve by creating a local user OR using <subDomain>_admin user.
- In Shared Services only "installerUser" has "cyberark" auth enabled. but since that user is reset after every 24h we do understand it makes things harder. In such case you can ask support to help you creating a local cyberark user in the vault with the following permissions (creating a service user will consume +1 license):
Zip File Contents
- Readme.txt file
- VaultOperationsTester folder containing files needed to perform Connectivity tests
- Get-UserTypesAndUsersLoginActivity.ps1
Step by Step
The script may take some time to execute, depending on the number of users and the response time from the Privilege Cloud API.- Download the package from the marketplace
- Unzip the Cyberark tools to a location such as, <Drive>:\\CyberarkTools\
- Click into the folder and find the subfolder named "Reports"
- Unzip the folder in this directory and click into the folder to find the script itself
- Open powershell and run the script with arguments for the report you want (see below)
- Examples
- .\Get-UserTypesAndUsersLoginActivity.ps1 -PortalURL "https://<subdomain>.cyberark.cloud" -AuthType "cyberark" -InactiveDays 60 -ReportType CapacityReport
- .\Get-UserTypesAndUsersLoginActivity.ps1 -PortalURL "https://<subdomain>.cyberark.cloud" -AuthType "cyberark" -InactiveDays 90 -ExportToCSV -ReportType DetailedReport
- Arguments
- -PortalURL (Mandatory):
- Specifies the URL of the Privilege Cloud tenant. Example: -PortalURL "https://<subdomain>.cyberark.cloud"
- -AuthType (Optional):
- Specifies the authentication type for accessing Privilege Cloud. Default value: cyberark
- Valid values: cyberark
- Example: -AuthType cyberark
- -InactiveDays (Optional):
- Specifies the number of days to consider users as inactive. Default value: 60
- Valid values: Numeric values
- Example: -InactiveDays 90
- -ExportToCSV (Optional):
- 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.
- Valid Values: None, including this argument will enable the feature above
- -GetSpecificUserTypes (Optional):
- Specifies the user types to generate a report on.
- Valid values: EPVUser, EPVUserLite, BasicUser, ExtUser, CPM, PSM, AppProvider
- Example: -GetSpecificUserTypes "EPVUser", "BasicUser"
- -ReportType (Optional):
- Specifies the type of report to generate. Default value: CapacityReport
- Valid values: CapacityReport, DetailedReport
- Example: -ReportType DetailedReport
- -PortalURL (Mandatory):
- Examples
- The report will be generated and displayed in the PowerShell console
- If the "-ExportToCSV" argument is used, the report will also be saved as individual CSV files for each user type
Screenshot Examples
Capacity Report (With colored displays for expiration warnings):
User Report:
Inactive Users:
Filtered CSV by inactive:
Troubleshooting:
Problem: PASWS041E You are not authorized to perform this action
This error means the user doesn't have "Audit Users" permissions in the vault, but sometimes even if it does, it still doesn't work, we believe this rare edge case is related to migration activity.
Solution: is to remove the permission and regrant it again to "refresh" it.