From your explanation its a simple parent endpoint aggregation and doesn`t need a rule to read the accounts!
{
"httpMethodType": "GET",
"pagingInitialOffset": 0,
"requestType": "API",
"sequenceNumberForEndpoint": "3",
"uniqueNameForEndPoint": "Read Accounts",
"rootPath": "$\[\*\]",
"body": {
"bodyFormData": null,
"jsonBody": null,
"bodyFormat": null
},
"paginationSteps": null,
"responseCode": \[
"2\*\*"
\],
"resMappingObj": {
"blocked": "blocked",
"user_id": "user_id",
"name": "name",
"nickname": "nickname",
"email": "email"
},
"contextUrl": "users",
"pagingSize": 50,
"header": {
"Authorization": "Bearer $application.accessToken$",
"Accept": "application/json"
},
"operationType": "Account Aggregation",
"xpathNamespaces": null,
"parentEndpointName": null
},
{
"httpMethodType": "GET",
"pagingInitialOffset": 0,
"requestType": "API",
"sequenceNumberForEndpoint": "4",
"uniqueNameForEndPoint": "Get User Roles",
"rootPath": "$\[\*\]",
"body": {
"bodyFormData": null,
"jsonBody": null,
"bodyFormat": null
},
"paginationSteps": null,
"responseCode": \[
"2\*\*"
\],
"resMappingObj": {
"roles": "id"
},
"contextUrl": "users/$response.user_id$/roles",
"pagingSize": 50,
"header": {
"Authorization": "Bearer $application.accessToken$",
"Accept": "application/json"
},
"operationType": "Account Aggregation",
"xpathNamespaces": null,
"parentEndpointName": "Read Accounts"
}
In this case a call the endpoint users and for each user i call **users/$response.user_id$/roles.
**
Best Regards!