Get Manager SubOrdinates List in IdentityAttribute Rule

I’m trying to get sub-ordinates of manager in the identity attribute rule and hence using
List managerReportsList = idn.findIdentitiesBySearchableIdentityAttribute(“manager.name”, “Equals”, identityName, “uid”);.
On executing, we get the error “Error running rule transform:sailpoint.tools.GeneralException: The application script threw an exception: java.lang.IllegalStateException: Unable to find definition of attribute named 'manager.name”
Could someone provide appropriate method to get list of sub-ordinates

Have you tried to use “manager” instead of “manager.name” assuming you don’t have an attribute named “manager.name”?

I tried that way too and it threw error “Unable to search identities by identity attributes”, although the manager attribute was searchable…Nevertheless, we created another attribute reference the manager value to it, marked that attributes as searchable and used it in the rule