Ultimate access to all questions.
Your organization has recently acquired another company and needs to integrate their user accounts into your existing Azure Active Directory (AAD). You are tasked with creating a script that automates the process of creating users and assigning them to appropriate groups based on their department. The script should also handle the assignment of licenses from Microsoft Entra ID. What steps should you take to achieve this?