Skip to content

Show the teams of the signed-in user in multi-team mode - #71503

Merged
vincbeck merged 1 commit into
apache:mainfrom
aws-mwaa:vincbeck/user_teams
Aug 14, 2026
Merged

vincbeck merged 1 commit into
apache:mainfrom
aws-mwaa:vincbeck/user_teams

Conversation

@vincbeck

@vincbeck vincbeck commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

When an Airflow environment runs in multi-team mode, users had no way to see which teams they belong to.

GET /ui/auth/me now returns a teams field, and the UI lists those teams in the user menu below the user name. The field is null, and the UI section hidden, when the environment is not in multi-team mode, so nothing changes for single-team deployments and auth managers that don't support teams are never queried.

Screenshot

Screenshot 2026-08-12 at 11 01 06 AM

Long name

Screenshot 2026-08-12 at 11 39 45 AM

More than 5 teams

Screenshot 2026-08-12 at 11 51 46 AM
Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@pierrejeambrun pierrejeambrun left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looking good overall.

Just a few questions / suggestions.

Also it means that it's impossible to see all of your teams ? (If you have more than 5, maybe a clickable 'page' to get details could be a nice follow up.

@vincbeck

Copy link
Copy Markdown
Contributor Author

Nice, looking good overall.

Just a few questions / suggestions.

Also it means that it's impossible to see all of your teams ? (If you have more than 5, maybe a clickable 'page' to get details could be a nice follow up.

Good point. I updated the code to display the additional teams in a tooltip. Let me know what you think

When an Airflow environment runs in multi-team mode, users had no way to see which
teams they belong to.

`GET /ui/auth/me` now returns a `teams` field, and the UI lists those teams in the
user menu below the user name. The field is `null`, and the UI section hidden,
when the environment is not in multi-team mode, so nothing changes for
single-team deployments and auth managers that don't support teams are never
queried.
@vincbeck
vincbeck merged commit 0164c99 into apache:main Aug 14, 2026
99 checks passed
@vincbeck
vincbeck deleted the vincbeck/user_teams branch August 14, 2026 14:43
imrichardwu pushed a commit to imrichardwu/airflow that referenced this pull request Sep 11, 2026
When an Airflow environment runs in multi-team mode, users had no way to see which
teams they belong to.

`GET /ui/auth/me` now returns a `teams` field, and the UI lists those teams in the
user menu below the user name. The field is `null`, and the UI section hidden,
when the environment is not in multi-team mode, so nothing changes for
single-team deployments and auth managers that don't support teams are never
queried.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants