Hierarchy is defined as: parent_tenant['id'] + hierarchy
THe parent id should be separated onde from another by a
dot, it should be:  parent_tenant['id'] + '.' + hierarchy