Skip to content

Managed Devices list request: filter by azureADDeviceId work incorrect when passing more then 1 azureADDeviceId #1156

Description

Describe the bug

I am trying to filter managedDevices by set of known azureADDeviceIds.

I send request https://graph.microsoft.com/beta/deviceManagement/managedDevices?$filter=azureADDeviceId eq 'id1' or azureADDeviceId eq 'id2' or azureADDeviceId eq 'id3'
The response contain only 1 device, with the first 'id1' azureADDeviceId, although other azureADDeviceIds also have related managed devices.

Furthermore, if I change filter order: azureADDeviceId eq 'id2' or azureADDeviceId eq 'id1' or azureADDeviceId eq 'id3', I receive managedDevice with the first 'id2' azureADDeviceId.

Image Image

Expected behavior

Several managed devices should be returned from the response, not only one device firth the first azureADDeviceId. Because all azureADDeviceIds are valid.

How to reproduce

Select several valid managedDevice.azureADDeviceId and try to filter

SDK Version

6.2.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions