
Answer-first summary for fast verification
Answer: 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.
Option B is the correct answer. Using the Microsoft Graph API allows for automation and scalability when creating users and assigning them to groups. The 'POST /groups/{id}/members/$ref' endpoint is the appropriate endpoint to add users to groups. PowerShell scripts can also be used, but the AzureAD module may not provide the same level of automation and scalability as the Graph API. Manually creating users and assigning licenses is not efficient for large-scale integrations. While Azure AD Connect can be used for directory synchronization, it does not automate the process of assigning licenses.
Author: LeetQuiz Editorial Team
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.
No comments yet.