Good day,
This topic covers how to create a search campaign only for one access profile.
But, I want to create a search campaign for more than one access profiles.
As shown in the attached screenshot, I created a workflow using the steps below but without any luck as it throws an error message.
1: When Identity attributes changed
2: HTTP Request - makes API call to search endpoint to return ids/names of the access profiles of an identity
3: HTTP Request 1 - makes API call to create a search campaign based on the above input
4: End workflow
The first HTTP request body has below JSON to return their access profiles. It works fine.
{
"indices": [
"identities"
],
"query": {
"query": "id:IdoftheIdentity",
"innerHit": {
"query": "type:ACCESS_PROFILE AND requestable:false",
"type": "access"
}
},
"includeNested": true,
"queryResultFilter": {
"includes": [
"id",
"displayName"
]
}
}
The second HTTP request body has below JSON to create a search campaign
{
"name":"TEST Campaign",
"description": "Search Campaign",
"type": "SEARCH",
"searchCampaignInfo": {
"type": "ACCESS",
"reviewer": {
"id": "IdoftheReviewer",
"type": "IDENTITY"
},
"query": "id:{{$.hTTPRequest.body[*].id}}",
"identityIds": [
"IdoftheIdentitytoCertify"
]
}
}
If use the query object as "query": "id:{{$.hTTPRequest.body[0].id}}"
then it creates campaign only for the first access profile and ignores the rest.
Can you please advise how should I amend the above JSON to create a search campaign for more than one access profiles?
Thanks