Skip to content

x-ms-query-source-authorization - Behavior difference #44178

@abhilash-uniper

Description

@abhilash-uniper

Hi Team,

We are seeing a difference in functionality with AI search when the index has permission filters enabled.

Earlier (I think even before 3-4 days)

  1. We have an index with permission filter fields enabled
  2. We have loaded in data which are open to all and also restricted to users and groups

When querying this is where things have changed now (we are not sure why)

When we query the index using AI search key authentication and without x-ms-query-source-authorization header, AI search used to return all data, without applying any permission filter. This was the case on the portal as well when we looked at records we can see everything.

However, starting from today we are noticing change in this behavior. Now what is happening is if we query using the access key auth only (without x-ms-query-source-authorization header) only records which are marked as available to all is returned. Any records scoped to users are not returned.

This is problematic for us, as we have background processes which adds and removed entries from the AI search. Now querying for existing reocrds in AI search is not working at all as it does not return any results.

Using REST API -> THE CALL

indexes/{INDEX}/docs?search=*&$count=true&api-version=2025-05-01-preview
with api-key header (admin key) is not returning any data when the docs have permission filter applied.

Our understanding was that the permission filters only applies if the request has x-ms-query-source-authorization header.

Could you kindly check it and let me know if anything is changed in this area. This is very important for us, as we may not able to do lot of background maintenance activities if this is the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SearchService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions