You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
userRoles handler should resolve effective roles via GetAuthorizationUserRoles #26002
The /users/{user}/roles handler in coderd/users.go (around the userRoles function, originally at line 1729) returns roles directly from OrganizationMembers.Roles plus user.RBACRoles. It does not include implicit roles: the floor organization-member (or organization-service-account for service accounts), nor the org's organizations.default_org_member_roles.
A TODO: Replace this with "GetAuthorizationUserRoles" already sits on the call site. Switching to GetAuthorizationUserRoles would surface the same effective role set the authz layer sees, including:
The implicit organization-member / organization-service-account role per org
This becomes more important as Gateway Accounts (#25936) ships. Deployments using the minimum-implicit-member experiment can configure non-default default_org_member_roles per org, and admin UIs displaying a user's roles should reflect the implicit set so admins can reason about the effective grants.
The similar display path in coderd/members.go (organization-members listing converter) has the same limitation and could be addressed in the same change.
Activity