
Explanation:
foreach ($person in $(Get-MgGroupMember -GroupId " 2c5bf9b-75eb-4e1e-beca-3b43737f74f3 " ))
{
Update-MgUser -UserId $person.ObjectId -EmployeeType " Part-time "
}
Correct selections:
* Get-MgGroupMember
* Update-MgUser
* -UserId
The correct first cmdlet is Get-MgGroupMember because the task requires retrieving all members of an existing Microsoft Entra group by using the group's GroupId . Microsoft documents Get-MgGroupMember - GroupId as the Microsoft Graph PowerShell cmdlet used to get members of a specified group.
The correct update cmdlet is Update-MgUser , not Set-AzureADUser or Set-MsolUser, because the question explicitly requires Microsoft Graph PowerShell . Microsoft documents Update-MgUser as the cmdlet that updates properties of a user object, and its syntax includes -UserId as the identity parameter and - EmployeeType as an updateable user property.
The third dropdown must be -UserId because Update-MgUser identifies the target user through the -UserId parameter. The value passed is the user object identifier returned from the group membership query. -ObjectId belongs to older Microsoft Entra ID PowerShell patterns, and -DisplayName cannot uniquely identify or update the user object. References/topics: Microsoft Graph PowerShell, Microsoft Entra group membership, Get-MgGroupMember, Update-MgUser, user attribute management.