First dropdown: Get-MgGroupMember; Second dropdown: Update-MgUser; Third dropdown: -UserId
Microsoft Graph PowerShell provides cmdlets for managing Microsoft Entra groups and modifying user account attributes. This task requires retrieving members of an existing group and updating the EmployeeType property for each user.
First selection: Get-MgGroupMember. This cmdlet retrieves direct members of the specified Microsoft Entra group. The -GroupId parameter identifies the Contractors group using its unique identifier.
Second selection: Update-MgUser. This cmdlet updates Microsoft Entra user properties through Microsoft Graph. It supports the -EmployeeType parameter, which can be used to assign the value Part-time.
Third selection: -UserId. This parameter identifies the specific user object to modify. The foreach statement processes each returned member and applies the corresponding update.
Technical accuracy note: The video uses $person.ObjectId. Current Microsoft Graph PowerShell documentation normally exposes the member identifier as $person.Id. Additionally, the -All switch should be specified when retrieval of every group member is required across result pages.
A production-oriented implementation would therefore use the following structure, assuming the group contains user objects:
$members = Get-MgGroupMember -GroupId " < GroupId > " -All
foreach ($person in $members) { Update-MgUser -UserId $person.Id -EmployeeType " Part-time " }
The three dropdown answers remain correct; this implementation note distinguishes the original examination script from current Microsoft Graph behavior.
Microsoft References:
https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.groups/get-mggroupmember
https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/update-mguser