Skip to main content

Conditional

Properties

NameTypeDescriptionNotes
ExpressionStringA comparison statement that follows the structure of ValueA eq ValueB where ValueA and ValueB are static strings or outputs of other transforms. The eq operator is the only valid comparison[required]
PositiveConditionStringThe output of the transform if the expression evalutes to true[required]
NegativeConditionStringThe output of the transform if the expression evalutes to false[required]
RequiresPeriodicRefreshBooleanA value that indicates whether the transform logic should be re-evaluated every evening as part of the identity refresh process[optional] [default to $false]
VarInput[map[string]AnyType]https://learn.microsoft.com/en-us/powershell/scripting/lang-spec/chapter-04?view=powershell-7.4This is an optional attribute that can explicitly define the input data which will be fed into the transform logic. If input is not provided, the transform will take its input from the source and attribute combination configured via the UI.[optional]

Examples

  • Prepare the resource
$Conditional = Initialize-PSSailpoint.BetaConditional  -Expression ValueA eq ValueB `
-PositiveCondition true `
-NegativeCondition false `
-RequiresPeriodicRefresh false `
-VarInput {type=accountAttribute, attributes={attributeName=first_name, sourceName=Source}}
  • Convert the resource to JSON
$Conditional | ConvertTo-JSON

[Back to top]