After a device is deployed likely using autopilot, sometime you have a need to add an AzureAD user to the local administrators group on a PC. Below i will show you how. I found this information from Microsoft documentation.
Starting with the Windows 10 1709 release, you can perform this task from Settings -> Accounts -> Other users. Select Add a work or school user, enter the user’s UPN under User account and select Administrator under Account type
Additionally, you can also add users using the command prompt:
- If your tenant users are synchronized from on-premises Active Directory, use
net localgroup administrators /add "Contoso\username".
- If your tenant users are created in Azure AD, use
net localgroup administrators /add "AzureAD\UserUpn"