Open a new PowerShell and connect with the Connect-MsolService command to the Azure AD, and log in with [email protected] credentials.
Modify a user account assigned to the HR administrative unit:
Set-MsolUser -UserPrincipalName [email protected] -Department HR
Verify your modification:
Get-MsolUser -UserPrincipalName [email protected] | select Department
Next, we will protect an administrative account with the Privileged Identity Management (PIM) features of Azure AD Premium P2. We recommend using Azure MFA to protect your administrative accounts, if you don't want to invest in Azure AD Premium P2.