In Azure portal on a managed device detail page it shows two types of users, The "Primary" user and the "Enrolled by" user. I'm trying to figure out how I can retrieve the latter using the Microsoft Graph API. What I've tried so far is pretty much every managed device related API. The ones I mainly use are the https://docs.microsoft.com/en-us/graph/api/intune-devices-manageddevice-list?view=graph-rest-1.0 and https://docs.microsoft.com/en-us/graph/api/intune-devices-manageddevice-get?view=graph-rest-1 I've also looked at pretty much all the beta variants of the related API documentation if and when they are available. My problem is that it seems like there is no way to retrieve this information.
0
votes
Please check this property deviceEnrollmentType and see if it can help.
– Shiva Keshav Varma
@Shiva-MSFTIdentity I think you are misunderstanding the question. Your answer has nothing to do with the identity of the user whom enrolled the device.
– maarten
You can create a feature request in the Microsoft Graph Feedback Forum so that this could be implemented in the future.
– Shiva Keshav Varma
1 Answers
0
votes
You have to query the related object of the managed device
Also you will get object id of the primary owner. https://www.youtube.com/watch?v=CTEs_lHtZJ4&list=PL8wOlV8Hv3o9TUJxUR9T78TevVjtsRAup&ab_channel=ConceptsWork https://www.youtube.com/watch?v=yw5Cz5rO6_Y&list=PL8wOlV8Hv3o_KgAx8JmnqM4G97U0vPR9l&ab_channel=ConceptsWork