diff --git a/concepts/aad-advanced-queries.md b/concepts/aad-advanced-queries.md index d63e75be216..7b19b7686c5 100644 --- a/concepts/aad-advanced-queries.md +++ b/concepts/aad-advanced-queries.md @@ -14,11 +14,11 @@ ms.date: 08/23/2024 # Advanced query capabilities on Microsoft Entra ID objects -Microsoft Graph supports advanced query capabilities on various Microsoft Entra ID objects, also called *directory objects*, to help you efficiently access data. For example, the addition of **not** (`not`), **not equals** (`ne`), and **ends with** (`endsWith`) operators on the `$filter` query parameter. +Microsoft Graph supports advanced query capabilities on various Microsoft Entra ID objects, also called *directory objects*, to help you efficiently access data. Examples include the addition of **not** (`not`), **not equals** (`ne`), and **ends with** (`endsWith`) operators on the `$filter` query parameter. -The Microsoft Graph query engine uses an index store to fulfill query requests. To add support for additional query capabilities on some properties, those properties might be indexed in a separate store. This separate indexing improves query performance. However, these advanced query capabilities aren't available by default but, the requestor must set the **ConsistencyLevel** header to `eventual` *and*, except for `$search`, use the `$count` query parameter. The **ConsistencyLevel** header and `$count` are referred to as *advanced query parameters*. +The Microsoft Graph query engine uses an index store to fulfill query requests. To add support for additional query capabilities on some properties, those properties might be indexed in a separate store. This separate indexing improves query performance. However, these advanced query capabilities aren't available by default, the requestor must set the **ConsistencyLevel** header to `eventual` *and*, except for `$search`, use the `$count` query parameter. The **ConsistencyLevel** header and `$count` are referred to as *advanced query parameters*. -For example, to retrieve only inactive user accounts, you can run either of these queries that use the `$filter` query parameter. +For example, to retrieve only inactive user accounts, you can run either of these queries that use the `$filter` query parameter: **Option 1:** Use the `$filter` query parameter with the `eq` operator. This request works by default and doesn't require the advanced query parameters. diff --git a/includes/snippets/powershell/v1/aad-advanced-queries-get-users-not-acountenabled-powershell-snippets.md b/includes/snippets/powershell/v1/aad-advanced-queries-get-users-not-acountenabled-powershell-snippets.md index de601b80236..02a011b0197 100644 --- a/includes/snippets/powershell/v1/aad-advanced-queries-get-users-not-acountenabled-powershell-snippets.md +++ b/includes/snippets/powershell/v1/aad-advanced-queries-get-users-not-acountenabled-powershell-snippets.md @@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY" Import-Module Microsoft.Graph.Users -Get-MgUser -Filter "accountEnabled ne true" -CountVariable CountVar -ConsistencyLevel eventual +Get-MgUser -Filter "accountEnabled ne true" -CountVariable CountVar -ConsistencyLevel eventual -``` \ No newline at end of file +```