For any organization which has an entirely separate "Data Security" team who are responsible for bulk user management, we can use dynamic groups replacing those scripts with PowerShell for moving the users to certain groups. In azure we can now use dynamic groups to maintain the group members based on the attributes of those users.

The Azure portal provides a graphical-based rule builder for dynamic membership, which supports adding up to five expressions, and the ability to enter your query string directly into the text editor.

Why would you use Dynamic Groups?

Dynamic Group: Cheat Sheet

Azure AD - Dynamic Groups

References