Related Discovery: https://openedx.atlassian.net/wiki/spaces/OEPM/pages/6060310529/Spike+-+M2+-+Endpoints+for+new+Admin+Console+designs
Implement the user assignments endpoint to be used in the expanded user view or the user Audit view.
Spec:
GET /api/authz/v1/users/(user_id)/assignments/
- Query params:
- page_size: For pagination
- page: For pagination
- orgs: Comma separated list of orgs to filter by
- roles: Comma separated list of roles to filter by
- sort_by: role, org or scope
- Needs to filter to only relevant assignments to orgs or scopes (courses or libraries) that the calling user has view access to
TODO: Specify response fields, derive from Figma design.