Forum Discussion

Arun_Joseph's avatar
Arun_Joseph
Copper Contributor
Jul 15, 2021
Solved

How to get the email of intune device assigned user through Graph API?

I'm using the following API to fetch the managed device properties and it has a field named emailAddress but it is empty   API : https://docs.microsoft.com/en-us/graph/api/intune-devices-manageddev...
  • Justin Graham's avatar
    Jul 22, 2021
    Upon getting this record above, simply call the get-azureaduser -objectid arun.joseph@xxxxxx.onmicrosoft.com | select mail
    OR
    Get-azureaduser -objectid $somestring.userPrincipalName | select mail

    Microsoft seperates Intune / Azure / MS Online in the 3 seperate containers and you sometimes need to poke into one or all 3 to build a dataset.

Resources