Hi Gustavo,
To achieve this, you’ll need to update your workflow logic as follows:
- Make an HTTP request to retrieve the members of the gov group – this should return a list of identities.
- Loop through the list of members.
- For each identity, retrieve their attributes to identify their manager.
- Retrieve the manager’s attributes.
- Send the email using the manager’s information.
You can try implementing the workflow using the structure outlined above.
Let me know if you need help with any step.
Best regards,
Yan Coelho
{
"name": "Send Email to Managers of GovGroup Members",
"description": "Send Email to Managers of GovGroup Members",
"modified": "2025-05-28T15:17:37.95566142Z",
"modifiedBy": {
"type": "IDENTITY",
"id": "12312312312",
"name": "Yan Coelho"
},
"definition": {
"start": "HTTP Request",
"steps": {
"End Step - Success": {
"actionId": "sp:operator-success",
"displayName": "",
"type": "success"
},
"HTTP Request": {
"actionId": "sp:http",
"attributes": {
"authenticationType": "OAuth",
"method": "get",
"oAuthClientId": "1231231",
"oAuthClientSecret": "12312312312",
"oAuthCredentialLocation": "oAuthInBody",
"oAuthScope": "sp:scopes:all",
"oAuthTokenUrl": "https://12312312312.api.identitynow-demo.com/oauth/token",
"requestContentType": null,
"requestHeaders": {
"X-SailPoint-Experimental": "true"
},
"url": "https://12312312312.api.identitynow-demo.com/v2025/workgroups/12312312312/members",
"urlParams": null
},
"displayName": "",
"nextStep": "Loop",
"type": "action",
"versionNumber": 2
},
"Loop": {
"actionId": "sp:loop:iterator",
"attributes": {
"input.$": "$.hTTPRequest.body",
"start": "Get Identity",
"steps": {
"End Step - Success 1": {
"actionId": "sp:operator-success",
"displayName": "",
"type": "success"
},
"Get Identity": {
"actionId": "sp:get-identity",
"attributes": {
"id.$": "$.loop.loopInput.id"
},
"displayName": "",
"nextStep": "Get Identity 1",
"type": "action",
"versionNumber": 2
},
"Get Identity 1": {
"actionId": "sp:get-identity",
"attributes": {
"id.$": "$.getIdentity.managerRef.id"
},
"displayName": "Get Identity - Manager",
"nextStep": "Send Email",
"type": "action",
"versionNumber": 2
},
"Send Email": {
"actionId": "sp:send-email",
"attributes": {
"body": "",
"context": {},
"recipientEmailList.$": "$.getIdentity1.attributes.email",
"subject": "send email"
},
"displayName": "",
"nextStep": "End Step - Success 1",
"type": "action",
"versionNumber": 2
}
}
},
"displayName": "",
"nextStep": "End Step - Success",
"type": "action",
"versionNumber": 1
}
}
},
"creator": {
"type": "IDENTITY",
"id": "12312321321",
"name": "Yan Coelho"
},
"trigger": {
"type": "EVENT",
"attributes": {
"id": "idn:identity-attributes-changed"
}
}
}```