-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
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)
- We have an index with permission filter fields enabled
- 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.