
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?
A
Create a PowerShell script that uses the AzureAD module to create users and assign them to groups. Use the 'Add-AzureADGroupMember' cmdlet to add users to groups.
B
Use the Microsoft Graph API to create users and assign them to groups. Use the 'POST /groups/{id}/members/$ref' endpoint to add users to groups.
C
Manually create each user and assign them to groups through the Azure portal. Assign licenses using the 'Licenses' tab in the user's profile.
D
Use the Azure AD Connect tool to synchronize the new company's on-premises Active Directory with your Azure AD. Then, assign licenses using the 'Licenses' tab in the user's profile.