Adding get groups hierarchy process.