- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
12-08-2022 09:39 AM
error while running inactvie users report
Cloud Vault 12.6
anyone familiar with this error below this is the script I'm trying to run Get-InactiveUsersReport.ps1
Creating a list of all inactive users from the last 30 days
There was an error Listing all Users. Error: Source:; Message: Invoke-Rest: Error in running Get on 'Https://.privilegecloud.cyberark.com/PasswordVault/v10/logon/cyberark/api/Users
'
->Source:System; Message: Specified value has invalid CRLF characters.
Parameter name: value
C:\Users\> \1234\Desktop\Get-InactiveUsersReport.ps1
cmdlet Get-InactiveUsersReport.ps1 at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
PVWAURL: Https://privilegecloud.cyberark.com/PasswordVault/v10/logon/cyberark
Starting script (v1.2)
Creating a list of all inactive users from the last 30 days
There was an error Listing all Users. Error: Source:; Message: Invoke-Rest: Error in running Get on 'Https://.privilegecloud.cyberark.com/PasswordVault/v10/logon/cyberark/api/Users
'
->Source:System; Message: Specified value has invalid CRLF characters.
Parameter name: value
This content is a preview of a link.
12-13-2022 02:18 PM
I think you are specifying the PVWA URL incorrectly. From the GitHub page for the InactiveUsers script, it should be specified in the following format:
"https://myPVWA.myDomain.com/PasswordVault", for Privilege Cloud Standalone that is "https://yoursubdomain.privilegecloud.cyberark.com/PasswordVault".
This is causing the API endpoint to be populated incorrectly as you see in the error (Https://.privilegecloud.cyberark.com/PasswordVault/v10/logon/cyberark/api/Users). It should end with '/PasswordVault/API/Users/' according to CyberArk documentation.
Reference: https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/SDK/get-users-api.htm
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

