Link user accounts (hierarchy) with Google Identity Platform

Solution 1:

I was able to do something by using custom claims and the admin sdk

https://cloud.google.com/identity-platform/docs/how-to-configure-custom-claims

I just added the parent account and role as custom fields