Forum Discussion
Extracting UPN or DisplayName by importing csv with Object-Id
- dan_birrellMay 18, 2020Copper Contributor
PeterJ_Inobits Hi Sorry Peter
https://github.com/microsoftgraph/powershell-intune-samples/blob/master/ManagedDevices/ManagedDevices_iOS_PasscodeReset_Export.ps1
This is the script Microsoft produced. The output just doesn't allow us to move forward with this as we need to know which device is assigned to which user.
If there is some way of importing object id's or device names to then output upn's then that would suit.
I raised a ticket with Microsoft and they came back and said they don't help edit script. Even their scripts written to fix their own issues 🙂
- PeterJ_InobitsMay 18, 2020Iron Contributor
Hi Dan
That script returns the device id correct? You can the query the device owner based on the device id. There are at least two attributes, registereddeviceowner and registereddeviceuser IIRC.
Another approach is to use the Azure Sign Logs and extract the deviceID and UserID and correlate them against the output provided the MS script