
MiguelM.28799 (Customer) asked a question.
Hello community, I was wondering if there is a way to pull the name of the group rule that manages the group of a user. Currently we set a search to look for rules that the group is found in but we wanted to see if there is a better way of doing it since most of the time the user might not be managed by any of those rules so it delays the workflow quite a bit.

Hi Miguel,
Unfortunately this particular field is not exposed via the API when reading a users groups, which means that Workflows cannot pull this directly. This dialog would need to be added to the /api/v1/users/{userID}/groups Endpoint for Workflows to be able to pull those details directly.
As it stands, the Workflow design would need to use the "Read group rules" and "Get users groups" and apply some logic to connect those two results together to create an approximation of this "Managed by" dialog.
I'd suggest submitting an Idea for the users API to expose this "Managed by" dialog to the /api/v1/users/{userID}/groups API endpoint, thats going to be the best bet short of building the logic using the combination of get users groups and read group rules cards. You can find details about the Ideas program here: https://support.okta.com/help/s/article/Okta-Ideas-Overview-FAQ?language=en_US