error when running InactiveUsersReport.ps1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

error when running InactiveUsersReport.ps1

L0 Member

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.

 

 

 

 

1 REPLY 1

L6 Presenter

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

 

  • 251 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!