Prerequisites
- Requires Powershell Core (recommended), or Windows PowerShell (version 5.1)
- An Idira Identity tenant with the Risk Management service enabled
- An Account to Access Idira Identity
- The
IdentityCommandmodule.
Install Options
Install from the PowerShell Gallery:
Install-Module -Name IdentityCommand.RiskMgmt -Scope CurrentUser
Or download the latest release, unblock and extract the archive, and copy the IdentityCommand.RiskMgmt folder into a path listed in $env:PSModulePath.
Authentication
The module requires authentication to the Idira Identity platform using the IdentityCommand module.
The IdentityCommand module must be installed and available in order to use IdentityCommand.RiskMgmt.
Authenticate with the IdentityCommand module, using New-IDSession (interactive user, including any MFA challenges) or New-IDPlatformToken (non-interactive service user). Commands find the Risk Management service url from the Identity session on first use - no separate connection step is needed:
# Interactive user authentication
New-IDSession -tenant_url https://abc1234.id.cyberark.cloud -Credential $Credential
# Or non-interactive service user authentication via an OAuth platform token
New-IDPlatformToken -tenant_url https://abc1234.id.cyberark.cloud -Credential $ServiceUserCredential
Get-RMFinding
Commands follow the current Identity session: a later New-IDSession or New-IDPlatformToken is used by the next command, and after Close-IDSession commands fail until you authenticate again.