Add Office 365 Azure AD Account To Local Administrators Group
If you join your devices to Azure AD in Office 365 you will at some point try to add a user to a local group on the PC and maybe need to temporarily add a user to the local administrators group.
Well as you have found out the Office 365 Azure AD user is not listed as a local user in computer management.

The local administrators group will likely only contain the local administrator account and possibly the Azure AD account used to join the device to the Azure AD in the first place.
So how do you add an Office 365 user to the local administrators group?

Fire up Command prompt by right clicking it and selecting ‘Run as Administrator’.
Enter the following command:
Net localgroup Administrators /add "AzureAD\<users office 365 email address>"
You should see output similar to the image below.

Now if you look in the local administrators group you will see the users Office 365 Azure AD account!

14th October 2019
You added a space in the command — “local group” instead of “localgroup”, which results in a bad syntax error. Once i corrected that, the command worked.
14th October 2019
Had the same problem. Didn’t see bcdnr’s note until after I corrected it myself.
15th October 2019
Sorry guys. I’ve updated the post now!
14th January 2022
net localgroup administrators /add “AzureAD\hassan.siddiqui@abc.com” but access denied message. Can we add user into local admin from azure portal because isn’t with us.