Get Gov group members's manager - Workflow

Hey guys

I have this demand that i need to get the managers of the governance group members and send an email to all of them

but as i got answered in a previous topic, the get list of identity (tried also with static identities) that get their direct report, doesn’t work and return only 1 of the managers

do you know any workaround about this?

Hi Gustavo,
I reproduced this error in my environment, and I opened a bug Get Identities BUG
It really seems is not working properly, instead of a list is returning only one manager.
Let’s follow up the bug post, HTH.

Hi Gustavo,

To achieve this, you’ll need to update your workflow logic as follows:

  1. Make an HTTP request to retrieve the members of the gov group – this should return a list of identities.
  2. Loop through the list of members.
  3. For each identity, retrieve their attributes to identify their manager.
  4. Retrieve the manager’s attributes.
  5. 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"
		}
	}
}```

Hi Yan!

I used a similar logic into my workflow and it worked

Thank you for the effort to make the example

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.