Azure / Azure/azure-sdk-for-python

Permission ingestion options not valid for OneLake data source

Open
#42,940 2 comments 0 reactions 1 assignee Claimed by @xiangyan99 View on GitHub
Client customer-reported needs-team-attention question Search Service Attention
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

- **Package Name**: azure-search-documents
- **Package Version**: 11.7.0b1
- **Operating System**: Windows
- **Python Version**: 3.12

**Describe the bug**
We are following the [documentation](https://learn.microsoft.com/en-us/azure/search/search-query-access-control-rbac-enforcement) to use query-time RBAC enforcement in AI Search, using the preview SDK version. The source documents are stored in Fabric OneLake. When attempting to set indexer permission options on the data source as below:
```
data_source = SearchIndexerDataSourceConnection(
name=settings.datasource_name,
type="onelake",
connection_string=settings.datasource_connection_string,
container=SearchIndexerDataContainer(
name=settings.datasource_container_name, query=settings.datasource_query
),
indexer_permission_options=["groupIds"],
)
```

we are seeing the following error:
```
2025-09-10 09:54:49,551 ERROR [lib.aisearch.datasource] Failed to create or update data source '': () groupIds Permission ingestion options are not valid for datasource onelake.
```

Is this expected? If so, are there plans for OneLake to be supported for setting permission options on the data source?

**To Reproduce**
Steps to reproduce the behavior:
1. Set the `indexer_permission_options` on the data source.
2. The datasource fails to be created in AI Search

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.