Question 45 — AB-650 Case Study Set
Paideffort's department-maintenance process receives department-updates.csv containing each employee's user principal name and new department value. Which implementation best fits the existing identity-management architecture? (Select one answer)
Import the CSV and invoke
Update-MgUserfor each employee while connected with the user-management write scope.Delete and recreate every affected user with
Remove-MgUserandNew-MgUserso the new department becomes part of the original account record.Use
Get-MgUserto retrieve each employee because reading the current account automatically applies changes contained in the CSV.Use
New-MgGroupMemberByRefbecause changing a department is implemented as a directory membership operation.
Correct answers
Import the CSV and invoke
Update-MgUserfor each employee while connected with the user-management write scope.
Explanations
Correct Answer:
Import the CSV and invoke Update-MgUser for each employee while connected with the user-management write scope.
Explanation:
Paideffort already uses a CSV-plus-loop model for repeatable identity operations. Department changes modify properties on existing user objects, so Update-MgUser under the same user-management write scope used for the provisioning lifecycle fits that architecture.
Wrong Answers:
Delete and recreate every affected user with Remove-MgUser and New-MgUser so the new department becomes part of the original account record.
Deleting an existing account is unnecessary when Paideffort only needs to update one property and would create avoidable identity-lifecycle disruption.
Use Get-MgUser to retrieve each employee because reading the current account automatically applies changes contained in the CSV.
Get-MgUser retrieves user information. It does not update the Department property from Paideffort's CSV.
Use New-MgGroupMemberByRef because changing a department is implemented as a directory membership operation.
Department is a user property in this workflow. Group-membership cmdlets are used separately for Paideffort's Overseas-Office group.