dosubot[bot] commented on issue #40293: URL: https://github.com/apache/superset/issues/40293#issuecomment-4499777701
<!-- Answer --> This is a duplicate of #39967 — the root cause is in **Flask-AppBuilder** (Superset's upstream dependency), not Superset itself. The `PermissionViewMenuApi` class in FAB doesn't declare `search_columns`, so filtering by `id`, `permission.name`, or `view_menu.name` returns `400 "Filter column: id not allowed to filter"` [[1]](https://github.com/apache/superset/issues/39967). **Workaround:** Override `PermissionViewMenuApi` in your Superset deployment: ```python from flask_appbuilder.models.sqla.filters import FilterContains from flask_appbuilder.security.sqla.apis import PermissionViewMenuApi class SupersetPermissionViewMenuApi(PermissionViewMenuApi): search_columns = ["id", "permission.name", "view_menu.name"] def _init_properties(self) -> None: super()._init_properties() for col in ["permission.name", "view_menu.name"]: self._filters._search_filters[col] = [ FilterContains(col, self.datamodel) ] ``` Then wire it via `SupersetSecurityManager.permission_view_menu_api = SupersetPermissionViewMenuApi` [[1]](https://github.com/apache/superset/issues/39967). Until this is fixed upstream in FAB or Superset adds an official override, this workaround should unblock you. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).* --- Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset). [](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=5f91e669-c5c1-4b1f-b1a0-1f825ca7c16d) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
