There is grdapi available for flattern hierarchical group.
Please add that restapi too. This is needed in order to achieve the one Guardium automation.
Using grdapi there is challenge as all code we have written using guardium restapi.
Let me know if need additional details.
Do not place IBM confidential, company confidential, or personal information into any field.