Select attribute transform action
Use case
While reviewing a list of users returned from Microsoft Graph, you need to get a list of the users who have a accountEnabled
attribute value set to true
.
Overview

This action filters a sequence of objects by applying a test to the specified attribute of each object, and only selecting the objects where the test succeeds.
Parameters
Attribute
The attribute of an object in the list that you would like to select if the condition is true. If nested, please use dot notation.
Comparison Operator
Test used for selecting matches. For information on the tests see Jinja's documentation here.
List
This is the list to run select attribute against.
Value to Compare Against
The value to compare the attribute against, this is required for most tests but tests such as true, false, defined, undefined do not require it. If a value is supplied and not needed it will be ignored.
Usage
Results output
The expected output for this transform is a list of objects that tested true.
Example from Example 1:
[
{
"result": {
"result": {
"data": {
"age": 25,
"bool": true,
"username": "bmorton"
}
}
}
},
{
"result": {
"result": {
"data": {
"age": 27,
"bool": false,
"username": "cmorton"
}
}
}
}
]
Example from Example 2:
[
{
"result": {
"result": {
"data": {
"age": 30,
"bool": false,
"listah": [],
"username": "dmorton"
}
}
}
}
]
Last updated
Was this helpful?