Skip to content

web/admin: add user app entitelments screen - #24734

Merged
BeryJu merged 7 commits into
goauthentik:mainfrom
atereshkin:user-app-entitlements
Nov 3, 2026
Merged

BeryJu merged 7 commits into
goauthentik:mainfrom
atereshkin:user-app-entitlements

Conversation

@atereshkin

Copy link
Copy Markdown
Contributor

Details

What does this PR change?

This adds a "user application entitlements" screen in the admin UI where a single user's entitlements can be observed across all applications. The "Applications" tab in the user view is now split into two "subtabs" - "Applications" and "Application entitlements", the former preserving the old Applications view and the latter showing entitlements.

The entitlements API endpoint now accepts for_user query parameter that allows filtering by individual user.

Why is this change needed?

To simplify reviewing a user's entitlements, see #23194

How was this tested?

Manual test + a few new tests in the suite for the new API endpoint.

Linked issues

closes #23194

Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)

@atereshkin
atereshkin requested review from a team as code owners August 4, 2026 10:16
@netlify

netlify Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit f09870f
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6aea070b95842a2e8f166865
😎 Deploy Preview https://deploy-preview-24734--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit f09870f
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6aea070b804e3b7b48611324
😎 Deploy Preview https://deploy-preview-24734--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 318c3fc
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6aea0bb7776f6c65a5bdd2a9
😎 Deploy Preview https://deploy-preview-24734--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.84%. Comparing base (82ba75d) to head (318c3fc).
⚠️ Report is 38 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #24734    +/-   ##
========================================
  Coverage   92.84%   92.84%            
========================================
  Files        1211     1212     +1     
  Lines       83335    83569   +234     
  Branches     4686     4686            
========================================
+ Hits        77369    77587   +218     
- Misses       5890     5906    +16     
  Partials       76       76            
Flag Coverage Δ
conformance 30.68% <12.00%> (-0.06%) ⬇️
e2e 35.48% <13.33%> (-0.05%) ⬇️
integration 27.84% <12.00%> (-0.37%) ⬇️
rust 49.31% <ø> (ø)
unit 94.43% <100.00%> (+0.04%) ⬆️
unit-migrate 94.43% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@BeryJu BeryJu 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.

Kinda torn between having a tab with all entitlements and making the user-app table expandable and showing the entitlements scoped in there

Comment thread authentik/core/models.py Resolved
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Aug 24, 2026
@atereshkin

Copy link
Copy Markdown
Contributor Author

Kinda torn between having a tab with all entitlements and making the user-app table expandable and showing the entitlements scoped in there

The latter option is what I considered first in fact, but it seems that would only go half way towards addressing the original need - seeing all the entitlements at once. It would still require clicking (and lots of it if you have more than a few apps) to do so.
I don't know how much sense entitlements make outside of the context of a specific app, but it seems to be the premise of this entire feature that they do.

@atereshkin
atereshkin force-pushed the user-app-entitlements branch from 612959f to fe0f0fb Compare August 25, 2026 08:26
Signed-off-by: Jens Langhammer <[email protected]>

# Conflicts:
#	authentik/core/api/application_entitlements.py
#	authentik/core/models.py
#	packages/client-ts/src/apis/CoreApi.ts
#	packages/client-ts/src/models/ApplicationEntitlement.ts
#	schema.yml
#	web/src/admin/users/UserApplicationsTab.ts
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu
BeryJu merged commit 363cea5 into goauthentik:main Nov 3, 2026
163 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Nov 3, 2026
kensternberg-authentik added a commit that referenced this pull request Nov 3, 2026
* main: (63 commits)
  web: bump shell-quote from 1.9.0 to 1.12.0 (#27531)
  web/admin: allow adding source to identification stage after creation (#27485)
  web: bump @xmldom/xmldom from 0.8.13 to 0.8.15 in /web (#27520)
  web: bump source-map-js from 1.2.1 to 1.2.2 (#27523)
  web: bump follow-redirects from 1.16.0 to 1.16.2 (#27524)
  web: bump joi from 17.13.4 to 17.13.9 (#27525)
  web: bump smol-toml from 1.8.0 to 1.9.1 (#27526)
  web: bump markdown-it from 14.3.0 to 14.3.3 (#27528)
  web: bump fast-uri from 3.1.8 to 3.1.9 (#27529)
  web: bump image-size from 2.0.2 to 2.0.4 (#27530)
  web: bump proxy-addr from 2.0.7 to 2.0.8 (#27532)
  web: bump compression from 1.8.1 to 1.8.2 (#27533)
  web: bump fast-copy from 4.0.3 to 4.3.1 (#27534)
  web/admin: add user app entitelments screen (#24734)
  providers/saml: reject malformed requests with a 400 instead of a server error (#27153)
  common/saml: Improve certificate filtering (#27445)
  web/admin: add next steps in app wizard (#27470)
  enterprise/providers/ssf: fix credential change event sent when using authenticator during sign in (#27519)
  rbac: custom permissions (#27051)
  ci: run the distroless image tests with FIPS enabled (#27303)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Easier method to find application entitlements that a user has

4 participants