HIDE Office 365 Groups from GAL

We have seen lot of users are creating Microsoft Teams, Planner etc and these in-turn create Office 365 groups. Some are even test and it creates lot of unwanted data in the GAL which many users and our organization management is not encouraging. So we have created this script that runs regularly and hide Newly…