Hi @carlos carreno
From my testing, it seems that filtering the mdmAppId
attribute is not supported. As a solution, try getting the device set and filtering it locally.
Code example:
var devices = await graphClient.Devices.GetAsync();
foreach (var device in devices.Value) {
if (device.OperatingSystem.StartsWith("Win") && device.ProfileType is "RegisteredDevice" && device.MdmAppId != null) {
Console.WriteLine(device.Id);
}
}
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.