Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: You can use either and or or in a single filter but not both at the same time.

...

Supported Operators

Operator

Description

Example

eq

Field is equal to the specified value

complianceState eq 'Compliant'

ne

Field is not equal to the specified value

jailBroken ne 'Yes'

gt

Field is greater than the specified value

lastSyncDateTime gt '2024-01-01T00:00:00Z'

lt

Field is less than the specified value

freeStorageSpaceInBytes lt 500000

ge

Field is greater than or equal to the specified value

totalStorageSpaceInBytes ge 64000000

le

Field is less than or equal to the specified value

managementCertificateExpirationDate le '2023-12-31T23:59:59Z'

contains

The field contains the specified value (for strings)

userDisplayName contains 'Smith'

startsWith

The field starts with the specified value (for strings)

deviceName startsWith 'Android'

endsWith

The field ends with the specified value (for strings)

emailAddress endsWith '@example.com'

isEmpty

The field is empty (null, undefined, or empty string)

emailAddress isEmpty

isNotEmpty

The field is not empty

emailAddress isNotEmpty

and

Combines multiple conditions where all must be true

complianceState eq 'Compliant' and deviceCount gt 10

or

Combines multiple conditions where at least one must be true

platform eq 'iOS' or publisher ne 'Microsoft'

...

Examples

Find Devices Managed by a Specific User:

...