Previous Topic: Output ParametersNext Topic: Operator Failure


Examples

Example - Use a generic filter

Get Object operator - Retrieve Criteria

In this example, we are trying to retrieve all computer accounts under the "CN=Computers,DC=itpam,DC=ca,DC=local" path. We are specifically asking for the "cn", "distinguishedname", "objectcategory", and "objectclass" attributes of these accounts.

Get Object operator Sort Criteria

We are also sorting the returned user accounts by “cn”.

After the operation ran, it ended successfully and the RetrievedObjects variable was created as follows:

RetrievedObjects Variable (Get Object Operator)

For each value map in the RetrievedObjects variable, we now have the values retrieved for each computer account attribute. In this example, the RetrievedObjects variable contains eight objects.

Eight objects in the RetrievedObjects variable (Get Object operator)

Also note that the values of multi-valued attributes (objectclass in this example) are returned with a "|" between the multiple values:

objectclass - Get Object Operator

Example - Use your own filter

Get Object operator's retrieve criteria

In this example, we are using our own filter (note retrieve Object Type is set to Other) to retrieve all container accounts under the "DC=itpam,DC=ca,DC=local" path. We are specifically asking for the "cn", "distinguishedname", "objectcategory", and "objectclass" attributes of these accounts.

Get Object operator Sort Criteria

We are also sorting the returned user accounts by "cn".

After the operation ran, it ended successfully and the RetrievedObjects variable was created as follows:

In each value map in the RetrievedObjects variable, we now have the values retrieved for each container account attribute. The RetrievedObjects variable contains 86 objects in this example.

Please also note that the values of multi-valued attributes (objectclass in this example) are returned with a "|" between the multiple values:

objectclass Example (Get Object Operator)