Forum Discussion
Arun_Joseph
Jul 15, 2021Copper Contributor
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...
- Jul 22, 2021Upon 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.
Justin Graham
Jul 22, 2021Brass Contributor
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.
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.