Skip to content

Allow admin role wherever user role is accepted#5463

Merged
premun merged 1 commit intodotnet:mainfrom
premun:prvysoky/accept-roles
Nov 10, 2025
Merged

Allow admin role wherever user role is accepted#5463
premun merged 1 commit intodotnet:mainfrom
premun:prvysoky/accept-roles

Conversation

@premun
Copy link
Copy Markdown
Member

@premun premun commented Nov 10, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 10, 2025 13:12
@premun premun enabled auto-merge (squash) November 10, 2025 13:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modifies the authorization policies to grant admin users access to all endpoints that regular users can access, establishing a hierarchical authorization model.

  • Added adminRole to both WebAuthorizationPolicyName and ApiAuthorizationPolicyName policies
  • Admins can now access regular user endpoints in addition to admin-only endpoints

@premun premun merged commit d4b6741 into dotnet:main Nov 10, 2025
13 of 15 checks passed
@premun premun deleted the prvysoky/accept-roles branch November 11, 2025 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants