Skip to main content
  1. Public practice questions
  2. AB-650 Practice Exams | Microsoft 365 and AI Services Administrator Associate
  3. AB-650 Case Study Set

Question 49 — AB-650 Case Study Set

Paideffort's onboarding script contains the following command:

New-MgUser -DisplayName $hire.DisplayName `
    -UserPrincipalName $hire.UserPrincipalName `
    -AccountEnabled `
    -PasswordProfile @{
        Password = $hire.TempPassword
        ForceChangePasswordNextSignIn = $true
    }

The imported CSV also contains a MailNickname column. What is missing from the user-creation command? (Select one answer)

  1. Add -MailNickname $hire.MailNickname to provide the required mail nickname for each new user.

  2. Add -Department $hire.Department because a department value is mandatory before any Microsoft Entra user can be created.

  3. Add -OdataId $hire.UserPrincipalName because every new Microsoft Entra user must reference an existing directory object.

  4. Add -ExternalEmailAddress $hire.UserPrincipalName because every new Microsoft Entra user must have an external routing address.

Correct answers

  1. Add -MailNickname $hire.MailNickname to provide the required mail nickname for each new user.

Explanations

Correct Answer:

Add -MailNickname $hire.MailNickname to provide the required mail nickname for each new user.

Explanation:

Paideffort's CSV already supplies a MailNickname value, but the current New-MgUser call does not pass it. The provisioning command includes the display name, UPN, enabled state, and password profile while omitting the mail nickname required by the user-creation operation.

Wrong Answers:

Add -Department $hire.Department because a department value is mandatory before any Microsoft Entra user can be created.

Paideffort can populate Department as part of provisioning, but it is not the missing creation parameter responsible for the incomplete command shown.

Add -OdataId $hire.UserPrincipalName because every new Microsoft Entra user must reference an existing directory object.

OData directory-object references are relevant to Paideffort's group-membership operation. A newly created user does not reference a pre-existing user object through this parameter.

Add -ExternalEmailAddress $hire.UserPrincipalName because every new Microsoft Entra user must have an external routing address.

External email addresses apply to the vendor mail-contact workflow. Paideffort's employees are being provisioned as Microsoft Entra user accounts.