Select attribute transform action
Last updated
Was this helpful?
Last updated
Was this helpful?
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
.
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.
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.
For nested field names, separate them by dots (e.g., details.age
).
The expected output for this transform is a list of objects that tested true.
Example from Example 1:
Example from Example 2: