This is an automated email from the ASF dual-hosted git repository.
jscheffl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 84110f44b73 Hide Groups field from User edit form in FAB Auth Manager
(#60019)
84110f44b73 is described below
commit 84110f44b73ac9ee8383d9066001e0ee17c9b5e8
Author: M Junaid Shaukat <[email protected]>
AuthorDate: Thu Jan 1 19:16:42 2026 +0500
Hide Groups field from User edit form in FAB Auth Manager (#60019)
Fixes #60017
The Groups selection field was displayed on the user edit form,
but Airflow doesn't use Groups functionality. This hides the
Groups field by explicitly defining edit_columns.
---
.../fab/src/airflow/providers/fab/auth_manager/views/user.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/providers/fab/src/airflow/providers/fab/auth_manager/views/user.py
b/providers/fab/src/airflow/providers/fab/auth_manager/views/user.py
index 20564f18d23..550bec7445f 100644
--- a/providers/fab/src/airflow/providers/fab/auth_manager/views/user.py
+++ b/providers/fab/src/airflow/providers/fab/auth_manager/views/user.py
@@ -187,6 +187,15 @@ class CustomUserDBModelView(MultiResourceUserMixin,
UserDBModelView):
"conf_password",
]
+ edit_columns = [
+ "first_name",
+ "last_name",
+ "username",
+ "active",
+ "email",
+ "roles",
+ ]
+
validators_columns = {"roles": [DataRequired()]}
base_permissions = [