betodealmeida opened a new pull request, #36742: URL: https://github.com/apache/superset/pull/36742
### SUMMARY The new user listing API (`/api/v1/security/users/`) introduced in #32882 did not respect the `EXCLUDE_USERS_FROM_LISTS` configuration, causing a regression where excluded users appeared in the API response. This PR adds an `ExcludeUsersFilter` to `SupersetUserApi` that uses the same exclusion logic as `BaseFilterRelatedUsers` for consistency. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF N/A - API behavior change ### TESTING INSTRUCTIONS 1. Set `EXCLUDE_USERS_FROM_LISTS = ["gamma"]` in your config 2. Call `GET /api/v1/security/users/` 3. Verify that the "gamma" user is not included in the response ### ADDITIONAL INFORMATION - [x] Has associated issue: #32882 (regression from this PR) - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration - [ ] Introduces new feature or API - [ ] Removes existing feature or API -- 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]
