Retrieve entitlements and events for a package
  • 16 Jul 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Retrieve entitlements and events for a package

  • Dark
    Light
  • PDF

Article summary

When you want to retrieve the entitlements and event/triggers of a package you can use the script offered as an example in this article.

First, you must connect to the zone with Liquit Powershell as described in Getting Started.

Then run the following script:

$entitlements = Get-LiquitPackageEntitlement -Package $package

for ($i = 0; $i -lt $entitlements.Count; $i++) {

$identity=$entitlements[$i].Identity

$events=$entitlements[$i].Events

Write-Host"Identity:"

Write-Host" Type: $($identity.Type)"

Write-Host" Name: $($identity.Name)"

Write-Host" DisplayName: $($identity.DisplayName)"

Write-Host" ID: $($identity.ID)"

Write-Host"Events:"

foreach ($eventin$events) {

Write-Host" Type: $($event.Type)"

Write-Host" ActionSet: $($event.ActionSet)"

Write-Host" Collection: $($event.Collection)"

}

}

Was this article helpful?