Skip to content

feat: endpoint to list users by institutional role #162

@y4nder

Description

@y4nder

Summary

No endpoint currently exists to retrieve users filtered by institutional role (e.g., list all chairpersons, list all deans, or list users managed under a specific role holder).

The UserInstitutionalRole entity stores these mappings, but the admin module only exposes POST and DELETE — there is no read endpoint.

Proposed

Add a GET /admin/institutional-roles (or similar) endpoint that allows:

  • Super admins to list all institutional role assignments
  • Deans to list chairpersons under their scope
  • Optional filtering by role type (DEAN, CHAIRPERSON)

Related

  • UserInstitutionalRole entity
  • AdminService (existing assign/remove methods)
  • ScopeResolverService (for role-scoped filtering)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestwontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions